body {
    background-image: url("images/map.jpeg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

/* ******** HEADING ******** */

h1 {
    text-align: center;
    color: white;
    font-size: 2.5em;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    width: fit-content;
    margin: 25px auto;
    padding: 10px 10px 0 10px;
    border: 2px solid black;
    border-radius: 6px;
    font-family: Papyrus, 'Times New Roman', Times, serif;
    text-shadow: 0 0 15px #0096c7, 0 0 15px #0096c7
}

.container {
    padding: 15px;
    position: relative;
    margin: auto;
}

/* ******** QUESTION ******** */

#question {
    width: 70%;
    padding: 30px 30px 25px 30px;
    border: 3px solid black;
    background-color: rgba(248, 237, 235);
    backdrop-filter: blur(9px);
    color: black;
    font-family: Papyrus, 'Times New Roman', Times, serif;
    border-radius: 6px;
    font-size: 28px;
    margin: 10px auto;
    font-weight: bold;
    width: fit-content;
}

/* ******** ANSWERS ******** */

#answer {
    width: 50%;
    margin: 10px auto;
    color: white;
    /* background-color: red; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#answer ul {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-around;
    list-style: none;
    margin-left: -40px;
}

#answer ul li {
    width: 40%;
    height: 40px;
    background-color: #22223b;
    color: white;
    padding-top: 28px;
    text-align: center;
    margin: 5px;
    font-weight: bolder;
    cursor: pointer;
    letter-spacing: 1px;
    font-family: fantasy;
    line-height: 1; 
}

#a, #b, #c, #d, #open, #close {
    transition: box-shadow 0.15s linear;
}

#a {
    border: 6px #0077b6 double;
}
#a:hover {
    /* text-shadow: 0 0 7px #0096c7, 0 0 7px #0096c7; */
    box-shadow: 0 0 20px #0096c7;
}
#b {
    border: 6px #7f5539 double
}
#b:hover {
    /* text-shadow: 0 0 7px #6c584c, 0 0 7px #6c584c; */
    box-shadow: 0 0 20px #6c584c;
}
#c {
    border: 6px #fe5d62 double
}
#c:hover {
    /* text-shadow: 0 0 7px #fe7b64, 0 0 7px #fe7b64; */
    box-shadow: 0 0 20px #fe7b64;
}
#d {
    border: 6px #f4f3ee double
}
#d:hover {
    /* text-shadow: 0 0 1px #bfdbf7, 0 0 1px #bfdbf7; */
    box-shadow: 0 0 20px #ffffff;
}

/* ******** SCOREBOARD ******** */

#scores {
    display: flex;
    width: 50%;
    /* background-color: darkslategrey; */
    justify-content: center;
    margin: 10px auto
}

#player1, #player2 {
    width: 25%;
    background: rgba(0,0,0,0.6);
    color: white;
    margin: 5px;
    text-align: center;
    border: 2px solid black;
    backdrop-filter: blur(3px);
    text-shadow: 0 0 7px #0096c7, 0 0 7px #0096c7;
    border-radius: 6px;
}

#player1 img {
    height: 45px;
}

#player2 img {
    height: 42px;
}

#open {
    cursor: pointer;
}
#open:hover {
    box-shadow: 0 0 20px #fe7b64;
}

#close {
    cursor: pointer;
}
#close:hover {
    box-shadow: 0 0 20px #fe7b64;
}

.modal-container {
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-container.show {
    pointer-events: auto;
    opacity: 1;
}

.modal {
    background-color: rgb(248, 237, 235);
    color: #000;
    width: 600px;
    max-width: 100%;
    padding: 30px 50px;
    border-radius: 5px;
    box-shadow: rgba(0,0,0,0.2);
    text-align: center;
}

.modal h1 {
    text-shadow: 0 0 7px #E63946, 0 0 7px #E63946;
    background: unset;
    border: unset;
    color: #000
}
.modal p {
    font-family: fantasy;
    font-size: 18px;
}
.flamin {
    text-shadow: 0 0 7px #E63946, 0 0 7px #E63946;

}

button {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 5px;
    border: 0;
    padding: 10px 25px;
    box-shadow: 0 2px 4 px rgba (0,0,0,0.2);
    font-size: 14px;
    font-family: fantasy;
    margin-left: 12%;
}

@media (max-width: 640px) {
    h1 {
        font-size: 24px;
    }
    #question {
        font-size: 16px;
    }
    #answer {
        width: 100%;
        margin-left: -20px;
    }
    #answer ul {
        flex-direction: column;
        align-items: center;
        display: flex;
        flex-direction: row;
    }
    #answer ul li {
        width: 40%;
    }
    #a, #b, #c, #d {
        font-size: 14px;
    }
    #scores {
        width: 100%;
    }
    .modal-container {
        width: 100%;
    }
}