html {
    scroll-behavior: smooth;
}

body {
    font-family: "Quicksand", sans-serif;
    line-height: 1.42857143;
    margin: 0;
}

nav {
    background-color: rgba(0, 0, 0, 0);
    color: rgb(255, 255, 255);
    text-shadow: 0px 0px 10px #000000;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100px;
    display: flex;
    justify-content: space-evenly;
    border-bottom: 1px solid rgba(1, 1, 1, 0);
    transition: all 0.5s ease;
}

nav.scrolled {
    height: 60px;
    background-color: #212529;
    border-color: rgba(173, 181, 189, 0.1);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    width: 10em;
    text-align: center;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    background-color: rgba(51, 51, 51, 0.188);
}

nav.scrolled a:hover {
    background-color: #333;
}

.contact-button {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0);
    color: white;
    border: 3px solid #ffffffc4;
    border-radius: 40px;
    width: 10em;
    height: 40px;
    text-align: center;
    font-size: 0.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0px 0px 10px 1px #0000006f;
}

.contact-button:hover {
    background-color: #e7e7e77e;
    border-color: #ffffff30;
}

.title {
    text-shadow: 0px 0px 10px #000000;
    font-size: 2rem;
    font-family: "Courier New", Courier, monospace;
    height: 100vh;
    background-image: url(./img/title-background.jpg);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
    display: flex;
    color: white;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.title-top {
    font-size: 2.3em;
    margin-top: 5rem;
    height: 1.3em;
}

.title-middle {
    background-color: white;
    height: 2px;
    width: 80%;
    box-shadow: 0px 0px 5px #000000;

}

.title-bottom {
    text-align:center;
    font-size: 1.2em;
    height: 4em;
}

.article-content {
    padding: 10px;
}

.subtitle {
    font-size: 1.5em;
    font-family: "Courier New", Courier, monospace;
    /* font-weight: bold; */
    margin-bottom: 20px;
    background-color: #212529;
    color: white;
    margin: 0;
    padding: 0em 1em 0em 20%;
    height: 61px;
    display: flex;
    align-items: center;
}


.selfie {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

#about .article-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr 1fr;
}

.selfie-conatiner {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-me {
    order: 2;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.about-school {
    order: 3;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.school-logo-container{ 
    order: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}


#offer .article-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

.heling-title {
    font-size: 1.5em;
    margin-bottom: 1em;
    margin-left: auto;
    margin-right: auto;
}

.helping-point {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    font-size: 1.2em;
}

.helping-point:last-child {
    margin-bottom: 0;
}


.dot {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    
    margin-left: 5px;
    margin-right: 5px;
}


/* Under this line, work is in progress */

#contact .article-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    padding: 1em;
}

.map {
    width: 50%;
    margin: 0;
}

.contacts {
    width: 50%;
    margin-left: 1em;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-template-rows: 1fr;
    
    /* align to center */
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #212529;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1em;
    margin-top: auto;
    margin-bottom: auto;
}

.contact-label {
    text-decoration: none;
    color: black;
    
}

.contact a {
    text-decoration: none;
    color: black;
}

@media only screen and (max-width: 992px) {
    .title-top {
        font-size: 8vw;
    }

    .title-bottom {
        font-size: 6vw;
    }

    nav {
        display: none;
    }

    nav a {
        font-size: 0.8em;
    }

    .subtitle {
        padding: 0 0 0 10%;
        text-align: center;
        font-size: 6vw;
        height: 10vh;
    }

    .contact-button {
        width: 50%;
        height: 8%;
        font-size: 5vw;
    }

    .article-content {
        font-size: min(3vw, 3vh);
    }

    #about .article-content .left-column {
        margin-bottom: 20px;
        width: 10% !important;
        margin-left: auto;
        margin-right: auto;
    }

    #about .article-content .left-column {
        width: 80% !important;
        margin-left: auto;
        margin-right: auto;
    }

    #about .article-content {
        display: flex;
        flex-direction: column;
    }

    .selfie-conatiner {
        order: 1;
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-me {
        order: 2;
    }
    
    .about-school {
        order: 4;
    }
    
    .school-logo-container{ 
        order: 3;
        margin-left: auto;
        margin-right: auto;
    }

    #offer .article-content {
        font-size: min(3vw, 3vh);;
        text-align: center;
    }

    #contact .article-content {
        display: flex;
        flex-direction: column;
    }

    .map {
        order: 2;
        width: 100%;
        height: 50vh;
        margin: 0;
        margin-bottom: 3em;
    }

    .contacts {
        width: 100%
    }

    .contact-icon {
        width: 5rem;
        height: 5rem;
        font-size: 3rem;
    }

    .contact {
    }
}