@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
:root {
    --dark-blue: #00408c;
    --red: #e85234;
    --cream: #f2eee9;
    --blue: #96add6;
    --peach: #f9b8af;
    --pink: #f2d7d3;
}
* {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
}
main {
    max-width: 100vw;
    min-height: 100vh;
    padding: 20px;
    background: var(--cream);
}
h2 {
    font-family: "Roboto Slab", serif;
    color: var(--red);
    text-align: center;
}
h3 {
    font-family: "Roboto Slab", serif;
    color: var(--dark-blue);
}
button {
    font-family: "Roboto Slab", serif;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
}
ul {
    list-style: none;
}
.main-wrapper {
    width: 100%;
    min-height: inherit;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
#open-rules{
    position: absolute;
    bottom: 10px;
}
.rules-wrapper{
    position: absolute;
    top: 0;
    left: 1px;
    z-index: 9999;
    width: 100%;
    opacity: 1;
    transition: opacity ease-in-out 0.5s;
}

.rules-wrapper ol{
    margin-left: 20px;
}
.rules-wrapper span{
    font-family: "Roboto Slab", serif;
    color: var(--red);
    font-weight: 700;
}
.start-game-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--cream);
}
.start-menu{
    margin: 40px;
}
.start-menu ul{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.start-menu li{
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px;
    border-radius: 2.5px;
}
.start-menu li:hover{
    background-color: var(--peach);
}
input#player-input {
    margin-bottom: 5px;
    padding: 0 2px;
    color: var(--dark-blue);
    background-color: var(--cream);
    border: 1px solid var(--blue);
    border-radius: 2.5px;
    outline: none;
    display: none;
}
input#player-input::placeholder {
    color: var(--blue);
}
input#player-input:focus {
    border: 1px solid var(--dark-blue);
    outline: none;
}
#input-error {
    color: var(--red);
    font-size: 0.7rem;
    margin-top: -15px;
    margin-bottom: 5px;
    display: none;
}
.start-menu,
.rules-wrapper,
.players-wrapper,
.statistics-wrapper,
.task-wrapper {
    max-width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--dark-blue);
    box-shadow: 0px 0px 5px var(--blue);
    background-color: var(--pink);
    height: fit-content;
}
.card-timer{
    display: flex;
    gap: 5px;
    align-items: center;
    font-family: "Roboto Slab", serif;
    color: var(--red);
    text-align: center;
    font-size: 1em;
    font-weight: 900;
}
.task-wrapper {
    max-width: 280px;
    align-self: center;
    position: relative;
}
.start-game,
.add-player-message{
    position: absolute;
    width: 92%;
    height: 94%;
    padding-right: 10px;
    background-color: var(--pink);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.card-player {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.question-number{
    color: var(--dark-blue);
    font-size: 0.75em;
    display: flex;
    gap: 5px;
}
.card-task {
    text-align: justify;
}
.card-buttons,
.player-buttons {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.card-buttons button {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 1em;
    cursor: pointer;
}
#confirm,
#cancel {
    display: none;
}
.blue-button {
    border: 1px solid var(--dark-blue);
    background-color: var(--blue);
    color: var(--dark-blue);
}
.red-button {
    border: 1px solid var(--red);
    background-color: var(--peach);
    color: var(--red);
}
.blue-button:hover {
    border: 1px solid var(--dark-blue);
    background-color: var(--dark-blue);
    color: var(--blue);
    transition: 0.25s;
}
.red-button:hover {
    border: 1px solid var(--red);
    background-color: var(--red);
    color: var(--peach);
    transition: 0.25s;
}
footer {
    max-width: 100vw;
    padding: 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: var(--blue);
    color: var(--dark-blue);
    font-weight: 800;
}
footer img {
    height: 52px;
}

@media (max-width: 820px) {
    .main-wrapper {
        flex-direction: column;
        align-items: center;
    }
}
