html,
body {
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #011E3E;
}

.wrapper {
    margin-bottom: 3%;
    background-image: linear-gradient(to bottom, #04326D, #011E3E);
}

.container>div {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #ffeead;
}

a {
    text-decoration: none;
    color: black;
}

*:focus {
    outline: none;
}

/*Using CSS GRID TEMPLATE AREA*/

.container {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 350px auto;
    grid-template-areas: "h h h h h h h h h h h h" "c c c c c c c c c c c c";
}

.header {
    grid-area: h;
    background-image: url("../img/loginheader.JPG");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.content {
    grid-area: c;
    padding-top: 35px;
    background-image: linear-gradient(to bottom, #04326D, #011E3E);
}

.content .input {
    width: 70%;
}

/*Input forms for login*/

input[type=text],
select {
    width: 100%;
    padding: 15px 20px;
    margin: 8px 0;
    display: inline-block;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=password],
select {
    width: 100%;
    padding: 15px 20px;
    margin: 8px 0;
    display: inline-block;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

button[type=submit] {
    width: 100%;
    background-color: #84C9F0;
    color: white;
    padding: 15px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/*FOR LARGER SCREEN THE LOGINFORMS WON'T BE THAT BIG*/

@media only screen and (min-width: 700px) {
    .content .input {
        width: 40%;
    }
}

/*Startpage (menu page) starts here*/

#background {
    background-image: url(" ");
    height: 240px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    z-index: -1;
}

#menu-box {
    margin-top: -145.5px;
    margin-left: 8%;
    margin-right: 8%;
    background-color: #C6C6C5;
    z-index: 1;
    height: 100%;
}

/*Header design*/

#menu-header {
    height: 145.5px;
    width: 100%;
    border-top: #03326d 12px solid;
    background-color: white;
    display: flex;
    margin-bottom: 0.8%;
}

#logo {
    height: 100%;
    margin-left: 6.3%;
}

#logo img {
    margin-top: 8%;
    max-width: 190px;
    max-height: 190px;
    margin-left: 10%;
}

#header-text {
    width: 80%;
    height: 100%;
    display: flex;
}

#title-text {
    width: 100%;
    position: relative;
}

#name-logouts {
    float: right;
    margin-top: -118px;
    display: inline-flex;
    width: auto;
}

#name-logouts span {
    font-size: 16px;
    margin-right: 8px;
    visibility: visible;
}

#title-text h1 {
    font-size: 37px;
    margin-top: 56px;
    font-weight: 500;
    margin-left: 6%;
    z-index: -1;
}

/*Menu buttons start here*/

.menu-icons {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    padding: 0px 0px;
}

.cell {
    flex: 32%;
    max-width: 32%;
    padding: 5px;
    position: relative;
    text-align: center;
}

.cell img {
    vertical-align: middle;
    width: 100%;
    text-align: center;
    
}

.cell h2 {
    position: absolute;
    text-align: center;
    margin-left: 1%;
    color: white;
    font-size: 1.5vw;
    bottom: 8%;
    width: 94%;
}

#news-box {
    height: 60px;    
    background-image: linear-gradient(to bottom, #04326D, #011E3E);
    margin-left: 1.2%;
    margin-right: 1.2%;
    margin-top: 0.5%;
    display: flex;
    font-size: 1.3vw;
    text-align: center;
}

#news-box h2 {
    color: white;
    font-weight: 400;
    font-style: italic;
    margin-top: 16px;
}

#latest-news {
    text-align: right;
    margin-right: 1%;
    width: 32%;
    height: 100%;
}

#news-text {
    width: 80%;
    text-align: left;
}

#latest-news h2 {
    color: #f9b342;
    margin-left: 1%;
}

#news-box-mobile {
    display: none;
}

#footer-box {
    text-align: center;
    height: 36px;
    background-color: white;
    width: 100%;
    font-size: 15px;
}

#footer-box p {
    padding-top: 0.8%;
}

/*Buttons only to be shown for mobile*/

#logout-mobile {
    font-weight: 400;
    display: none;
    margin-right: 2%;
}

#username-mobile {
    font-weight: 400;
    margin-left: 2%;
    display: none;
}


.dropdown-content-mobile {
    display: none;
}

@media screen and (max-width: 1140px) {
    #news-box {
        margin-left: 1.05%;
        margin-right: 1.05%;
    }
    #name-logouts {
        margin-top: -120px;
    }
}

@media screen and (max-width: 950px) {
    .cell {
        flex: 34%;
        max-width: 50%;
    }
    .cell h2 {
        font-size: 2.6vw;
        bottom: 7%;
    }
    #menu-header {
        height: 153.5px;
        width: 100%;
        position: relative;
        display: inline-flex;
    }
    #menu-box {
        margin-top: -185.5px;
    }
    #logo {
        position: absolute;
        width: 100%;
        height: 80%;
        text-align: center;
        top: 0;
        margin-left: 0%;
    }
    #logo img {
        max-width: 200px;
        max-height: 200px;
        margin-top: 0.5%;
        margin-left: 0%;
    }
    #header-text {
        height: 20%;
        width: 100%;
    }
    #title-text {
        width: 100%;
        position: absolute;
        bottom: 0;
        text-align: center;
    }
    #title-text h1 {
        margin-left: 0%;
        font-size: 25px;
    }
    #name-logouts span {
        display: none;
    }
    #logout-mobile {
        display: block;
        float: right;
        margin-top: 1px;
    }
    #logout-mobile span {
        font-size: 15px;
    }
    #username-mobile {
        display: block;
        float: left;
        margin-top: 1px;
    }
    #username-mobile span {
        font-size: 15px;
    }    

     
    /*Disabling the desktop news-box due to reorganization of the divs*/
    #news-box {
        display: none;
    }
    /*Mobile news-box*/
    #news-box-mobile {
        height: 60px;
        display: block;
        font-size: 11px;
        background-image: linear-gradient(to bottom, #04326D, #011E3E);
        margin-left: 6.7px;
        margin-right: 6.7px;                
        margin-top: -6px;
        text-align: center;                
        color: #f9b342;        
    }
    
    
    #latest-news-mobile h2 {
        color: #f9b342;
        padding-top: 8px;                                        
    }
    #news-text-mobile h2 {
        color: white;                
    }
    #news-box-mobile h2 {          
        font-weight: 400;
        font-style: italic;                  
        margin-bottom: -15px;
    }


    .dropdown-content-mobile a {
        outline: none;
        background-color: c6c6c6;
        padding: 5px 10px;
        text-decoration: none;
        font-size: 7px;
        text-align: right;
        padding-left: 4%;
    }

    .dropdown-content-mobile {
        border-bottom: #04326D solid 0.2px;
        border-top: #04326D solid 0.2px;
    }
}



@media screen and (max-width: 540px) {
    /*For space below the menu box*/
    .wrapper {
        margin-bottom: 9%;
    }
    #background {
        height: 220px;
    }
    #menu-header {
        height: 143.5px;
    }
    #menu-box {
        margin-top: -190px;
    }
    #title-text h1 {
        font-size: 21px;
        margin-top: 47.8px;
    }
    #logo img {
        margin-top: 20px;
        max-width: 110px;
        max-height: 120px;
    }
    #username-mobile span {
        font-size: 14px;
    }
    #logout-mobile span {
        font-size: 14px;
    }
    .menu-icons {
        padding: 1px 15px;
    }
    .cell {
        padding: 3px 3px;
    }
    #news-box-mobile {
        margin-left: 5px;
        margin-right: 5px;
        height: 50px;
        font-size: 8.2px;
    }
    #latest-news-mobile h2 {
        color: #f9b342;
        
    }
    #news-text-mobile h2 {
        color: white;                
    }
    #news-box-mobile h2 {          
        font-weight: 400;
        font-style: italic;                  
        margin-bottom: -10px;
    }
    #footer-box {
        font-size: 11px;
    }
    #footer-box p {
        padding-top: 10px;
    }
}

@media screen and (max-width: 400px) {
    #background {
        height: 210px;
    }
    #menu-header {
        height: 132.5px;
    }
    #menu-box {
        margin-top: -195px;
    }
    #menu-box {
        margin-left: 3%;
        margin-right: 3%;
    }
    #logo img {
        margin-top: 16px;
        max-width: 110px;
        max-height: 120px;
    }
    #title-text h1 {
        font-size: 19px;
    }
    .cell h2 {
        font-size: 11.3px;
        bottom: 3%;
    }
    #news-box-mobile {
        
        font-size: 7.3px;
    }
    
    #menu-footer {
        font-size: 12px;
    }
}

@media screen and (max-width: 325px) {
    .wrapper {
        width: 320px;
    }
    #username-mobile span {
        font-size: 12px;
    }
    .cell h2 {
        font-size: 10.8px;
    }
    #logout-mobile span {
        font-size: 12px;
    }

    #logo img {
        margin-top: 16px;
        max-width: 120px;
        max-height: 130px;
    }
}