* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: grid;
    grid-template-rows: 1fr 3fr 1fr;
    font-family: Arial, Helvetica, sans-serif;
    background: #3a3782;
    background: linear-gradient(90deg, #1CB5E0 0%, #000851 100%);
    text-align: center;
    justify-items: center;
    height: 100vh;
}

header {
    display: flex;
    width: 80%;
    height: 90px;
    background: rgba(255, 255, 255, 0.089);
    border-radius: 0 0 26px 26px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    border: 1px solid rgba(255, 255, 255, 0.19);
    color: #FFFFFF;
    grid-row: 1 / 2;
}

p {
    font-weight: bold;
    color: #ffffff92;
    padding: 5px;
}

.item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* horizontal */
    align-items: center;
    /* vertical */
    text-align: center;
}

#empate {
    color: rgb(255, 213, 0);
}


.middle-container {
    display: flex;
    flex-direction: row;
    margin: 10px auto;
    width: 80%;
    gap: 85px;
    align-items: center;
    justify-content: center;
    text-align: center;
    grid-row: 2 / 3;
}

.display-choice {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 200px;
    width: 90vw;
    max-width: 600px;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.089);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    border: 1px solid rgba(255, 255, 255, 0.19);
    color: #FFFFFF;
}

.result {
    color: #FFFFFF;
    margin: 10px auto 25px auto;
}


.bottom-container {
    display: flex;
    flex-direction: row;
    width: 80%;
    gap: 25px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
}

button {
    flex: 1;
     width: 45vw; 
    max-width: 300px;
    height: auto; 
    min-height: 120px; 
    font-size: 50px;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgb(255, 255, 255);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    border: 1px solid rgba(255, 255, 255, 0.19);
}

button:hover {
    transform: scale(1.05);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

#stone {
    background-color: #4e5869bd;
}

#paper {
    background-color: #1a5ef2b1;
}

#scissors {
    background-color: #ec212bc0;
}

.display-my-choice img,
.display-alexa-choice img {  
    animation: pop 0.6s ease;
}


.jokenpo-mode {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.shake {
  animation: shake 0.2s ease;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}


@keyframes spin {
    0%{
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



@keyframes pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1143px) {
    body {
        height: 100vh;
        width: 100vw;
        background: #3a3782;
    }

    .middle-container,
    .bottom-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 20px auto;
        width: 100%;
    }
    .bottom-container {
        display: flex;
        flex-direction: row;
    }
    button {
        width: 30%;
        max-width: none;
        height: 120px;
    }
}