html {
    overflow-x: hidden;
    height: 100%;
}

body {
    background-color: white;
    padding: 5px 20px 5px 20px; 
}

hr {
    color: black;
    width: 90%;
}

#guess {
    width: 90%;
    height: max(50px, 5vw);
    font-size: max(40px, 2.5vw);
    text-align: center;
    padding: 10px;
    border: 2px solid black;
}

.links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.game {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.game h1 {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: black;
    margin: 10px;
    font-size: 8vh;
    text-align: center;
}

a {
    text-decoration: none;
    color: darkblue;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.links a {
    font-size: 2vh;
}

.game a:hover {
    color: blue;
}

.game h2 {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: black;
    margin: 5px;
    font-size: 3vh;
    text-align: center;
}

.game h3 {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 2vh;
    margin: 10px 0px 5px 0px;
}

.game h4 {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1.8vh;
    margin: 12px;
}

.guessTable {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    color: black;
    width: 80%;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
}

.guessColumn {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width: 50%;
}

.guessColumn p {
    margin: 4px;
    font-size: 2vh;
    text-align: center;
}

.userPanel {
    width: 100%;
    height: 145px;
    position: fixed;
    bottom: 0;
    left: 0;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    z-index: 2;
}

.entryPanel {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.incorrectGuess {
    animation: shake 0.25s linear;
    background-color: red;
}

.wikidata {
    height: max(50px, 6vw);
    width: auto;
    margin: 5px;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

/* Modal Header */
.modal-header {
    padding: 2px 16px;
    background-color: skyblue;
    color: white;
}

/* Modal Body */
.modal-body {
    padding: 2px 16px;
    display: flex;
    flex-direction: column;
}

.results-row {
    display: flex;
    flex-direction: row;
    border: 1px solid grey;
    margin: 5px;
    padding: 15px;
}

/* Modal Footer */
.modal-footer {
    padding: 2px 16px;
    background-color: lightskyblue;
    color: black;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

.modal-chart {
    width: 50%;
}

.results-section {
    width: 50%;
    padding: 5px 25px 5px 25px; 
}

#resultsChart {
    width: 100%;
}

/* Add Animation */
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */
.close {
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: darkred;
    text-decoration: none;
    cursor: pointer;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@media (max-width: 1000px) {
    .incorrect {
        display: none
    }

    .guessColumn {
        width: 100%;
    }

    .guessTable {
        margin-bottom: 10px;
    }

    .results-row {
        display: flex;
        flex-direction: column;
        border: 1px solid grey;
    }

    .results-section {
        width: 100%;
        padding: 25px 5px 25px 5px; 
    }

    .modal-chart {
        width: 100%;
        height: 30vh;
    }
}