@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Mynerve&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300&display=swap');
.titolo{
font-size: 5rem;
font-family: 'Lobster', cursive;
position: relative;
color: #00d118;
text-shadow:
1px 1px 0 #085100,
2px 2px 0 #085100,
3px 3px 0 #085100,
4px 4px 0 #085100,
5px 5px 0 #085100,
6px 6px 0 #085100,
7px 7px 0 #085100;
}
.hidden{
opacity: 0;
}
#parola{
font-size: 4rem;
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
font-family: 'Raleway', sans-serif;
white-space: nowrap;
}
.container{
background-color: rgba(255, 255, 255, 0.621);
border-radius: 20px;
box-shadow: 0 1.2em 2.4em rgba(0, 0, 0, 0.342);
position: absolute;
transform: translate(-50%, -50%) scale(1);
top: 50%;
left: 50%;
zoom: 1;
overflow: hidden;
}
.content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#tentativi{
font-size: 30px;
font-family: 'Raleway', sans-serif;
position: absolute;
top: 80%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 1;
}
#newGame {
font-family: 'Raleway', sans-serif;
background-color: #ffffff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition-duration: 0.4s;
color: black;
border-color: black;
border-width: 5px;
border-radius: 100px;
font-weight: bold;
position: relative;
z-index: 999;
}
#newGame:hover {
background-color: #b7ffaa;
}
#newGame:active {
width: 150px;
height: 100px;
background-color: #5eff45;
}
#newGame.resized {
width: 150px;
height: 100px;
font-size: 25px;
top: 75%;
right: 80%;
animation: none;
position: absolute;
}
.popup {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.7);
display: none;
justify-content: center;
align-items: center;
}
.impiccato{
position: absolute;
z-index: -999;
top: 285px;
right: 5px;
}
.tree{
    position: absolute;
    z-index: -999;
    top: 285px;
    right: 5px;
    width: 50%;
    left:-5%;
    top: 23%;
    width: 45%;
    }
.popup-content {
background-color: #fff;
padding: 20px;
border-radius: 20px;
text-align: center;
max-width: 600px;
}
.close-button {
width: 100px;
height: 70px;
font-size: 20px;
font-family: 'Raleway', sans-serif;
background-color: #ffffff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition-duration: 0.4s;
color: rgb(224, 27, 27);
border-color: rgb(224, 27, 27);
border-width: 5px;
border-radius: 100px;
font-weight: bold;
}
.close-button:hover {
color: rgb(255, 255, 255);
background-color: rgb(224, 27, 27);
width: 90px;
height: 60px;
font-size: 15px;
}
h2 {
font-family: 'Lobster', cursive;
font-size: 60px;
}
#tastiera{
margin-top: 20px;
}
#tastiera button{
width: 70px;
height: 70px;
font-size: 30px;
font-family: 'Raleway', sans-serif;
background-color: #ffffff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition-duration: 0.4s;
color: black;
border-color: black;
border-width: 4px;
border-radius: 20%;
font-weight: bold;
margin-left: 5px;
margin-top: 5px;
}
.shake{
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both infinite;
}
.shake2{
    animation: shake 0.5s;
}
@keyframes shake {
    10%,
    90% {
      transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
      transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
      transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
      transform: translate3d(4px, 0, 0);
    }
  }
#tastiera button:hover{
background-color: #c8ffbd;
}
button.block2{
background-color: rgb(255, 0, 0) !important;
color: white !important;
}
button.block{
background-color: rgb(0, 255, 42) !important;
}
button:disabled:hover{
background-color: #ffffff !important;
}
button.block:disabled:hover{
background-color: rgb(0, 255, 42) !important;
}
button.block2:disabled:hover{
background-color: rgb(255, 0, 0) !important;
}

/* Dispositivi mobili */
@media only screen and (max-width: 600px) {
    .titolo {
    font-size: 3rem;
    top: 5%;
    }
    #parola {
    font-size: 2.2rem;
    bottom: 260px;
    }
    .container {
    width: 90vw;
    height: 150vw;
    }
    #tentativi {
    font-size: 20px;
    right: 100px;
    }
    #newGame {
    width: 120px;
    height: 80px;
    font-size: 20px;
    }
    #newGame.resized {
    width: 100px;
    height: 70px;
    font-size: 18px;
    top: 80%;
    right: 70%;
    }
    .close-button {
    width: 80px;
    height: 50px;
    font-size: 16px;
    }
    #tastiera button{
    width: 47px;
    height: 47px;
    }
    .impiccato{
    width: 140px;
    position: absolute;
    z-index: -999;
    top: 460px;
    right: 2px;
    }
}

/* Dimensioni medie */
@media only screen and (min-width: 600px) and (max-width: 900px) {
    .titolo {
    font-size: 4rem;
    top: 5%;
    }
    #parola {
    font-size: 2.5rem;
    }
    .container {
    width: 80vw;
    height: 55vw;
    }
    #tentativi {
    font-size: 25px;
    }
    #newGame {
    width: 150px;
    height: 100px;
    font-size: 25px;
    top: -5px;
    }
    #newGame.resized {
    width: 130px;
    height: 80px;
    font-size: 20px;
    top: 320px;
    left: 20px;
    }
    .close-button {
    width: 90px;
    height: 60px;
    font-size: 18px;
    }
    .impiccato{
    width: 200px;
    position: absolute;
    z-index: -999;
    top: 190px;
    right: 30px;
    }
    #tastiera button{
    width: 50px;
    height: 50px;
    }
}

/* Desktop */
@media only screen and (min-width: 900px) {
    .titolo {
    font-size: 5rem;
    top: 10%;
    }
    #parola {
    font-size: 4rem;
    }
    .container {
    width: 70vw;
    height: 43vw;
    }
    #tentativi {
    font-size: 30px;
    }
    #newGame {
    width: 180px;
    height: 110px;
    font-size: 30px;
    top: 50px;
    }
    #newGame.resized {
    width: 150px;
    height: 100px;
    font-size: 25px;
    top: 75%;
    right: 80%;
    }
    .close-button {
    width: 100px;
    height: 70px;
    font-size: 20px;
    }
    .impiccato{
    width: 300px;
    }
    #tastiera button{
    width: 70px;
    height: 70px;
    }
}

