/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,700;1,400&family=GFS+Didot&family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap&subset=greek');
/* Add your custom styles here */
/* --- Poem Styling --- */
.poem-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Διασφαλίζει ότι ο wrapper πιάνει όλη την οθόνη */
}

#poem {
    font-family: 'GFS Didot', Sans-serif;
    min-height: 380px; 
    position: relative;
    color: #ffffff;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.group {
    position: absolute;
    top: 0;
    left: 0;       /* Κλειδώνει την αρχή του group αριστερά */
    width: 100%;   /* Τεντώνει το group σε όλο το πλάτος */
    display: flex;
    flex-direction: column;
    align-items: center; /* ΚΕΝΤΡΑΡΕΙ ΤΟ ΠΕΡΙΕΧΟΜΕΝΟ ΣΤΟΝ ΑΞΟΝΑ */
    pointer-events: none;
}

/* Ο τίτλος και η line 1 */
.static-group { 
    position: relative; 
    margin-bottom: 30px; 
    display: flex;       /* Προσθήκη για σωστό κεντράρισμα τίτλου */
    flex-direction: column;
    align-items: center;
}

/* --- Responsive Θέσεις Groups --- */

/* Default (Desktop) */
.group-a, .group-b { top: 150px; } 
.group-c { top: 110px; }

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .group-a, .group-b { top: 140px; }
    .group-c { top: 75px; }
    #poem { min-height: 420px; }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .group-a, .group-b { top: 130px; }
    .group-c { top: 100px; }
    #poem { min-height: 350px; }
    .static-group { margin-bottom: 20px; }
}

/* --- Responsive Μεγέθη Γραμματοσειράς --- */

.line {
    display: block;
    opacity: 0;
    transition: opacity 0.8s ease;
    margin-bottom: 15px; 
    min-height: 1.2em;
    line-height: 1.4;
    width: 100%; /* Διασφαλίζει ότι το text-align center έχει χώρο */
    
    font-size: calc(1.1rem + 0.5vw); 
}

/* Desktop: max μέγεθος */
@media (min-width: 1200px) {
    .line { font-size: 1.6rem; }
}
/* Mobile: min μέγεθος */
@media (max-width: 480px) {
    .line { font-size: 1.1rem; }
}

.line.visible { opacity: 1; }

/* Τίτλος (Ανήμα) */
.line0 { 
    font-weight: bold; 
    font-size: calc(2.2rem + 2vw);
    margin-bottom: 5px;
}
@media (min-width: 1200px) { .line0 { font-size: 3.8rem; } }
@media (max-width: 480px) { .line0 { font-size: 2.2rem; } }

/* Υπότιτλος (Το αόρατο νήμα...) */
.line1 { 
    font-weight: bold; 
    color: #f0f0f0; 
    font-size: calc(1.4rem + 0.8vw);
}
@media (min-width: 1200px) { .line1 { font-size: 2rem; } }
@media (max-width: 480px) { .line1 { font-size: 1.4rem; } }

/* --- Button Styling --- */
#playBtn {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.5s ease;
    margin-top: 30px;
    opacity: 0;
    padding: 10px;
}

#playBtn.visible {
    opacity: 1;
}

#playBtn:hover svg {
    transform: rotate(360deg);
}

#playBtn svg {
    width: 35px;
    height: auto;
    display: inline-block;
    transition: transform 0.5s ease-in-out; 
    transform-origin: center;
    vertical-align: middle;
}
@media (max-width: 480px) {
    #playBtn svg { width: 28px; }
}