html{
    /*Image sourced from USGS -- Public Domain*/
    background-image: url('./assets/images/Puu.jpg');
    background-size: cover;
    font-family: sans-serif;
}

h1{
    font-size: 5vh;
    margin: 0;
    color: red;
    font-weight: bolder;
    font-family: serif;
}

h2{
    margin: 0;
    text-align: center;
}

.cardwindow{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

#controls{
    margin-top: 20px;
    gap: 30px;
    display: flex;
    justify-items: center;
    align-items: center;
    animation-name: fadein;
    animation-duration: 1s;
    animation-direction: normal;
}

button{
    border-radius: 5px;
    font-size: large;
    opacity: .8;
}

#banner{
    display: flex;
    position: relative;
    top: 0;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    rotate: -30deg;
    text-align: center;
    animation-name: fadein;
    animation-duration: 1s;
    animation-direction: normal;
    user-select: none;
}
.cardbox{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.card{
    display: inline-grid;
    background-color: whitesmoke;
    min-height: 90vh;
    width: 100vh;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: .25fr 1fr 1fr 1fr 1fr 1fr;
    border: solid black;
    border-radius: 5px;
    opacity: .80;
    animation-name: fadein;
    animation-duration: 1s;
    animation-direction: normal;
}

.square{
    display: flex;
    border: solid black;
    user-select: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.25vw;
    font-size: large;
    padding: 1vh;
}

.selected{
    background-color: red;
    color: black;
    animation-name: fadeSelect;
    animation-duration: .5s;
    animation-direction: normal;
}

@keyframes fadeSelect {
    0% {background-color: rgba(0, 0, 0, 0);}
    100% {background-color: red;}
}

.erupted{
    background-color: orangered;
    animation-name: none;
}

.erupting{
    animation-name: eruption;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-direction: forwards;
}

@keyframes eruption {
    0% {background-color: red;}
    50% {background-color: yellow;}
    100% {background-color: orangered;}
}

#counter{
    display: flex;
    top: 30px;
    right: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px;
    font-size: large;
}

.counter{
    border: solid black;
    background-color: white;
    border-radius: 5px;
    opacity: .8;
    animation-name: fadein;
    animation-duration: 1s;
    animation-direction: normal;
}

.suggestions{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: x-large;
    font-family: sans-serif;
    border: solid black;
    background-color: whitesmoke;
    border-radius: 20px;
    opacity: .8;
    padding: 20px;
    animation-name: fadein;
    animation-duration: 1s;
    animation-direction: normal;
}

#count{
    font-size: xx-large;
    margin-bottom: 10px;
}

#eruption-column-height{
    margin-bottom: 10px;
    font-size: x-large
}

#vei1{
    font-size: x-large;
    color: green;
}

#vei2{
    font-weight: bold;
    color: darkgoldenrod
}

#vei3{
    font-weight: bold;
    color: darkorange
}

#vei4{
    font-weight: bold;
    color: red
}

.rules{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: x-large;
    font-family: sans-serif;
    border: solid black;
    background-color: whitesmoke;
    border-radius: 20px;
    opacity: .8;
    padding: 20px;
    animation-name: fadein;
    animation-duration: 1s;
    animation-direction: normal;
    max-width: 50%;
}

@keyframes fadein {
    0% {opacity: 0;}
    100% {opacity: .8;}
}

.rules > ol > li{
    margin-top: 30px;
}

.rules h3{
    text-align: center;
    font-size: xx-large;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0;
}

.rules button{
    height: 100px;
}

.big{
    font-size: x-large;
}

.bigCard{
    height: 85vh;
    width: 90vw;
}

.bigCardBox{
    flex-direction: column;
}

.bigCounter{
    position: fixed;
    top: 0px !important;
    right: 0px !important;
    flex-direction: row !important;
    width: auto !important;
    height: 2vh !important;
    gap: 20px !important;
    padding: 10px !important;
}

#hideButtons{
    display: none;
}

@media (max-aspect-ratio: 4/3){
    .cardbox{
        flex-direction: column;
    }

    #banner{
        rotate: 0deg;
    }

    .card{
        width: 97vw;
        min-height: 97vw;
    }

    #counter{
        /*position: fixed;
        top: 2vh;
        right: 2vw;*/
        width: 90vw;
        margin-top: 20px;
    }

    #bigMode{
        display: none;
    }

    .square{
        font-size: 2vw;
    }

    .header{
        font-size: xx-large
    }

    #controls{
        flex-direction: column;
        gap: 10px;
    }

    #controls button{
        width: 80vw;
        height: 5vh;
    }

    .hiddenControls{
        display: none;
    }

    #hideButtons{
        display: block;
    }

    .rules{
        max-width: 95%;
    }

}

.dark{
    background-color: black;
    color: green;
    animation-name: darkFade;
    animation-duration: .25s;
    animation-direction: normal;
}

.darkSquare{
    border: solid darkslategray;
}

.darkHtml{
    /*Image sourced from USGS -- Public Domain*/
    background-image: url(./assets/images/kilauea-night.jpg);
}

@keyframes darkFade {
    0% {background-color: whitesmoke;
        color:black
    }
    100% {background-color: black;
        color: green;
    }
}

.free{
    color: darkred;
    font-weight: bolder;
    /*font-style: italic;*/
    font-family: serif;
    font-size: 2vw;
}

.header{
    font-size: 5vh;
    height: 5vh;
    color: red;
    font-weight: bolder;
    font-family: serif;
}

@media print {
    #controls{
        display: none;
    }

    #counter{
        display: none;
    }

    .square{
        color: black;
    }

    h2{
        color: black;
    }
}

.hidden{
    display: none !important;
}