/* Import de la typo pour le titre */
@import url('https://fonts.googleapis.com/css2?family=Iowan+Old+Style&display=swap');

/* Police par défaut pour tout le texte */
body {
    padding: 0px 50px 50px 50px ;
    background-color: #f2efe3;
    color: #4f4f4f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Titre */
h1 {
    font-size: clamp(1rem, 2vw, 3rem);
    font-family: 'Iowan Old Style', serif;
    color: #004237;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
}

/* Conteneur principal */
.container {
    width: 80%;
    max-width: 900px;
    text-align: center;
}

/* Introduction */
.intro {
    font-size: clamp(6px, 2vw, 18px);
    font-family: 'IBM Plex Mono', monospace;
    color: #004237;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
}

a {
    color: #cfa77d;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Conteneur des phrases */
#phrases {
    display: flex;
    flex-direction: column;
    font-family: 'Iowan Old Style', serif;
    font-style: italic;
    text-transform: uppercase;
    align-items: center;
    gap: 0;
    font-size: clamp(1.4rem, 2vw, 3rem);
    transition: opacity 0.5s ease-in-out;
    padding-bottom: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Styles spécifiques aux phrases */
.sonnet1 { 
    color: #004237; 
    font-weight: bold; 
    margin-bottom: 1px; 
}  

.sonnet2 { 
    color: #60745C; 
    font-style: italic; 
    margin-bottom: 1px; 
}  

.sonnet3 { 
    color: #4A5E50;  
    margin-bottom: 1px; 
}  

.sonnet4 { 
    color:#7a6f5f; 
    margin-bottom: 1px; 
}

/* Animation d'apparition des phrases */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contrôles */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: clamp(14px, 2.5vw, 18px);
    color: #004237;
    margin-top: 20px;
}

/* Barre de réglage */
#refreshRate {
    width: 200px;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: #cfa77d;
    border-radius: 5px;
    outline: none;
}

#refreshRate::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #004237;
    border-radius: 50%;
    cursor: pointer;    
}

#refreshRate::-webkit-slider-thumb:hover {
    background: #003229;
}

/* Valeur de la fréquence */
#refreshValue {
    font-weight: bold;
    color: #cfa77d;
    width: 40px;
    text-align: center;
    display: inline-block;
}

/* Pied de page */
footer {
    font-family: 'IBM Plex Mono', monospace;
    text-align: center;
    margin-top: 50px;
    font-size: clamp(14px, 2.5vw, 16px);
    color: #7a6f5f;
}
