html {scroll-behavior: smooth;}

a:visited, a:link{color: #14141f;}
a:hover{color: #009aff}
a:active{color: #f35}

.carousel-wrapper li{
    list-style-type: none;
}

.slide img {
    width: 60vw;
    height: auto;
}

#navigation-container li {
        font-size: 4rem;
        padding-right: 1rem;
    }
    
     #navigation-container a {
        list-style: none;
        text-decoration: none;
    }

.card {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 8px 0 rgb(0,0,0,0.2);
    width: 100%;
    min-width: 10vw;
    height: 100%;
    min-height: 5vh;
    padding: 0.5vh 0.5vw 1vh;
}

.card-imglink {
    justify-self: flex-start;
    justify-self: start;
    align-self: flex-start;
}
.card-itchlink{
    padding: 0 5%;
    justify-self: flex-end;
}

.container {
    display: flex;
    flex-direction: column;
    align-self: center;
    margin: 5%;
}

.container p, a {
    display: inline;
}

.container a {
    text-decoration: none;
    color: #0099ff;;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.card-spacer{
    width: 100%;
    height: 15%;
    justify-self: flex-end;
    align-self:flex-end;
}
#nametag {
    line-height: 0.1rem;
    padding-left: 5vw;
}

/*
 #main-container > #about {
        display: flex;
        grid-area: about;
        flex-direction: row;
        justify-content: center;
        padding: 0 15vw;
    }
    
    #about div {
        display: flex;
        flex-direction: column;
        align-self: flex-start;
        justify-self: center;
        width: 20vw;
    }
    
    #about img {
        margin-right: 5vw;
        align-self: flex-start;
        justify-self: flex-start;
        width: 20vw;
        min-width: 32px; 
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px 0 rgb(0,0,0,0.2);
    }
    
    #about h1 { font-size: 3rem;}
    #about h2 { font-size: 2rem; margin-top: 0.5rem;}
    #about h1, h2 {
        font-variant: small-caps;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    #about h1, h2, p, ul, li {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    #about li {
        font-size: 1rem;
        text-decoration: none;
    }

*/

@supports(display:grid){
    body{
        display: grid;
        overflow: hidden;
        grid-template-rows: 10vh 76vh 10vh;
        grid-row-gap: 1vh;
        grid-template-areas:
            "head" 
            "main"
            "foot";
        height: 100%;
        max-width: 100%;
        margin: 0;
        font-family: 'Josefin Sans', sans-serif;
    }
    
    /** Navigation Styles **/
    #navigation-container {
        display: grid;
        grid-area: head;
        grid-area: 1 / 1 / 2 / 2;
        place-self: start / center;
        width: 100%;
        height: 10vh;
        min-height: 80px;
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr;
        margin: 0;
        background: #e1e1ef;
        background-color: #e1e1ef;
    }
    
    #navigation-container ul {
        display: flex;
        list-style-type: none;
        align-self: flex-end;
        justify-self: flex-end;
        grid-area: 1 / 3 / 2 / 4;
    }
    
    #loc-img {
        min-width: 8px;
        width: 5vw;
        height: auto;
        padding: 1%;
        align-self: flex-end;
        justify-self: center;
        grid-area: 1 / 2 / 2 / 3;
    }
    
    /** Main Styles **/
    #main-container{
        display: grid;
        overflow-y: auto;
        scroll-behavior: smooth;
        grid-area: main;
        grid-area: 2 / 2 / 3 / 3;
        align-self: start;
        justify-self: center;
        grid-template-rows: repeat(2, 1fr);
        grid-row-gap: 10vh;
        grid-template-areas:
/*            "carousel"*/
            "games"
            "about";
        height: 100%;
        min-height: 30vh;
        width: 100%;
        min-width: 50vw;
    }
    
    .carousel-wrapper{
        display: contents;
        place-self: center;
        grid-area: carousel;
    }
    
    /** Games Styling **/
    
    #main-container > #games {
        display: grid;
        grid-area: games;
        grid-template-rows: auto;
        grid-template-columns: repeat(3, 1fr);
        grid-row-gap: 5vh;
        grid-column-gap: 2.5vw;
        padding: 0 10vw;
        transition: 0.4s;
    }
    
    /** Different Column Widths for Different Screens **/

    /* Default */
    @media screen and (min-width: 1160px) {
        #games{
            grid-column-gap: 2.5vw;
            grid-template-columns: repeat(3, 1fr)
        }
    }

    /* Medium (2 Columns) */
    @media screen and (min-width: 960px) and (max-width: 1159px) {
        #games {
            grid-column-gap: 4vw;
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Small (1 Columns) */
    @media screen and (min-width: 480px) and (max-width: 959px) {
        #games{
            grid-column-gap: 0vw;
            grid-template-columns: repeat(1, 1fr);
        }
    }
    
    /** About Styling **/
    #about {
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
    }
    
    #about img {
        grid-area: 1 / 1 / 2 / 2;
        width: 20vw;
        height: auto;
    }
    
    #about-title {
        grid-area: 1 / 2 / 2 / 3;
    }
    
    #about-text {
        grid-area: 2 / 2 / 3 / 3;
    }
    
    /** External Links Styling **/
    #ext-link-container{
        grid-area: foot;
        display: flex;
        place-self: flex-end;
        width: 100%;
        height: 100%;
        min-height: 80px;
        
    }
}

/** Fallback Styles (For older browsers) **/

body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: 'Josefin Sans', sans-serif;
}

#navigation-container {
        display: flex;
        justify-self: flex-start;
        align-self: flex-start;
        width: 100%;
        height: 10vh;
        min-height: 80px;
        margin: 0;
        background: #e1e1ef;
        background-color: #e1e1ef;
    }
    
    #navigation-container ul {
        display: flex;
        list-style-type: none;
        align-self: flex-end;
        justify-self: flex-end;
}

#loc-img {
        min-width: 8px;
        width: 5vw;
        height: auto;
        padding: 1%;
        align-self: flex-end;
        justify-self: center;
    }