@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@100..900&display=swap');

body,
html {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: rgb(211, 211, 211);
    font-family: "Big Shoulders Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    opacity: 1;
    pointer-events: auto;
}

#forza4{
    color: aliceblue;
    font-size: 60px;
    font-family: "Big Shoulders Display", sans-serif;
    font-weight: 900;
    animation: colorGradient 6s infinite;
}

@keyframes colorGradient {
    0% {
        color: red;
    }
    50% {
        color: yellow;
    }
    100% {
        color: red;
    }
}

#contenitore {
    grid-template-columns: repeat(7, 1fr);
    display: grid;
    border: 3px solid navy;
    background-color: blue;
    position: absolute;
    margin-top: 50px;
}

.card {
    height: 90px;
    width: 90px;
    background-color: rgb(205, 205, 255);
    font-size: 25px;
    border: 3px solid navy;
    border-radius: 50%;
    margin: 1px;
}

.card:hover {
    filter: brightness(1.4);
    transform: scale(1.055);
    cursor: pointer;
}

#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: navy;
    padding: 1px 150PX 50px 150px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    border: groove 7px;
    border-color: #0056b3;
}

#btnRegole,
#gioca,
#registro {
    padding: 25px;
    background-color: #007BFF;
    color: aliceblue;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    width: 300px;
    border: ridge 4px;
}

#btnRegole,
#registro {
    margin-top: 60px;
}

#btnRegole:hover,
#gioca:hover,
#capito:hover,
#registro:hover,
button:hover {
    background-color: #0056b3;
    cursor: pointer;
}

#regole {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    background-color: navy;
    padding: 100px 150PX 50px 150px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: aliceblue;
    font-size: 25px;
    text-align: left;
    border: groove 7px;
    border-color: #0056b3;
}

#capito {
    background-color: #007BFF;
    margin-top: 50px;
    width: fit-content;
    border-radius: 10px;
    padding: 15px 35px 15px 35px;
    border: ridge 3px;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

#listaNomi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    column-gap: 5px;
    list-style-type: none;
    width: 100%;
    margin: 20px 40px 15px 10px;
}

#listaNomi li {
    padding: 10px 1px 10px 1px;
    background-color: #3f9cff;
    color: white;
    text-align: center;
    font-size: 20px;
    border-radius: 3px;
}

#listaNomi li.header {
    background-color: navy;
    font-weight: bold;
    font-size: 20px;
    color: #fff;
}

#nomi {
    top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: navy;
    padding: 80px 100PX 110PX 100px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    color: aliceblue;
    font-size: 40px;
    text-align: center;
}

#nom {
    top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: navy;
    padding: 0px 50px 0PX 50px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    color: aliceblue;
    font-size: 40px;
    text-align: center;
}

#nameForm2 {
    position: absolute;
}

#turn {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(255, 255, 139);
    padding: 20px;
    border-radius: 7px;
    font-size: 20px;
    font-weight: bold;
}

#giocatore1 {
    color: yellow;
}

#giocatore2 {
    color: red;
}

button {
    background-color: #007bff;
    padding: 20px;
    color: antiquewhite;
    border: solid 2px #0059b8;
    border-radius: 5px;
    font-size: 20px;
    width: 260px;
    font-weight: bold;
    margin: 15px;
    margin-bottom: 0px;
}

#nameInput1,
#nameInput2 {
    text-align: center;
    background-color: #3f9cff;
    height: 60px;
    color: aliceblue;
    font-size: 20px;
    border: solid 2px #0059b8;
    border-radius: 5px;
    margin-bottom: 10px;
}

#homeButton {
    position: fixed;
    top: 0;
    left: 0;
    padding: 17px;
    width: 150px;
}

#esci {
    margin: 20px;
    left: 50%;
}

#homeButton{
 background-color: rgb(153, 17, 17);
 border-radius: 5px;
}