body {
    margin: 0;
    font-family: 'Pixelify Sans', sans-serif;
    background-image: url(../img/bodyBG.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    height: 100vh;
    justify-content: center;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
  
}


main {
    margin-top: 80px;
}

canvas {
   margin: 0;
   z-index: 100;
  
}
.noPanel {
    position: fixed;
    z-index: 999;
}

.panel {
    background-image: url(../img/inicioBG.png);
    background-size: cover;
    width: 1061px;
    height: 720px;
    display: flex;
    flex-direction: column;
   
    
}

.gameover-panel {
    width: 1061px;
    height: 720px;
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 101;
}

.scores-panel{
    z-index: 101;
    width: 1061px;
    height: 720px;
    overflow: hidden;
    position: relative;
}

.scores-panel ol{
    color: white;
    border: 3px solid white;
    height: 42%;
    margin: auto;
    padding: 30px;
    font-size: 30px;
    margin-top: 40px;
    margin-bottom: 30px;
    display: inline;
    width: 50%;
    
}

.scores-panel ol li:first-child{
    background-color: rgba(232, 191, 58, 0.718);
}

.scores-panel ol li:nth-child(2){
    background-color: rgba(189, 189, 189, 0.718);
}

.scores-panel ol li:nth-child(3){
    background-color: rgba(170, 93, 42, 0.718);
}


.scores-panel li{
    margin: auto;
    width: 50%;
    text-align: center;
    font-size: 50px;
    
    

}


#your-score{
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 50px;
    margin: auto;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
}

.panel p, .gameover-panel p{
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 80px;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
    
}




.game-button {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 30px;
    background-color: transparent;
    width: 400px;
    height: 60px;
    color: white;
    border: 4px solid white;
    margin: 10px;
    
}

.gameover-panel form{
    margin: auto;
    font-size: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
}

.gameover-panel input {
    box-sizing: border-box;
    border: 3px solid white;
    background-color: transparent;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 25px;
    padding: 5px 15px;
    color: white;
    box-sizing: border-box;
    width: 150px;
    text-transform: uppercase;
}

.gameover-panel button {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 25px;
    padding: 5px 15px;
    color: white;
    box-sizing: border-box;
    border: 3px solid white;

}

.btn{
    background-color: transparent;
}

.try-again-btn {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 30px;
    background-color: transparent;
    width: 400px;
    height: 60px;
    color: white;
    border: 4px solid white;
    margin: 10px;
}

.selected{
    background-color: rgb(52, 117, 47);
}

ul {
    margin: auto;
    padding: 0;
    list-style: none;
}

.desaturate-50 {
    filter: saturate(50%) brightness(100%);
}

.startgame-panel {
    background-image: url(../img/inicioBG.png);
    width: 1061px;
    height: 720px;
    overflow: hidden;
    position: relative;
}

.startgame-panel-text{
    background-image: url(../img/iniciotext.png);
    width: 1061px;
    height: 720px;
    margin-top: -25px;
    position: absolute;
    left: 1061px;
    transition: left 5s ease;
    
}

.press-start{
    color: white;
    font-size: 40px;
    margin: 0;
    position: absolute;
    top: 400px;
    left: 320px;
    min-width: 500px;
}

.controls-panel{
    background-image: url(../img/controls.png);
    width: 1061px;
    height: 720px;
    overflow: hidden;
   position: relative;
}

.controls-panel p {
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 80px;
    margin: auto;
    margin-top: 30px;
    
}

.btn-back{
    font-family: 'Pixelify Sans', sans-serif;
    margin:auto;
    font-size: 25px;
    padding: 5px 15px;
    color: white;
    border: 3px solid white;
    background-color: rgb(52, 117, 47);
    width: 200px;
    position: absolute;
    top: 56px;
    left: 85px;
}


.play-game{
    background-image: url(../img/inicioBG.png);
    width: 1061px;
    height: 720px;
    overflow: hidden;
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
}
#play-game {
    background-image: url(../img/buttons/[1]\ Normal.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 144px;
    height: 48px;
    background-color: transparent;
    border: none;
    font-family: 'Pixelify Sans', sans-serif; ;
    color: white;
    font-weight: 700;
    font-size: 20px;
    padding-bottom: 10px;
    margin: 20px;
}

#play-game:active {
    background-image: url(../img/buttons/Clicked.png);
    padding-bottom: 0px;
}

.flags-container{
    background-color: rgba(0, 0, 0, 0.415);
    width: 300px;
    height: 320px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
#uk-flag {
    background-image: url(../img/buttons/UK.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    width: 100px;
    height: 75px;
    margin: 20px;
}

#uk-flag:hover{
    filter: brightness(0.5);
}

#spain-flag {
    background-image: url(../img/buttons/SPAINt.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    width: 100px;
    height: 75px;
}
#spain-flag:hover {
    filter: brightness(0.5);
}

.hidden {
    display: none;
}


#volumeSlider::before {
    content: url(../img/volume.png);
    margin-left: -45px;
    margin-top: -10px;
    display: inline-block;

}


#volumeSlider {
    position: absolute;
    top: 100px;
    right: -500px;
    width: 90px;
    height: 10px;
    appearance: none; 
    background: #a15930; 
    outline: none;  
    z-index: 102;
}


#volumeSlider::-webkit-slider-thumb {
    appearance: none; 
    width: 15px;
    height: 15px;
    background: #dfa7a7; 
    border-radius: 0%;
    cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3498db;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
