*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    /* align-items: center; */
}

.main-container{
    margin-top: 80px;
    min-width: 500px;
    max-width: 600px;
    background-color: rgba(255,255,255,0.95);
    border-radius: 20px;
    animation: slideUp 0.6s ease-in;
}

@keyframes slideUp {
    from{
        opacity: 0;
        transform: translateY(-100px);
    }
    to{
        opacity: 100;
        transform: translateY(0);
    }
}

.title{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.title h2{
    font-size: 2.5rem;
}

.title p{
    font-size: 1.2rem;
    font-weight: 400;
    color: grey;
}

.boxes{
    display: flex;
    justify-content: space-evenly;
}

.box{
    min-width: 120px;
    min-height: 100px;
    margin-top: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    text-align: center;
    border-radius: 15px;
    color: white;
    font-size: 0.85rem;
    padding: 5px;
}

.box p{
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 12px;
}

.range-box{
    background: rgba(102, 126, 234, 0.1);
    margin: 20px 10px;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: gray;
}

form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.number-input{
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}
.number-input:hover{
    transform: scale(1.04);
}
.number-input:focus{
    outline: none;
    transform: scale(1.04);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}


.buttons{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.buttons #guess-button,#newgame-button{
    padding: 20px 40px;
    font-size: 1.25rem;
    border-radius: 20px;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.buttons #guess-button:hover,#newgame-button:hover{
    transform: scale(1.035);
}

.buttons #guess-button{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.buttons #newgame-button{
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(252, 182, 159, 0.3);

}

.display{
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hint{
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    animation: shake 0.5s ease-in-out;
}
   @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

.win{
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            animation: pulse 0.5s ease-in-out;
}
@keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }


#warnings{
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #ffdddd;
    color: #a94442;
    border: 1px solid #e0b4b4;
    border-radius: 6px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from{
        opacity: 0;
        transform: translateY(-5px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
