/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap'); */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: 'Poppins', sans-serif; */
}

body {
    font-family: 'Palatino', serif;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* inserisco new per creative */

h3
{
    position: relative;
    font-size: 6vh;
    color: #252839;
    -webkit-text-stroke: 0.1vw #383d52;
    text-transform: none;
}
h3::before
{
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: #01d0fe;
    -webkit-text-stroke: 0vw #383d52;
    border-right: 6px solid #017ffe;
    overflow: hidden;
    animation: animate 6s linear;
}
@keyframes animate
{
    0%,30%,100%
    {
        width: 0;
    }
    70%,90%
    {
        width: 100%;
    }
}

/* finisco new per creative */

/* Stile per il pulsante di apertura del popup */
#openPopup {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Stile per il popup */
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    height: 80%;
    background-color: white;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    border-radius: 10px;
}

/* Sfondo scuro per quando il popup è aperto */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Stile per il pulsante di chiusura */
#closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffa34d;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.filter-container, .search-container {
    flex: 1 1 300px;
}

.filter-select, .search-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #3498db;
    border-radius: 5px;
    font-size: 16px;
}

.quote-container {
    margin: 30px 0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote {
    font-size: 1.4em;
    margin-bottom: 15px;
    transition: opacity 0.5s ease-in-out;
}

.author {
    font-style: italic;
    color: #666;
    font-size: 1.1em;
}

.theme {
    color: #3498db;
    font-size: 0.9em;
    margin-top: 5px;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.quote-btn, .favorite-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.favorite-btn {
    background-color: #e74c3c;
}

.quote-btn:hover, .favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.6);
}

.favorites-container {
    margin-top: 30px;
    text-align: left;
}

.favorites-container h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.hidden {
    display: none;
}

/* ... resto degli stili modal come prima ... */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.modal-content p, .modal-content ul {
    margin-bottom: 15px;
    text-align: left;
}

.modal-content ul {
    padding-left: 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .quote {
        font-size: 1.2em;
    }
    
    .buttons-container {
        flex-direction: column;
    }
}
