:root {
  --board-size: 3;
  --board-size-frames: 3fr;
  --primary-color: #003049;
  --secondary-color: #EAE2B7;
  --extra-color: #D62828;
}

* {
    margin: 0;
    padding: 0;
}
html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

body {
    min-height: 100vh;
    background: linear-gradient(45deg, #003049 10%, #D62828 10%, #F77F00, #FCBF49 90%, #EAE2B7 90%);
}

nav {
    background-color: var(--primary-color);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--extra-color);
    padding-bottom: 10px;
}

.navbar {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navbar li {
    height: 50px;
}

.navbar li a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white;
    font-weight: normal;
}

nav a:hover {
    background-color: #f0f0f0;
    color: black;
}

nav li:first-child {
    margin-right: auto;
}

footer {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 3px 3px 5px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2%;
    height: 50px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 90%;
    margin: 0 auto;
}

.img-txt-container {
    background-color: var(--secondary-color);
    border-radius: 3%;
    display: flex;
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.img-txt-container img {
    object-fit: cover;
    height: 400px;
    width: 50%;
    border-radius: 3%;
}

.img-txt-container div {
    padding: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
}

.img-txt-container div p {
    text-align: justify;
}

.cards-container {
    display: flex;
    gap: 1em;
    width: 90%;
    justify-content: center;
    margin: 0 auto;
    padding-top: 30px;
    flex-wrap: wrap;
}

.card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    height: 200px;
    width: 70%;
    border: 1px solid;
    aspect-ratio: 3 / 2;
}

.big-logo {
  object-fit: cover;
  border-radius: 50%;
  padding: 10px;
  height: 300px;
  width: 300px;
}

.play-area {
    display: grid;
    width: 100%;
    grid-template-columns: 2fr 9fr 1fr 1fr;
}

.timer {
    display: flex;
    justify-content: center;
    font-size: xx-large;
    border: 2px solid;
}

.board {
    grid-column: 2;
    display: grid;
    justify-content: center;
    align-content: center;
    border: 2px solid;
    grid-template-columns: repeat(var(--board-size), 175px);
    grid-auto-rows: 175px;
}

.box {
    display: grid;
    border: 1px solid black;
    grid-template-columns: repeat(var(--board-size), var(--board-size-frames));
    grid-auto-rows: var(--board-size-frames);
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    background-color: white;
}

.writeInsTable {
    display: grid;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    background-color: white;
    grid-template-columns: repeat(var(--board-size), var(--board-size-frames));
    grid-auto-rows: var(--board-size-frames);
}

.starter {
    font-size: xx-large;
    background-color: lightgray;
}

.answer {
    position: absolute;
    place-self: center;
    font-size: xx-large;
}

.write-in {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: small;
}

.selected {
    background-color: gold;
}

.answer-button-selected {
    background-color: lightblue;
}

.answer-button-done {
    background-color: grey;
}

.option-button-selected {
    background-color: lightblue;
}

.highlighted {
    background-color: yellow;
}

.preventingCell {
    animation: redFade 1s forwards;
}

@keyframes redFade {
  0% {
    background-color: red;
  }
}

.answerButtons {
    grid-column: 3;
    border: 2px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.optionButtons {
    grid-column: 4;
    border: 2px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.option-button {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    border-radius: 14%;
    border: 1px solid black;
    width: 50px;
    height: 50px;
    margin: 5px;
}

.option-button-answer {
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: xx-large;
}

.option-button-count {
    position: absolute;
    top: 0;
    right: 10%;
    font-size: small;
}

.option-button > img {
    width: 90%;
    height: 90%;
    justify-content: center;
    align-items: center;
}

.option-button:hover {
  background-color: rgb(95, 196, 230);
  color: white;
}