*{
    margin:0;
    padding: 0;
}
body{
      background-color: #2c2f48;
    color: WHITE ;
    font-family: sans-serif;
     display: grid;
    place-items: center;
    text-align: center;
}

.banner p{
    
   display: flex;
   justify-content: center;
    align-content: center;
    margin-top: 50px;
    font-size: 50px;
    font-weight: 600;
}
.wrapcon{
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    justify-content: center;
    background-color: #1f1f2e;
    height: 500px;
    width: 700px;
    color: white;
    margin: 50px;
    
}
.content p {
    margin-top: 20px;
    color: white;
    font-size: 20px;
    text-align: center;
}
.guess-heading{
     color: #ff4081;
    font-size: 45px;
    font-weight: 600;
    text-align: center;
    padding: 32px 8px 20px;

}
.input-box {
    display: flex;
    align-content: center;
    justify-content: center;
}
.input-box input{
    height: 44px;
    width: 280px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    border: none;
    outline: none;

}
.button{
    display: flex;
    justify-content: center;
    align-content: center;
    margin-top: 20px;
}
button {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    font-size: 18px;
    font-weight: bold;
    height: 50px;
    width: 130px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
#newgame {
    margin-top: 12px;
    background: linear-gradient( #ff4081, #d81b60);
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

#newgame:hover {
    background: linear-gradient(135deg, #ff5b94, #e91e63);
    transform: scale(1.05);
}

#newgame:active {
    transform: scale(0.97);
}

button:hover {
    background: linear-gradient(135deg, #34d058, #28a745);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}


button:active {
    transform: scale(0.97);
}
.perviousgues,.rem{
    
    display: flex;
    justify-content: center;
    align-content: center;
    color: white;
    margin-top: 20px;
    font-size: 20px;
}
.lower-hi h2 {
  animation: pop 0.4s ease-in-out;
}


@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s;
  
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}





@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .banner p {
        font-size: 24px;
        margin-top: 8px;
        padding: 0 8px;
        line-height: 1.3;
    }

    .wrapcon {
        width: 100%;
        height: auto;
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    }

    .guess-heading {
        font-size: 24px;
        padding: 15px 5px 10px;
    }

    .content p {
        font-size: 15px;
        padding: 0 6px;
    }

    .input-box {
        flex-direction: column;
        gap: 10px;
    }

    .input-box input {
        width: 90%;
        height: 38px;
        font-size: 15px;
        padding: 8px;
    }

    button {
        width: 90%;
        max-width: 250px;
        height: 45px;
        font-size: 15px;
    }

    #newgame {
        width: auto;
        font-size: 14px;
        padding: 5px 12px;
    }

    .perviousgues, .rem {
        font-size: 15px;
        text-align: center;
        padding: 0 5px;
        flex-wrap: wrap;
    }

    .lower-hi h2 {
        font-size: 16px;
        text-align: center;
        padding: 5px;
    }

    /* Keep shake animation */
    @keyframes shake {
        0% { transform: translateX(0); }
        25% { transform: translateX(-4px); }
        50% { transform: translateX(4px); }
        75% { transform: translateX(-4px); }
        100% { transform: translateX(0); }
    }

    .shake {
        animation: shake 0.4s;
    }
}




