/* Γενικό στυλ σώματος */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url("../images/physics.png");
    background-size: cover;
    background-position: center;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #035a60, #0f8b93);
    /* μπλε gradient */
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* κάνει το logo κυκλικό */
    object-fit: cover;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

header h1 {
    color: white;
    margin: 0;
    font-size: 2em;
    text-shadow: 2px 2px 5px black;
    letter-spacing: 2px;
}

main {
    margin-top: 100px;
    /* αφήνει χώρο για το fixed header */
    padding: 20px;
}


/* Κουμπιά */

button,
a.button {
    padding: 8px 15px;
    background: #023d64;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background 0.3s;
}

button:hover,
a.button:hover {
    background: #f68409;
}


/* Πεδία κειμένου */

input[type=text] {
    padding: 6px;
    width: 200px;
    margin-bottom: 15px;
}


/* Στυλ για κάθε ερώτηση */

div.question {
    background: #e2f3f8;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* Progress bar */

#progressWrapper {
    width: 100%;
    background: #fbfafa;
    border-radius: 5px;
    margin-bottom: 10px;
}

#progressBar {
    width: 0%;
    height: 20px;
    background: #f1a606;
    border-radius: 5px;
}


/* Στυλ για σωστές απαντήσεις */

.result-correct {
    background: #e6ffe6;
    /* ανοιχτό πράσινο */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 5px solid #4CAF50;
    font-size: 16px;
    line-height: 1.5;
}


/* Στυλ για λάθος απαντήσεις */

.result-wrong {
    background: #cfefed;
    /* ανοιχτό κόκκινο */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 5px solid #fe2a05;
    font-size: 16px;
    line-height: 1.5;
}


/* Έντονα γράμματα για ετικέτες */

.result-correct b,
.result-wrong b {
    display: inline-block;
    margin-top: 3px;
}


/* Icons για οπτική ανατροφοδότηση */

.result-correct::before {
    content: "✅ ";
    font-size: 18px;
}

.result-wrong::before {
    content: "❌ ";
    font-size: 18px;
}


/* Στυλ για την κύρια φόρμα quiz */

form {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background: #04a6a6;
    box-shadow: 0 0 10px rgba(3, 69, 238, 0.1);
}

form p {
    font-weight: bold;
}

input[type="submit"] {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background: #280ad1;
}