body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px; /* Μικρό κενό πάνω από το banner */
}

.banner {
    width: 30%; /* 30% για υπολογιστές */
    max-width: 1200px;
    height: auto;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #dfe8f2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

#helpBtn {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #007bff;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
}

#helpModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

#helpModal:not(.hidden) {
    display: flex;
}

#nicknameModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1200;
}

#nicknameModal:not(.hidden) {
    display: flex;
}

#nicknameModal > div {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
}

#nicknameInput {
    width: 90%;
    max-width: 320px;
    height: 40px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #007bff;
    font-size: 1rem;
    margin: 10px 0;
    padding: 0 10px;
}

#nicknamePrompt {
    margin: 6px 0 8px 0;
    font-size: 0.95rem;
    color: #2b2b2b;
}

#saveNickname {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

.form-error {
    color: #b00020;
    font-size: 0.9rem;
    margin-top: 6px;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #e6eef8;
    color: #1c3d6e;
    font-size: 16px;
    cursor: pointer;
    line-height: 28px;
    padding: 0;
}

.modal-close:hover {
    background: #d2ddec;
}

#helpModal > div {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

#closeHelp {
    margin-top: 15px;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

.marquee {
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    color: #2a2abb;
    margin: 10px 0;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.marquee p {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

#theme {
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

#words {
    width: 90%;
    max-width: 350px;
    height: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #007bff;
    caret-color: #007bff;
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin: 10px 0 20px 0;
    padding: 0 10px;
}

#loginBtn, #logoutBtn {
    width: 70%;
    max-width: 200px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #007bff;
    color: white;
    font-size: clamp(1rem, 3vw, 1.1rem);
    cursor: pointer;
    margin: 5px 0;
}

#loginBtn:hover, #logoutBtn:hover, #closeHelp:hover, #helpBtn:hover, #saveNickname:hover {
    background: #034388;
}

.scrollable-list {
    width: 90%;
    max-width: 350px;
    height: 180px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.scrollable-list div {
    padding: 8px;
    margin: 5px;
    background: #cfddf8;
    border-radius: 3px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

#player {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 10px 0;
}

#welcome, #points {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin: 0 5px;
}

label {
    margin: 10px 5px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.hidden {
    display: none;
}

#changer {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radio-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner {
        width: 90%;
        max-height: 200px;
    }

    #helpBtn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    #helpModal > div {
        width: 95%;
        padding: 15px;
    }

    .marquee {
        width: 95%;
    }

    #words, #loginBtn, #logoutBtn {
        width: 95%;
    }

    #player {
        flex-direction: column;
        text-align: center;
    }

    #welcome, #points {
        margin: 3px 0;
    }

    .radio-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .banner {
        width: 80%; /* 80% για κινητά */
        min-width: 250px; /* Ελάχιστο πλάτος για να μην φαίνεται πολύ μικρό */
        max-height: 200px; /* Αυξημένο ύψος για καλύτερη εμφάνιση */
    }

    #theme {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }

    #words, #loginBtn, #logoutBtn {
        font-size: clamp(0.9rem, 3vw, 1rem);
        padding: 8px;
    }

    .scrollable-list {
        height: 150px;
    }

    label {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }
}
footer {
  width: 100%;
  text-align: center;
  padding: 7px 0;
  background-color: #0164ce;   /* ωραίο μπλε, ίδιο με το ticker */
  color: rgb(253, 253, 255);
  font-weight: 500;
  font-size: 14px;
  margin-top: 10px;             /* λίγο κενό από το κυρίως περιεχόμενο */
  border-top: 2px solid #020133;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
}

/* Αν θες να “κολλάει” στο κάτω μέρος όταν η σελίδα είναι μικρή: */
html, body {
  height: 100%;
}


footer {
  margin-top: auto; /* το κρατά στο κάτω μέρος όταν δεν υπάρχει πολύ περιεχόμενο */
}
