* {
    box-sizing: border-box;
}
body{
    display: flex; 
    align-items: center;
    justify-content: center;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    align-items: center;
    min-height: 100vh;
    background-color: #2f2123;
    color: #8d8a8a;
}
.classContainer{
    border-radius: 12px;
    max-width: 600px;
    text-align: end;  
    padding: 40px;  
    box-shadow: 0 0 0 3px rgba(5, 130, 100, 0.5);
    position: relative;
    overflow: hidden;
}
#randomQoute{
    font-size: 25px;
    font-weight: bold;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: white;
    margin-top: 15px;
}
#randomAuthor{
    font-size: 25px;
    font-style: italic;
    font-weight: bold;
    margin-top: 15px;
    color: #777;
}    
#new-quote-btn{
    color: white;
    background-color: blue;
    border: none;
    border-radius: 10px ;
    cursor: pointer;
    transition: 0.3s;
    padding: 1.5rem 4.5rem;
    font-size: 1.1rem;
    margin-top: 30px;
}#new-quote-btn:hover{
    background-color: #0056b3;
    color: black;
    transform: translateY(-2px);
}
#new-quote-btn::after{
    background-color: #004085;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .classContainer {
        padding: 30px; 
    }
    #randomQoute {
        font-size: 1.8rem; 
    }
    #randomAuthor {
        font-size: 1.1rem; 
    }
    #new-quote-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .classContainer {
        padding: 20px;
        width: 95%; 
    }
    #randomQoute {
        font-size: 1.5rem; 
    }
    #randomAuthor {
        font-size: 1rem;
    }
    #new-quote-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        display: block; 
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Add these to your style.css */
#randomQoute,
#randomAuthor {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-out; 
    transform: translateY(0); 
}

.fade-out {
    opacity: 0;
    transform: translateY(10px); 
}
