* {
    box-sizing: border-box;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
}
  
html {
    background-color: white;
    color: black;
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
}

body {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-areas: 
    "header"
    "main"
    "footer";
    grid-template-columns: 1fr;
    position: relative;
    min-height: 100vh;
}

.desktop-header {
    display: none;
}

.mobile-menu {
    width: auto;
    position: fixed;
    padding: 0;
    height: 50px;
    /* disable text selection by clicking */
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
    user-select: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: 
    "logo . . menu"
    "dropdownitem dropdownitem dropdownitem dropdownitem";
    background-color: #ea4c15;
    align-items: center;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-bottom: 3px solid black;
    z-index: 101;
}

.logo {
    grid-area: logo;
    height: 50px;
}
  
.dropdown-link{
    grid-area: menu;
    display: block;
    height: 30px;
    padding: 0 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: bolder;
    cursor: pointer;
    background: black;
    border: 1px solid white;
    border-radius: 5px;
    margin: 10px;
    
}
  
.mobile-dropdown {
    display: none;
    grid-area: dropdownitem;
    list-style-type: none;
    background: black;
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 100;
    margin: 0;
    text-align: center;
}
  
.mobile-dropdown li{
    padding: 0;
    height: auto;
    border-bottom: 1px solid #EA4C15;
}
  
.mobile-dropdown li a{
    margin: 0;
    color: white;
    display: block;
    padding: 8px;
    font-size: 1.4rem;
    text-decoration: none;
}
  
.mobile-dropdown li a:hover{
    text-decoration: none;
    background: #cc1d3a;
}

#school {
    display: none;
}

/*MAIN SECTION*/
main {
    position: relative;
    top: 50px;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-areas:
    "motto"
    "contact"
    "callMe"
    "motto2"
    "contact-img"
    "where"
    "partners"
}

.motto {
    grid-area: motto;
    background-color: black;
    color: white;
    width: 100%;
    margin: 0;    
    text-align: center;    
}

.motto h2 {
    margin: 0 auto 0 auto;
    padding: 10px 0;
    font-size: 1.5rem;
    font-weight: 900;
    width: 90%;
    color: white;
    -webkit-text-stroke-width: 0.5px; 
    -webkit-text-stroke-color: #e30713; 
}

.contact h2, .callMe h2, .where h2, .partners h2 {
    font-size: 1.2rem;
    margin: 0;
    padding: 20px 10px 20px 10px;
    color: #EA4C15;
}

.callMe .name {
    font-weight: bolder;
    padding: 20px 0 0 0;
}

.contact p, .callMe p, .where p {
    font-size: 1rem;
    margin: 0;    
}

.contact {
    grid-area: contact;
    margin: 0;
    padding: 0;
    justify-items: start;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
    "contact-head"
    "par1"
    "par2"
    "app-button";
}

.contact-head {
    grid-area: contact-head;
}

.contact p {
    padding: 20px 10px 0 10px;
}

.par1 {
    grid-area: par1;
}

.par2 {
    grid-area: par2;
}

.application {
    grid-area: app-button;
    color: white;
    background-color: #EA4C15;
    border-radius: 5px;
    padding: 10px;  
    margin: 20px auto 0 auto;
    width: 200px;
    text-align: center;
}

.motto2 {
    grid-area: motto2;
    background-color: #EA4C15;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
}

.motto2 h2 {
    font-size: 1rem;
    margin: 0;
    padding: 3% 0;
    text-align: center;
    font-style: italic;
}

.callMe {
    grid-area: callMe;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
    "h1"
    "photo1"
    "photo2"
    "photo3"
    "photo4"
    "accountant"
    "mail";  
    padding: 0;
    margin: 30px 0 0 0;
}

.callMe h2 {
    grid-area: h1;
}

.callMe figure {
    text-align: center;
}

.callMe img {
    border-radius: 25px;
    width: 200px;
}

.name a {
    color: #ea4c15!important;
}

.photo1 {
    grid-area: photo1;
}

.photo2 {
    grid-area: photo2;
}

.photo3 {
    grid-area: photo3;
}

.photo4 {
    grid-area: photo4;
    height:214px;
    width:223px;
}

.callMe figcaption {
    color: #EA4C15;
}

.accountant {
    grid-area: accountant;
    padding-top: 20px;
    line-height: 2;
    text-align: center;
    color: #ea4c15;
    font-weight: 900;
}

.accountant a {
    color: #ea4c15;
    font-weight: 300;
    
}
.mail {
    grid-area: mail;
    padding-bottom: 20px;
    text-align: center;
    vertical-align: top;
}

.mail a {
    color: #ea4c15;
}

.callMe figcaption, .callMe img {
    padding:0;
    margin:0;
}

.contact-img {
    grid-area: contact-img;
    width: 100%;
}

.where {
    grid-area: where;
    margin-bottom: 30px;
}

.where p {
    padding: 20px 0;
    text-align: center;
}
.map1 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 2px black solid;
    width: 204px;
}

.map2 {
    display: none;
}

.partners {
    grid-area: partners;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    "partnershead partnershead"
    "MSlogo MSlogo"
    "KXlogo KXlogo";
    margin: 10px 10px 30px 10px;
    text-align: center;
}

.partners h2 {
    grid-area: partnershead;
    text-align: left;
}

.MSname {
    grid-area: MSlogo;
    max-width: 300px;
}

.KXname {
    grid-area: KXlogo;
    max-width: 300px;
}

footer {
    grid-area: footer;
    background-color: black;
    width: 100%;
    position: relative;
    top: 50px;
}

footer nav {
    display: grid;
    width: 100%;
    grid-template-columns: 50% 50%;
    grid-template-areas: 
    "foo1 foo3"
    "foo2 foo5"
    "foo4 foo6";
    color: white;
    padding: 2%;
    gap: 10px;
}

.foo1 {
    grid-area: foo1;
}

.foo2 {
    grid-area: foo2;
}

.foo3 {
    grid-area: foo3;
}

.foo3 span {
    background-color: #EA4C15;
    border-radius: 5px; 
    padding: 3%;
}

.foo4 {
    grid-area: foo4;
}

.foo5 {
    grid-area: foo5;    
}

.foo6 {
    grid-area: foo6;   
}

footer a {
    text-decoration: none;
    color: white;
    margin: 0 20px;
    font-size: 1rem;
}

@media all and (min-width: 420px) and (max-width: 480px) {
       

    .motto2 h2 {
        font-size: 1.1rem;
    }

    .foo3, .foo5, .foo6 {
        text-align: right;
    }
}

@media all and (min-width: 481px) and (max-width: 768px) {

    .mobile-menu {
        grid-area: header;
        display: grid;
        grid-template-columns: 80px 1fr 1fr 120px;
        grid-template-areas: 
        "logo school school menu"
        ". . dropdownitem dropdownitem";
        background-color: #EA4C15;
        height: 50px;
        width: 100%;
        text-align: center;
    }    

   
    #school {
        grid-area: school;
        display: block;
        font-size: 1.1rem;
        margin: 0;
        padding: 0;
        color: white;
        align-self: center;
        text-align: center;
    }
    
    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        overflow: hidden;
        grid-template-areas:
        "motto motto"
        "contact contact"
        "callMe callMe"
        "contact-img contact-img"
        "motto2 motto2"
        "where where"
        "partners partners"
    }

    .motto2 h2 {
        font-size: 1.2rem;
    }

    .contact h2, .where h2 {
        font-size: 1.4rem;
        padding: 30px 0 0 30px;
    }

    .contact p, .callMe figcaption, .where p {
        line-height: 2;
    }

    .callMe {
        
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        "h1 h1"
        "photo1 photo2"
        "photo3 photo4"
        "accountant accountant"
        "mail mail";
        margin:0;
        padding: 0;
    }

    .callMe h2 {
        font-size: 1.4rem;
        padding: 30px 0 0 30px;
    }


    .partners {
        grid-area: partners;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        "partnershead partnershead"
        "MSlogo KXlogo";
        margin: 10px 10px 30px 10px;
        text-align: center;
    }
    
    .MSname img, .KXname img {
            width: 200px;
    }

    .foo3, .foo5, .foo6 {
        text-align: right;
    }

    footer a {
        font-size: 1.1rem;
    }
}

@media all and (min-width: 769px) {

    .mobile-header {
        display: none;
    }

    .desktop-header {
        grid-area: header;
        display: grid;
        grid-template-columns: repeat(5,1fr);
        grid-template-areas: 
        "logo2 school2 school2 school2 social"
        "menu menu menu menu menu";
        width: 100%;
        background-color: #ea4c15;
    }

    .desktop-header div {
        grid-area: social;
        text-align: right;
        padding: 10px;
    }

    .desktop-header div a {
        padding: 10px;
        font-size: 40px;       
        text-align: center;
    }
    #yt2 {
        color: white;        
        font-size: 35px;
        width: 50px;
        height: 40px;
        background-color: black;
        border-radius: 10px;
        margin: 0 auto 0 auto;
        padding:2px;
        justify-self: center;
        align-self: center;
    }

    #fb2 {
        color: white;
        font-size: 35px;
        margin: 0 auto 0 auto;
        width: 40px;
        height: 40px;
        background-color: black;
        border-radius: 10px;
        align-self: center;
        padding: 2px;
        justify-self: center;
    }

    .mainMenu2 {
        grid-area: menu;
        display: grid;
        grid-template-areas:
        "li1 li2 li3 li4 li5";
        background-color: #ea4c15;
        color: white;
        top: 50px;
        width: 100%;
        height: 40px;
        text-align: center;
        padding:0;
        margin: 0;
    }

    .logo2 {
        grid-area: logo2;
        height: 60px;
        align-self: flex-end;
    }

    #school2 {
        grid-area: school2;
        font-size: 1.4rem;
        margin: 0;
        padding: 0;
        color: white;
        align-self: center;
        text-align: center;
    }

    .mainMenu2 a {
        color: white;
        padding: 0;
        margin: 0;
        font-size: 1.3rem;
        border-right: 2px solid #EA4C15;
        background-color: black;
        align-self: center;
        border-bottom: none;
    }

    .mainMenu2 a:nth-child(5){
        border: none;
    }

    .nav1 {
        grid-area: li1;
    }

    .nav2 {
        grid-area: li2;
    }

    .nav3 {
        grid-area: li3;
    }

    .nav4 {
        grid-area: li4;
    }

    .nav5 {
        grid-area: li5;
    }
      
    .motto{
        display: none;
    }

    .motto2 h2 {
        padding: 1%;
        font-size: 1.2rem;
    }
    
    main {
        display: grid;
        grid-template-columns: 15% 35% 35% 15%;
        grid-template-areas:
        "motto motto motto motto"
        "contact contact callMe callMe"
        "contact contact callMe callMe"
        "motto2 motto2 motto2 motto2"
        "where where contact-img contact-img"
        "where where partners partners";
    }

    .where h2 {
        font-size: 1.4rem;
        padding-left: 30px;
        padding-top: 30px;
        align-self: center;
    }

    .contact h2 {
        font-size: 1.4rem;
        padding-left: 30px;
        padding-top: 40px;
    }

    .callMe h2 {
        display: none;
    }

    .contact p {
        line-height: 2;
        font-size: 1.2rem;
        margin: 0;
        padding: 0 10px;
    }

    .callMe {
        justify-self: center;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        "h1 h1"
        "photo1 photo2"
        "photo3 photo4"
        "accountant accountant"
        "mail mail";
    }

    .photo1, .photo2, .photo3, .photo4 {
        text-align: center;
    }

    
    .callMe img {
        height: 170px;
        width: auto;
    }

    .motto2 {
        margin-top: 30px;
    }

    .application {
        align-self: center;
    }

    .contact-img {
        justify-self: center;
        align-self: center;
        margin: 10px;
        padding: 0;
        border-radius: 25px;
        width: 90%;
    }

    .where {
        margin-bottom: 0;
    }
    
    .map1 {
        display: none;
    }

    .map2 {
        display: block;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }

    .partners {
    grid-area: partners;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    "partnershead partnershead"
    "MSlogo KXlogo";
    margin: 10px 10px 30px 10px;
    text-align: center;
    }

    .MSname img, .KXname img {
        width: 200px;
    }

    footer nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: 
        "foo1 foo3 foo5"
        "foo2 foo4 foo6";
        gap: 10px;
        text-align: center;
    }

    footer a {
        font-size: 1.3rem;
    }

    .foo3 span {
        padding: 2%;
    }
}