html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
}

.alignment {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
    min-width: 1100px;
}

#container {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    z-index: 999;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#successful_popup {
    width: 300px;
    height: 350px;
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    pointer-events: auto;
    border-radius: 10px;
    overflow: hidden;
}

#failed_popup {
    width: 300px;
    height: 350px;
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    pointer-events: auto;
    border-radius: 10px;
    overflow: hidden;
}

#successful_popup .first_half_pop_up {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #9abf5c;
}

#failed_popup .first_half_pop_up {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #bf5c5c;
}

.second_half_pop_up {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: white;
}

.pop_up_container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#successful_popup .ok_button {
    min-height: 40px;
    min-width: 150px;
    border-radius: 25px;
    border: 0;
    background-color: #9abf5c;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#failed_popup .ok_button {
    min-height: 40px;
    min-width: 150px;
    border-radius: 25px;
    border: 0;
    background-color: #bf5c5c;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ok_button:hover {
    cursor: pointer;
}


/*register section*/
#register {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-image: url("images/home_background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

header {
    margin-top: 10px;
    height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    font-size: 30px;
}

nav ul {
    display: flex;
    justify-content: space-evenly;
    margin: 0;
    gap: 20px;
    list-style-type: none;
}

nav ul a {
    text-decoration: none;
    color: white;
}

#register_contents {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

#register_contents h1 {
    max-width: 650px;
    text-align: center;
    margin: 10px 0;
    font-size: 4rem;
}

#register_contents h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

#categories {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    gap: 10px;
}

#email_input {
    width: 325px;
    height: 25px;
    background: transparent;
    background-color: rgba(0, 0, 0, 0.6);
    border-color: darkgrey;
    padding: 16px;
    color: white;
    font-size: 20px;
    border-radius: 5px;
}

#submit_button {
    width: 200px;
    height: 100%;
    padding: 1px 2px;
    font-size: 25px;
    background: #db0000;
    color: white;
    border-radius: 5px;
}

#submit_button:hover {
    cursor: pointer;
}

/*demo section*/
#demo {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: black;
}

#demo_contents {
    flex-direction: row;
    justify-content: space-around;
}

#demo_text {
    align-self: center;
}

#demo h1 {
    max-width: 400px;
    height: 50px;
}

#demo h2 {
    font-size: 16px;
    font-weight: normal;
    color: grey;
}

#video {
    width: 650px;
    height: 366px;
}

/*footer section*/
footer {
    min-height: 40vh;
    display: flex;
    background-color: #1b1b1b;
    color: white;
}
.headers {
    font-family: Helvetica, sans-serif;
}

.footer_text {
    line-height: 2;
}

#about {
    flex: 1;
    margin: 30px;
}

#question {
    flex: 1;
    margin: 30px;
}

#question a {
    color: white;
    text-decoration: none;
}

#question a:hover {
    text-decoration: underline;
}

#social {
    flex: 1;
    margin: 30px;
}

#social_medias_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social_medias {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 15px;
}

.social_medias a {
    text-decoration: none;
    color: white;
}

.glow a:hover {
    text-shadow: 0 0 3px #fff;
}

#social i {
    font-size: 30px;
}

@media (max-width: 1150px) {
    .alignment {
        max-width: 800px;
        min-width: auto;
}
    #demo_contents {
        justify-content: space-around;
        width: 800px;
        gap: 20px;
    }

    #demo_video {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #video {
        width: 100%;
    }
}

@media (max-width: 832px) {
    #categories {
        flex-direction: column;
        gap: 30px;
    }

    #demo_contents {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    #demo_text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #demo h1 {
        align-content: center;
        margin-bottom: 0;
    }

    #demo_video {
        max-width: 500px;
        height: 281px;
    }

    #video {
        height: 100%;
    }

    footer {
        flex-direction: column;
    }

    #social_medias_container {
        flex-direction: row;
        justify-content: space-evenly;
    }
}

@media (max-width: 450px) {
    nav {
        display: none;
    }

    #register_contents h1 {
        font-size: 2rem;
    }

    #email_input {
        max-width: 250px;
    }

    #social_medias_container {
        flex-direction: column;
    }
}
