/* General */

body, ul, li, h1, h2, a{
    margin: 0;
    padding: 0;
    font-family: arial;
    list-style-type: none;
}

button{
    all: unset;
    margin: 0;
    padding: 0;
}

span{
    font-weight: bold;
    font-size: 1.2em;
}

.grid-container{
    max-width: 100%;
    display: grid;
    gap: 50px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

img{ /* why does this even exist? */
    max-width: 100%;
    height: auto;
}

footer{
    background: #111111;
    color: white;
    padding: 10px;
    text-align: center;
}

article p{
    text-align: center;
    line-height: 2em;
    font-size: 1.4em;
    color: #4b4b4b;
}

main{
    max-width: 100%;
    margin: 80px auto;
    padding: 0 40px;
    box-sizing: border-box;
}





/* navbar */

nav {
    z-index: 1;
    background-color: #F4F4F4;
    padding: 20px;
    position: sticky;
    top: 0px;
}

nav ul{
    white-space: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

nav li{
    width: 25%;
    display: inline-block;
    font-size: 24px;
    text-align: center;
}

nav li a{
    text-decoration: none;
    color: #4b4b4b;
}





/* Banner */

.banner{
    position: relative;
}

.banner .banner-image{
    max-width: 100%;
    
}

.banner .welcome{
    position: absolute;
    width: 100%;
    top: 0;
}

.banner .welcome img{
    display: block;
    max-width: 60%;
    margin: 19% auto;
    padding: 1% 3%;
    background-color: rgba(0,0,0,0.5);
    border-radius: 20%;
    border: none;
}

.banner .welcome img.hcmaps{ /* specific to maps page*/
    margin: 10% auto;
}

.banner h2{
    font-size: 74px;
}

.banner h2 span{
    font-size: 1.3em;
}





/* Index (homepage) */

div.credits{
    display: flex;
    justify-content: space-evenly;
    padding: 0px 20%;
    flex-wrap: wrap;
    font-size: medium;
}

div.credits span{
    padding: 0px 20px;
    font-weight: 100;
}

article h2{
    color: #47E01D;
    font-size: 48px;
    text-align: center;
}

.grid-container#index-container img{
    border-radius: 3%;
}





/* Individual map pages */

main.parkour-bridge{
    background-image: url('maps/parkour-bridge/parkour bridge epic image.webp');
}

main.parkour-biomes{
    background-image: url('maps/parkour-biomes/cinematic.webp');
}

main.parkour-staircase{
    background-image: url('maps/parkour-staircase/staircase.webp');
}

main.parkour-staircase-2{
    background-image: url('maps/parkour-staircase-2/spiral-level.webp');
}

main.map-page{
    margin: 0;
    padding: 0;
    min-height: fit-content;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: calc(100vh - 108px)
}

.map-container{  
    margin: 0;
    display: grid;
    gap: 1em;
    grid-template-rows: auto auto;
    grid-template-columns: auto auto auto;
    grid-template-areas: "box1 box1 box2" "box3 box3 box3";
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 3%;
    padding-bottom: 5%;
    min-width: 0px;
}

.map-item{
    background-color: rgba(244, 244, 244, 0.9);
    backdrop-filter: blur(3px);
    padding: 5%;
    border-radius: 80px;
    min-width: 0px;
}



.map-flex{
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.map-flex .ranktimes{
    background-color: rgba(256,256,256,0.9);
    margin: 10px 38%;
    padding: 2%;
    border-radius: 30px;
    color: #111111;

}



.download{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 30px;
}

.download p{
    text-align: center;
    font-size: x-large;
}

.download button{
    text-align: center;
    font-size: 2rem;
    color: #F4F4F4;
    background-color: #DD7200;
    padding: 10px;
    border-radius: 15px;
}

.download a{
    font-size: 1.5rem;
    color: #F4F4F4;
    background-color: #DD7200;
    padding: 10px;
    border-radius: 15px;
    text-decoration: none;
}



.gallery{
    padding: 30px;
    size: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2%;
    min-width: 0px;
}

.gallery img{
    border-radius: 50px;
    min-width: 0px;
    min-height: 0px;
}





/* Events page*/

.grid-container#events-container{
    grid-template-columns: 1fr 1fr;
}

.grid-container#events-container div{
    display: grid;
    margin-bottom: 5%;
}

.grid-container#events-container div img{
    border-radius: 5%;
}

.grid-container#events-container div p{
    padding-left: 5%;
    padding-right: 5%;
    font-size: 30px;
    text-align: center;
}

.events article h2{
    color: #00D8B1;
}

.events article span{
    font-weight: bold;
    font-size: 1.3em;
}

.events a{
    color: black;
}

.events article span{
    font-weight: bold;
    font-size: 1.3em;
}





/* Maps main page */

.item img{
    border-radius: 3%;
}

.maps{
    margin: 5%;
}

.maps article{
    margin: 80px auto;
    padding: 0 40px;
    width: 1200px;
}

.maps a{
    color: black;
}

.maps h2{
    color: #DD7200;
}

.maps article{
    max-width: 100%;
    padding: 0;
}





/* hover effects */

.item{
    transition: all 0.4s;
}

nav li a:hover{
    text-decoration: underline;
}

.item:hover{
    transform: scale(1.03);
    cursor: pointer;
}

.download a:hover{
    background-color: #BB5600;
}

.download button:hover{
    background-color: #BB5600;
    cursor: pointer;
}





/* responsive */

@media screen and (max-width: 1400px){

.download button{
    font-size: 1.5rem;
}

.events .images li img{
    height: 150px;
}

.banner .welcome h2{
    font-size: 40px;
}

nav li{
    font-size: 18px;
}

.grid-container{
    grid-template-columns: 1fr 1fr;
}

.map-flex .ranktimes{
    margin: 20px 20%;
}

}

@media screen and (max-width: 1150px){

.download button{
    font-size: 1.28rem;
}

}

@media screen and (max-width: 960px){

.map-container{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "box1" "box2" "box3";
}

.gallery{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

main.map-page{
    background-repeat: repeat;
}

.grid-container#events-container{
    grid-template-columns: 1fr;
}

.maps .images li img{
    height: 200px;
}

.maps .images li p span.ip{
    font-size: 1em;
}

.events .images li p span.ip{
    font-size: 1em;
}

body{
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.banner .welcome h2{
    font-size: 30px;
}
}

@media screen and (max-width: 700px){

.grid-container{
    grid-template-columns: 1fr;
}

nav{
    padding: 10px;
}

.images li{
    width: 100%;
    margin: 20px auto;
    display: block;
}

.maps .images li{
    height: 600px;
}
}

@media screen and (max-width: 560px){

    .grid-container#events-container div p{
        font-size: 23px;
    }

    .map-container{
        padding: 10px 0;
    }

    .maps-container .map-item{
        max-width: 100%;
        margin: none;
    }

    nav li{
        font-size: 20px;
        display: block;
        width: 100%;
        margin: 12px 0;
        text-align: center;
    }

    header{
        position: relative;
    }

    nav{
        top: 0px;
    }
}