body, html {
    margin: 0 auto;
    height: 100%;
    background-image: url("tausta.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* Menu */

h1 {
    display: flex;
    justify-content: center;
    background-color: white;
    border-radius: 25px;
    padding: 10px;
    width: 100%;
    font-size: 40px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: normal;
}

#options-background-music {
    padding: 10px;
    right: 30px;
    width: 30%;
}

.menu-options {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: rgb(168, 236, 212);
    border: 1px solid black;
    border-radius: 25px;
    margin-top: 50px;
    margin-left: 5%;
    margin-right: 5%;
    padding: 30px;
}

#question-count-button {
    width: 30%;
    padding: 10px;
    margin: 15px;
    cursor: pointer;
}

.question-count {
    display: none;
    border-radius: 25px;
    border: 1px solid black;
    background-color: rgb(168, 236, 212);
    margin-top: 50px;
    margin-left: 5%;
    margin-right: 5%;
    padding: 20px;
}

#question-count-header {
    background-color: white;
    border-radius: 25px;
    text-align: center;
    padding: 10px;
    font-size: 40px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.select-question-count {
    margin-left: 40px;
    color: white;
    border: 2px solid white;
    background-color: rgb(100, 204, 164);
    width: 20%;
    font-weight: bold;
    font-size: 20px;
    border-radius: 20px;
    cursor: pointer;
}

.select-question-count:hover {
    background-color: rgb(156, 224, 198);
}

#options-reset-highscore {
    width: 30%;
    padding: 10px;
    margin: 15px;
    cursor: pointer;
    color: red;
}

#options-reset-highscore:hover {
    background-color: rgb(232, 157, 157);
}

#options-info {
    width: 30%;
    padding: 10px;
    cursor: pointer;
}

#background-music-text {
    text-align: center;
    width: 30%;
    padding: 10px;
    font-size: 20px;
}

#game-sound-text {
    text-align: center;
    width: 30%;
    padding: 10px;
    font-size: 20px;
}

#button-back {
    cursor: pointer;
    background-color: transparent;
    color: red;
    border: none;
}

.game-info {
    background-image: url(infotausta.jpg);
    background-size: 100% 100%;
    border: 1px solid black;
    display: none;
    border-radius: 25px;
    background-color: rgb(168, 236, 212);
    margin-top: 50px;
    margin-left: 5%;
    margin-right: 5%;
    padding: 20px;
    height: 80vh;
}

#info-text {
    text-align: center;
    font-size: 18px;
}

.reset-confirmation {
    display: none;
    border: 1px solid black;
    border-radius: 25px;
    background-color: rgb(168, 236, 212);
    margin-top: 50px;
    margin-left: 5%;
    margin-right: 5%;
    padding: 20px;
    height: 80vh;
}

#reset-header {
    background-color: white;
    border-radius: 25px;
    text-align: center;
    padding: 10px;
    font-size: 40px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

#reset-confirmation-yes {
    background-color: rgb(100, 204, 164);
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    float: right;
    width: 20%;
    height: 10%;
    margin-top: 10%;
    margin-right: 25%;
    cursor: pointer;
}

#reset-confirmation-no {
    background-color: red;
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    width: 20%;
    height: 10%;
    margin-top: 10%;
    margin-left: 25%;
    cursor: pointer;
}

#reset-confirmation-yes:hover {
    background-color: rgb(156, 224, 198);
}

#reset-confirmation-no:hover {
    background-color: darkred;
}

@media screen  and (max-width: 950px){
    h1 {
        width: 100%;
    }

    #question-count-button {
        width: 50%;
    }

    .select-question-count {
        font-size: 15px;
        width: 15%;
    }

    #question-count-header {
        font-size: 20px;
    }

    #options-reset-highscore {
        width: 50%;
    }

    #options-info {
        width: 50%;
    }

    #info-text {
        font-size: 17px;
    }

    #reset-header {
        font-size: 30px;
    }

    #reset-confirmation-yes {
        width: 40%;
        margin-right: 5%;
    }

    #reset-confirmation-no {
        width: 40%;
        margin-left: 5%;
    }

}

@media screen  and (max-width: 800px){

    #menu-options {
        width: 70%;
    }

    #question-count-button {
        width: 50%;
    }

    .select-question-count {
        font-size: 15px;
        width: 15%;
    }

    #options-reset-highscore {
        width: 50%;
    }

    #options-info {
        width: 50%;
    }

    #button-back {
        font-size: 13px;
    }

    #info-text {
        font-size: 16px;
    }

    #reset-header {
        font-size: 27px;
    }

    #reset-confirmation-yes {
        width: 35%;
        margin-right: 10%;
    }

    #reset-confirmation-no {
        width: 35%;
        margin-left: 10%;
    }
}

@media screen  and (max-width: 500px){

    .question-count {
        width: 80%;
    }

    .select-question-count {
        font-size: 15x;
        width: 15%;
        margin-left: 25px;
    }

    #button-back {
        font-size: 10px;
    }

    #info-text {
        font-size: 13px;
    }

    #reset-header {
        font-size: 22px;
    }

    #reset-confirmation-yes {
        width: 30%;
        margin-right: 10%;
    }

    #reset-confirmation-no {
        width: 30%;
        margin-left: 10%;
    }
}


@media screen  and (max-width: 400px){

    h1 {
        font-size: 20px;
    }

    .menu-options {
        width: 70%;
    }

    #question-count-button {
        width: 70%;
    }

    .select-question-count {
        font-size: 15px;
        width: 15%;
    }

    #options-reset-highscore {
        width: 70%;
    }

    #options-info {
        width: 70%;
    }

    #button-back {
        font-size: 10px;
    }

    #info-text {
        font-size: 11px;
    }

    #reset-header {
        font-size: 18px;
    }

    #reset-confirmation-yes {
        width: 35%;
        margin-right: 5%;
    }

    #reset-confirmation-no {
        width: 35%;
        margin-left: 5%;
    }
}

@media screen  and (max-width: 300px){
    #button-back {
        font-size: 5px;
    }

    #question-count-header {
        font-size: 10px;
    }

    .question-count {
        width: 80%;
    }

    .select-question-count {
        font-size: 10x;
        width: 17%;
        margin-left: 10px;
    }

    #game-sound-text {
        font-size: 15px;
    }

    #background-music-text {
        font-size: 15px;
    }

    #info-text {
        font-size: 9px;
    }
}

@media screen and (max-height: 400px) {
    .menu-options {
        height: 200px;
    }

    h1 {
        font-size: 15px;
    }

    .game-info {
        height: 250px;
    }

    #button-back {
        position: absolute;
        top: 55px;
        font-size: 10px;
    }

    #info-text {
        font-size: 11px;
    }
}

@media screen and (max-height: 300px) {
    .menu-options {
        height: 160px;
    }

    h1 {
        font-size: 12px;
    }

    #question-count-button {
        font-size: 12px;
    }

    #options-info {
        font-size: 12px;
    }

    #options-reset-highscore {
        font-size: 12px;
    }

    .game-info {
        height: 150px;
    }

    #button-back {
        position: absolute;
        top: 55px;
        font-size: 7px;
    }

    #info-text {
        font-size: 8px;
    }
}