@font-face {
    font-family: Lobster;
    src: url(Lobster-Regular.ttf);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    color: #F5F5F5;
    text-align: center;
    font-family: 'Lobster', cursive;
    font-weight: 100;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

header {
    background-color: #BB2528;
    padding: 2rem;
    box-shadow: 0 0 15px #333;
    z-index: 2;
    font-size: 2rem;
}

main {
    background: rgb(64,134,94);
    background: radial-gradient(circle, rgba(64,134,94,1) 0%, rgba(22,91,51,1) 100%);
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

.question-container > section:last-child {
    padding-top: 2rem;
}

h2 {
    padding-bottom: 2rem;
    font-size: 2.5rem;
}

.question-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.question-content button {
    width: 100%;
}
.question-content button.false {
    background: rgb(138,0,3);
    background: linear-gradient(180deg, rgba(138,0,3,1) 0%, rgba(187,37,40,1) 61%);
    box-shadow: none;
}

button,
input {
    background: rgb(254,208,118);
    background: linear-gradient(180deg, rgba(254,208,118,1) 0%, rgba(248,178,41,1) 50%);
    padding: 1rem;
    font-size: 1.5rem;
    color: #333;
    border: 1px solid #333;
    border-radius: 1rem;
    box-shadow: 0 0 5px #333;
    cursor: pointer;
    transition: box-shadow .5s;
    margin-bottom: 2rem;
}
button:last-child {
    margin-bottom: 0;
}
button:hover {
    background: linear-gradient(180deg, rgba(254,208,118,1) 0%, rgba(248,178,41,1) 75%);
    box-shadow: 0 0 10px #333;
}
button:active {
    box-shadow: none;
}
input {
    background: #F5F5F5;
    box-shadow: inset 0 0 10px #333;
}
input.incorrect {
    animation: shake .5s;
    animation-iteration-count: 1;
    background: lightcoral;
}

img {
    width: 100%;
    max-width: 1000px;
    border-radius: 1rem;
    box-shadow: 0 0 15px #333;
    transform: scale(0, 0);
    transition: transform 1s;
}

img.active {
    transform: scale(1, 1);
}

@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 only screen and (max-width: 768px) {
    header {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    button {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
}
