@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Permanent+Marker&display=swap');

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-brown: #c05018;
    --color-red: #ef3e33;
    --color-green: #9bcd66;
    --color-pink: #e7a6cc;
}

* {
    box-sizing: border-box;
    position: relative;
}

body {
    margin: 0;
    padding: 0;
    color: var(--color-white);
    background-color: var(--color-black);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
}

h1, h2, h3 {
    font-family: 'Permanent Marker', cursive;
    color: var(--color-red);
    margin: 0 0 16px 0;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
    border-bottom: 2px dashed var(--color-red);
}

h3 {
    font-size: 24px;
}

p {
    margin: 0 0 16px 0;
}

img {
    vertical-align: bottom;
}

header {
    text-align: center;
}

header img {
    width: 100%;
    max-width: 400px;
}

section {
    margin-bottom: 24px;
}

.main-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    box-shadow: 0px 0px 36px 1px var(--color-pink);
}

.hero-text {
    height: 25vh;
    min-height: 240px;
    background-image: url("img/hero-bg.png");
    background-repeat: no-repeat;
    background-position: left bottom;
}

.hero-text div {
    position: absolute;
    font-size: 32px;
    text-shadow: 1px 1px 5px var(--color-pink);
}

.hero-text div:nth-child(1) {
    top: 30%;
    left: 20%;
}

.hero-text div:nth-child(2) {
    top: 60%;
    left: 40%;
}

.character img {
    transform: rotate(-4deg);
}

.character {
    display: flex;
    margin-bottom: 24px;
}

.character p {
    margin-left: 24px;
    width: 100%;
}

.season-selection {
    display: flex;
    margin-bottom: 16px;
}

.season-option {
    width: 100%;
    text-align: center;
}

.season {
    display: none;
}

.visible {
    display: block;
}

.season table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    border-radius: 16px;
    border: 1px solid white;
}

.season table thead {
    text-shadow: 0 0 2px black;
}

#season1 thead {
    background-color: var(--color-red);
}

#season2 thead {
    background-color: var(--color-green);
}

#season3 thead {
    background-color: var(--color-brown);
}

#season4 thead {
    background-color: var(--color-pink);
}

.season th, td {
    border: 1px solid white;
    padding: 4px;
}

.season td:not(:last-child) {
    vertical-align: middle;
    text-align: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
}

.gallery-item {
    width: 45%;
    margin: 0 2.5% 16px 2.5%;
}

.gallery-item img {
    width: 100%;
}

.gallery-item img:hover {
    transform: scale(1.1);
    z-index: 2;
}

.error {
    color: var(--color-red);
}

.memory-settings {
    margin-bottom: 16px;
}

#memory-field {
    display: flex;
    flex-wrap: wrap;
}

.card {
    width: 80px;
    height: 80px;
    background-image: url('img/question.png');
    background-repeat: no-repeat;
}

.card.taken-card {
    background-image: none;
}

.card img {
    display: none;
}

.card.open-card img {
    display: block;
}

form#comment-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

form div {
    margin-bottom: 16px;
}

form textarea {
    resize: none;
    height: 80px;
}

form canvas {
    background-color: white;
}

form .field {
    display: flex;
    width: 100%;
}

form .field label {
    width: 25%;
}

form .field input, textarea {
    width: 75%;
    height: 21px;
}

form .captcha-field {
    display: flex;
    align-items: center;
    justify-content: center;
}

form .captcha-field button {
    margin-left: 16px;
}

form .submit-field, .error {
    text-align: center;
}

footer {
    padding: 2px 0;
    font-size: 10px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .hero-text div {
        position: relative;
        text-align: center;
    }
    .hero-text div:nth-child(1) {
        top: 0;
        left: 0;
    }
    
    .hero-text div:nth-child(2) {
        top: 0;
        left: 0;
    }

    .character {
        display: block;
    }

    .character img {
        margin-bottom: 10px;
    }

    .character p {
        margin-left: 0;
    }
}
