*, *::after, *::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    text-align: center;
    background: linear-gradient(to right, #b3ff00ac, #00e300);
    font-size: 16px;
    font-family: 'Shadows Into Light', Arial, Helvetica, sans-serif;
    height: 100vh;
}

button {
    font-family: 'Shadows Into Light', Arial, Helvetica, sans-serif;
}

button:hover {
    cursor: pointer;
}

.left-align {
    text-align: left;
  }
  
.right-align {
    text-align: right;
  }
  
.center-align {
    text-align: center;
  }

.intro-text {
    line-height: 2.2rem;
    margin-bottom: 0px;
}

.fade-in {
    animation: fadeIn 5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        pointer-events: none;
    }
    100% {
        opacity: 100%;
        pointer-events: all;
    }
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
      }
      25% {
        transform: rotate(2.5deg);
      }
      50% {
        transform: rotate(-2.5deg);
      }
      75% {
        transform: rotate(2.5deg);
      }
      100% {
        transform: rotate(0deg);
      }
}

@keyframes turnGreen {
    0% {
        opacity: 0;
        color: white;
        background-color: #00e300;
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        color: white;
        background-color: #007c00;
        padding: 10px;
    }
}

@keyframes turnRed {
    0% {
        opacity: 0;
        color: white;
        background-color: #e30000;
    }
    50% {
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        color: white;
        background-color: #7c0000;
        padding: 10px;
    }
}

.tie {
    animation: shake 0.5s ease-in-out;
}

.win {
    animation: turnGreen 0.7s ease-in forwards;
}

.lose {
    animation: turnRed 0.7s ease-in forwards;
}

.wrapper {
    width: 80%;
    margin: 0 auto;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    background-color: rgb(219, 219, 121);
    border-radius: 0px 0px 20px 20px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
    padding: 0rem 1rem 2rem;
}

#game-wrapper {
    margin-bottom: 1rem;
    animation-name: fadeIn;
    animation-duration: 2s; /* 2s */
    animation-timing-function: linear;
    animation-delay: 21s; /* 21s */
    animation-fill-mode: forwards;
    opacity: 0;
}

#rps-cards {
    display: flex;
    flex-flow: column;
    gap: 12px;
    align-items: center;
}

#game-feedback {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 4px;
}
  
.choice-card {
    background-color: rgb(155, 132, 0);
    color: white;
    width: 100%;
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;   
    overflow: hidden;
    outline-width: 4px;
    outline-style: outset;
    border-radius: 0px 10px 10px 30px;
    outline-color: rgb(107, 246, 207);
    transition: outline-width 0.5s;
}

.choice-card:hover {
    outline-width: 6px;
    outline-style: inset;
}

.choice-card:hover .card-btn button {
    right: 0%;
}

.card-btn {
    position: relative;
}

.card-btn button {
    opacity: 0.5;
    position: absolute;
    right: -150px;
    transform: translateY(-50%);
    transition: right 1s ease-out;
}

.card-btn img {
    height: 50px;
}

.active-btn {
    box-shadow: 5px 5px 5px rgba(41, 35, 0, 0.7);
    opacity: 1 !important;
    border: 4px solid black;
}

#start-game {
    margin-top: 10px;
    font-size: 1rem;
    padding: 4px 16px;
    background-color: #92db1d;
    position: relative;
    transition: background-color 0.3s,
        color 0.3s,
        outline 0.15s;
    border: none;
    border-radius: 8px;
}

#start-game:hover {
    color: white;
    background-color: rgb(45, 57, 41);
    outline: 3px solid white;
}

#start-game::before,
#start-game::after {
    position: absolute;
    content: "";
    background-color: rgb(187, 142, 27);
    pointer-events: none;
}

#start-game::before {
    width: calc(100% + 20px);
    right: -10px;
    bottom: -10px;
    height: 4px;
}

#start-game::after {
    width: 4px;
    top: 0;
    right: -10px;
    height: calc(100% + 10px);
}

@media (min-width: 768px) {
    
    body {
        font-size: 22px;
    }

    .wrapper {
        margin-top: 3rem;
        padding: 1rem 2rem 3rem;
    }

    #rps-cards {
        flex-flow: row;
        gap: 24px;
    }

    .choice-card {
        padding: 10px;
    }
}

@media (min-width: 993px) {
    
    .choice-card {
        height: 160px;
        padding: 30px;
    }

    .card-btn img {
        height: 75px;
    }

}