html,body
{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    font-family: "Noto Sans", sans-serif;
    background-color: #150c0d;
    
}



h1 {
    text-align: center;
    position: absolute;
    margin: auto;
    z-index: 2;
    top: 40vh;
    right: 0;
    left: 0;
    color: white;
    backdrop-filter: blur(.3125rem);
    width: fit-content;
    padding: 2rem;
    border-radius: 50%;
}

p,ul {
    margin-top: 0;
}

.start-up{
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.info {
    position: absolute;
    right: 1vw;
    top: 1vh;
}


.info path{
    fill: #c7d5e3;
}
form {
    position: absolute;
    bottom: 15vh;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 4;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2rem
}

.input-name {
    width: 18.75rem;
    height: 3.125rem;
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
    background-color: #090607;
    color: white;
}
.play-dota {
    transition: all 0.2s ease-in-out;
    cursor: pointer; 
}

.play-dota:hover {
    box-shadow: 0 0 1.25rem rgb(255, 255, 255);
}

.name-warning {
    color: red;
    font-size: 1rem;
    margin-top: .625rem;
}
.sub {
    background-color: transparent;
    border: none;
}


.banner{
    height: 100vh;
    width: 100vw;
    position: absolute;
    object-fit: cover;
}

.gradient {
    position: absolute;
    background-image: linear-gradient(to top, #150c0d, transparent);
    height: 100vh;
    width: 100vw;
}

.game-background {
    top: 0;
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    z-index: -1;
}



.i{
    cursor: pointer; 
}
.game-nav{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.icons-left {
    margin: 1rem;
    display: flex;
    align-items: center;
    grid-column: 1 / 2;
}

.icons-right {
    display: flex;
    align-items: center;
    grid-column: 4 / 5;
    justify-content: flex-end;
    margin-right: 1.5rem;
}

.icons img {
    margin: .3125rem;
    height: 2.5rem;
}

.icons img:hover{
    transform: scale(1.25);
    transition: transform 0.2s;
}

.icons svg{
    align-self: center;
}

.icons svg path {
    fill: #c7d5e3;
}

.sound {
    fill: #c7d5e3;
}

.icons svg:hover path {
    fill: #ff6046;
}

.info{
    z-index: 1;
}

.info-board {
    grid-column: 2 / 4;
    display: flex;
    justify-self: center;
    flex-direction: column;
    position: relative;
    color: white;
}

.name-output h3{
    text-align: center;
    margin: 0;
    margin-top: 1rem;
    font-size: 2rem;
}

.stat-board {
    display: flex;
    gap: 1.25rem;
    justify-self: center;
}

.game{
    position: absolute;
    top: 0;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.game-items {
    position: absolute;
    left: 0;
    right: 0;
}

.game-board{
    width: 90vw;
    height: 80vh;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    border: .625rem solid #ff6046;
    padding: .3125rem;
    border-radius: .3125rem;
    perspective: 625rem;
    margin-bottom: 3rem;
}

.game-card {
    width: calc(20% - .625rem);
    height: calc(25% - .625rem);
    position: relative;
    margin: .3125rem;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    cursor: pointer; 
}

.game-card:active{
    transform: scale(.95);
    transition: transform 0.2s;
}

.game-card.flip{
    transform: rotateY(180deg);
}

.front-face,
.back-face{
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: .625rem;
    backface-visibility: hidden;

}

.front-face{
    transform: rotateY(180deg);
}

.back-face {
    object-fit: contain;
    /* background-color: rgb(9, 9, 9); */

}

.restart-game{
    z-index: 6;
    position: absolute;
    color: white;
    background-color: #150c0d;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    padding: 5rem;
    text-align: center;
    border: .3125rem solid white;
    border-radius: .625rem;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}


.quit-game {
    z-index: 6;
    position: absolute;
    color: white;
    background-color: #150c0d;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    padding: 5rem;
    text-align: center;
    border: .3125rem solid white;
    border-radius: .625rem;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.button {
    display: flex;
    justify-content: space-evenly;

}

.button button,button {
    border: none;
    background-color: transparent;
    font-size: 3rem;
    color: white;
    cursor: pointer; 
}

.button button:hover {
    transform: scale(1.25);
    transition: transform .2s;
}

.back-drop {
    z-index: 5;
    backdrop-filter: blur(.1875rem);
    position: absolute;
    height: 100vh;
    width: 100vw;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}


footer{
    z-index: 10;
    text-align: center;
    color: white;
    width: 100vw;
    background-color: #150c0d;
    padding-top: 1rem;
}
footer p {
    margin: auto;
    padding-bottom: 1rem;
}

.winner {
    z-index: 6;
    position: absolute;
    color: white;
    background-color: #150c0d;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    padding: 5rem;
    text-align: center;
    border: .3125rem solid white;
    border-radius: .625rem;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.thanks {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    text-align: center;
    padding: 2rem;
    color: white;
    background-color: #150c0d;
    border: .3125rem solid white;
    border-radius: .625rem;
    max-width: fit-content;
    max-height: fit-content;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.info-t{
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks svg {
    fill: #c7d5e3;
}

.thanks button {
    font-size: 1.5rem;
}

.thanks button:hover{
    transform: scale(1.25);
    transition: transform .2s;
}


.thanks a{
    color: white;
    font-weight: bold;
}

.instructions {
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    position: absolute;
    padding: 2rem;
    color: white;
    background-color: #150c0d;
    border: .3125rem solid white;
    border-radius: .625rem;
    max-height: fit-content;
    max-width: fit-content;
    z-index: 6;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.instructions h2 {
    text-align: center;
    margin-top: 0;
}

.instructions button {
    justify-self: center;
}
.instructions button:hover{
    transform: scale(1.25);
    transition: transform .2s;
}


.hide {
    opacity: 0;
    pointer-events: none; 
    user-select: none;  
   }