/* Global */

body {
    background-color: rgb(27, 27, 27);
    color: rgb(248, 248, 248);
    margin: 0;
    padding: 0;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

header h1 {
    margin: 0;
    color: rgb(248, 248, 248);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    padding-top: 30vh;
}

header h2 {
    margin: 0;
    color: rgb(248, 248, 248);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    padding-top: 15vh;
    margin-bottom: 1rem;
}

/* Home */

#high-score {
    margin: 0;
    color: rgb(248, 248, 248);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding-top: 3vh;
    margin-bottom: 2rem;
}

/* Select */

form {
    display: inline-block;
    width: 40%;
    margin-top: 1rem;
    text-align: left;
    margin-left: 30%;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

#form-name-error {
    color: rgb(187, 0, 0);
}

label {
    margin-bottom: .5rem;
}

input {
    border: 0;
    background-color: rgb(18, 18, 18);
    color: rgb(248, 248, 248);
    height: 2rem;
}

select {
    border: 0;
    background-color: rgb(18, 18, 18);
    color: rgb(248, 248, 248);
    height: 2rem;
}

.field-set {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.field-set input {
    vertical-align: top;
    height: 1rem;
    margin-left: 1rem;
    margin-right: .5rem;
    margin-bottom: .5rem;
    accent-color: rgb(18, 18, 18);
    margin-bottom: 1rem;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}

.button {
    border: 0;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    border-radius: 10px;
    color: rgb(248, 248, 248);
    background-color: rgb(18, 18, 18);
    text-decoration: none;
    height: 3rem;
}

.button:hover {
    cursor: pointer;
    background-color: rgb(23, 23, 23);
}

.button:active {
    background-color: rgb(33, 33, 33);
}

/* Quiz */

.quiz-button-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    justify-content: center;
    align-content: center;
    margin: 1rem;
    margin-left: 20%;
    margin-right: 20%;
}

.quiz-button {
    border: 0;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    border-radius: 10px;
    color: rgb(248, 248, 248);
    background-color: rgb(18, 18, 18);
    text-decoration: none;
    height: 4rem;
    margin: .5rem;
}

#reset-btn {
    margin-left: 30%;
    margin-right: 30%;
    margin-bottom: 2rem;
    width: 100%;
}

.quiz-button:hover {
    cursor: pointer;
    background-color: rgb(23, 23, 23);
}

.quiz-button:active {
    background-color: rgb(33, 33, 33);
}

#final-reset-btn:hover {
    background-color: rgb(122, 0, 0);
}

#final-reset-btn:active {
    background-color: rgb(76, 0, 0);
}

#content {
    display: inline-block;
    width: 100%;
    text-align: center;
}

i.quiz-heart {
    display: inline-block;
    font-size: 3rem;
    margin: 1rem;
    color: rgb(187, 0, 0);
}

#question {
    margin-left: 10%;
    margin-right: 10%;
}

#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 90vh;
}

#end {
    display: inline-block;
    width: 100%;
    text-align: center;
}

#end h2 {
    padding-top: 25vh;
}

#end.quiz-button-container {
    margin-left: 30%;
    margin-right: 30%;
}

.spinner {
    color: rgb(187, 0, 0);
    font-size: 2rem;
    animation: spin 0.75s infinite linear;
}

/* Select */

#data {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin-left: 15%;
    margin-right: 15%;
    justify-content: center;
}

table {  
    padding-bottom: 2rem;
}

th, td {
    padding: 1rem;
    text-align: center;
}

th {
    border-bottom: solid 2px;
}

#missing-data-message {
    text-align: center;
}

#confirmation {
    display: flex;
    flex-direction: column;
}

#confirmation-message {
    text-align: center;
}

/* Navigation */

nav {
    color: rgb(248, 248, 248);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    background-color: rgb(18, 18, 18);
}

.nav-container-mobile {
    display: none;
}

#nav-container-mobile-open {
    display: none;
}

nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

nav li {
    margin: 0;
    padding: 1rem 1.5rem;
}

nav li a {
    text-decoration: none;
    color: rgb(248, 248, 248);
    text-align: right;
}

nav li a:hover {
    cursor: pointer;
    color: rgb(187, 0, 0);
}

/* Animations */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes breakHeart {
    0% {
        transform: rotate(0deg);
        transform: scale(1);
    }
    10% {
        transform: rotate(-10deg);
    }
    20% {
        transform: rotate(10deg);
    }
    30% {
        transform: rotate(-10deg);
    }
    40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
        transform: scale(1.5);
        opacity: 100;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}