:root{
    --primary: rgb(1, 1, 1);
    --secondary: rgb(92, 7, 6);
    --altSecondary:rgba(92, 7, 6, 0.474);
    --text:rgb(255, 255, 255);

}
body{
    background-color: var(--primary);
}

.flex{
    display: flex;
}
.flex img{
    width: 50px;
}
p{
    font-size: 18px;
    line-height: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    padding:10px
}

header{
    background-color: var(--secondary);
    display:flex;
    justify-content: space-between;
}
section{
    padding: 5px
}
h1, i{
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    color: var(--primary);
    padding:10px
}

h2{
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0 0 0;
    background-color: var(--secondary);
    border: 2px double var(--altSecondary);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
h3{
    padding: 15px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
}

h1, h2, h3, i{
    color: var(--text);
}


footer{
    text-align: center;
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background-color: var(--altSecondary);

    position: fixed;
    bottom: 0;
    width: 100%;
}


nav{
    position: fixed;
    top:70px;
    width:100%;
    background-color: var(--altSecondary);
    /* max-height: 0; */
    overflow-y: hidden;
    max-height: 0;

    display: flex;
    justify-content: space-around;
}
@keyframes openNav{
    0%{
        max-height: 0;
    }100%{
        max-height: 200px;
    }
}.Open{
    animation: openNav normal 1s ease-out infinite;
}.Close{
    animation: openNav reverse 1s ease-out infinite;
}

section img{
    width: 100%;
    max-width: 500px;
}
@media screen and (max-width:599px){
    header{
        position:sticky;
        top:0
    }
}

@media screen and (min-width:600px) and (max-width:1199px) {
    main{
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: 50px fit-content fit-content 10px  ;
    }
    header{
        /* Row start/row end/ col start/ col end */
        grid-area: 1/1/ 2/3;
        position:sticky;
        top:0
    }

    p{
        font-size: 20px;
        line-height: 25px;
    }
}

@media screen and (min-width:1200px) {
    p{
        font-size: 25px;
        line-height: 30px;
    }
    main{
        max-width: 1280px;
        margin: auto;
        display: grid;
        grid-template-columns: 33% 33% 33%;
        grid-template-rows: 50px 500px fit-content;
    }
    header{
        display: block;
        position:sticky;
        top: 0;
        grid-area: 1/1/ 2/4;
    }

    section{
        transition: 1s;
        max-height: 50px;
        overflow-y: hidden;
        height: fit-content;
    }
    nav{
        grid-area: 2/1/3/4;
        max-height: 999px;
        position:static
    }
    section:hover{
        max-height: 1000px;
    }
    /* Doesn't work without !important for some reason */
    i{
        display: none !important;
    }
}