
@font-face{ 
    font-family: babish;
    src: url(./fonts/BARBJSH.TTF);
}

@font-face {
    font-family: typewriter;
    src: url(./fonts/TypewriterScribbled.ttf);
}

* {
    padding: 0;
    margin: 0;
}

span {
    animation: blinker 1s linear infinite;
    display: flex;
}

@keyframes blinker{
    50%{
        opacity: 0;
    }
}


html, body{
    background-color: black;
    color: white;
    height: 100%;
    

}

#titles{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
#message{
    display: flex;
    font-family: typewriter;
    font-size: 2rem;
}
.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 100vh;
    position: relative;
    scroll-snap-type: ;
    
    
}

#titles {
    position: absolute;
    top: 0;
}

#game {
    display: flex;
    flex-direction: column;
    border: 4px solid white;
    justify-content: space-between;
    padding: 20px; 
    max-width: 60%;
}



h1 {
    font-family: 'babish';
    font-size:  5rem;
    text-align: center;
}

h2 {
    font-family: 'typewriter';
    font-size: 2rem;
    text-align: center;
    
}

.weapons {
    display: flex;
    gap: 2rem;
    cursor: pointer;
    margin-bottom: 1rem;

}
.weapon{
    max-width: 30%;

    
}

.weapon:hover {
    animation: bounce 0.5s infinite;
    transition: transform 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-30px);
    }
    60% {
      transform: translateY(-15px);
    }
  }

#score { 
    font-family: typewriter;
    display: flex;
    font-size: 2rem;
    justify-content: space-around;
    margin-bottom: 100;
    margin-bottom: 1rem;
}

#win-message{
    font-family: typewriter;
    font-size: 1rem;
    margin-bottom: 1rem;
}


.button {
    font-family: typewriter;
    border: white solid 2px;
    padding: 10px;
    font-size: 2rem;
    text-align: center;
    cursor: pointer;
    
    
}

#footer {
    width: 100%;
    display: flex;
    position: relative;
    background-color: white;
    margin-top: -30px;
    height: 30px;
    color: black;
    font-family: typewriter;
    justify-content: center;
    text-align: end;
    align-items: center;

}

@media (max-width:600px) {
    h1{
        font-size: 3rem;
    }
    #message{
        font-size: 1rem;
    }
    .weapons, #score{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 1rem;
    }
    .weapon{
        max-width: 130px;
    }

    .button{
        font-size: 1rem;

    }

}

.player-win-message, .computer-win-message {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: typewriter;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}


.win-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: black;
    padding: 1rem 1.5rem;
    width: 24rem;
    border-radius: 0.5rem;

}


#reset-button {
    font-family: typewriter;
    border: black solid 2px;
    padding: 10px;
    font-size: 2rem;
    text-align: center;
    cursor: pointer;
    
    
}


.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}


.computer-reset-button, .player-reset-button{
    font-family: typewriter;
    border: black solid 2px;
    padding: 10px;
    font-size: 2rem;
    text-align: center;
    cursor: pointer;


}