/* projectweeks_grouplearn.css */

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background-color: #f6f6f8;
}

#slide-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 100px); /* leave room for iframes */
    padding: 20px;
    box-sizing: border-box;
}

#slide-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 1100px; /*Chagne this to alter the width of the box */
    width: 90%;
    padding: 40px;
    margin: 30px 0;
}

/* Make paragraph text a bit larger */
#slide-content p {
    font-size: 1.1rem;   /* adjust up/down if needed */
    line-height: 1.5;
}

/* Add white space between bullet points */
#slide-content ul li {
    margin-bottom: 12px;  /* increase if you want more spacing */
font-size: 1.1rem;    /* match paragraph text size */
}

#slide-content h1 {
    margin-top: 0;
    color: #2b3a67;
}

#nav-buttons {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 900px;
    margin-bottom: 20px;
}

.nav-btn {
    background-color: #440099;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background-color: #3f4f8c;
}

.nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#progress-indicator {
    font-size: 16px;
    color: #131E39;
    align-self: center;
}

#progress-bar {
    width: 150px;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin-top: 6px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background-color: #2b3a67;
    width: 0%;
    transition: width 0.3s;
}

.learning-outcomes {
    width: 80%;
    border-collapse: collapse;
    background-color: #E1F4F8;
    border-left: 5px solid #9ADBE8;
    padding: 12px;     /* slightly increased */
    margin: 20px 20px; /* adds spacing above/below and centres the box */
    border-radius: 4px; /* optional softening */
  }

  /* -----------------------------------------------------------
   qoutePage STYLING
   ----------------------------------------------------------- */
        /* Main quote box */
        .quotePage-box {
            width: 80%;
            margin: 40px auto;
            padding: 40px 60px;
            background-color: #F0F6F8;
            border-radius: 10px;
            line-height: 1.6;
            color: #1A1A1A;
            position: relative;    /* needed for quote marks */
        }

        #slide-content .quotePage-box p {
            font-size: 2rem;
            line-height: 1.4;
        }

        /* Big opening quote mark */
        .quotePage-box::before {
            content: "“";
            font-size: 5rem;
            color: #1A3C57;
            position: absolute;
            top: 10px;
            left: 20px;
        }

        /* Big closing quote mark */
        .quotePage-box::after {
            content: "”";
            font-size: 5rem;
            color: #1A3C57;
            position: absolute;
            bottom: 10px;
            right: 20px;
        }

        /* Attribution */
        .quotePage-attribution {
            width: 80%;
            margin: 20px auto 0 auto;
            text-align: right;
            font-size: 1.4rem;
            color: #333;
        }

        .quotePage-attribution a {
            color: #1A3C57;
            text-decoration: none;
        }

        .quotePage-attribution a:hover {
            text-decoration: underline;
        }



/* -----------------------------------------------------------
   Group Tasks STYLING
   ----------------------------------------------------------- */
   .group-task {
    border: 2px solid #440099;
    background: #F8F8F9;
    border-radius: 10px;
    padding: 16px;
    margin: 30px 0;
}

.group-task-inner {
    display: flex;
    align-items: flex-start;  /* <- move image to top */
    gap: 16px;
}

.group-task-img {
    width: 60px;  /* display size */
    height: 60px;
}

.group-task-text h3 {
    margin: 0 0 6px 0;
    font-size: 1.rem;
    color: #440099;
}

.group-task-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}
/* -----------------------------------------------------------
   Example STYLING
   ----------------------------------------------------------- */

.example-box {
    background: #F8F8F9;          /* same background as group-task */
    border-left: 8px solid #440099; /* purple vertical bar */
    padding: 16px 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.example-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #440099;               /* purple heading */
}

.example-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #440099;
}

.example-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.ex-icon {
    font-size: 1.4rem;
    margin-right: 6px;
    vertical-align: middle;
}

/* -----------------------------------------------------------
   QUIZ BOX STYLING
   Adds spacing between the quiz elements and improves layout.
   ----------------------------------------------------------- */
#quiz-box {
    margin-top: 20px; /* Space above the whole quiz area */
}

#quiz-box label {
    display: block;    /* Stack options vertically */
    margin-bottom: 8px; /* Space between each option */
}

#submitQuiz {
    margin-top: 15px; /* Space above the Submit button */
}

#slide-content .quiz-option label {
    font-size: 1.1rem;   /* match your paragraph size */
    line-height: 1.4;
}

#slide-content .quiz-option label input[type="radio"] {
    margin-right: 8px;
}

/* -----------------------------------------------------------
   QUOTATION STYLING
   ----------------------------------------------------------- */

.quote-box {
    background: #f5f5f5;
    border-left: 4px solid #0066cc;
    padding: 12px 16px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 4px;
}

.quote-source {
    margin-top: 8px;
    font-style: normal;
    font-size: 0.9em;
    text-align: right;
}

.quote-source a {
    color: #0066cc;
    text-decoration: none;
}

.quote-source a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------
Global default table styling for GroupLearn materials 
----------------------------------------------------------- */



table {
    width: 90%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px 12px;
    vertical-align: top;
}

/* Header row in UoS Violet */
th {
    background-color: #440099;   /* University of Sheffield violet */
    color: #ffffff;              /* White text for contrast */
    font-weight: 600;
}

/* Zebra striping for readability */
tr:nth-child(even) td {
    background-color: #fafafa;
}

/* -----------------------------------------------------------
Flow diagram styling for GroupLearn materials
----------------------------------------------------------- */

/* Container for the whole diagram */
.flow-diagram {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

/* Each step box */
.flow-box {
    width: 100%;
    background-color: #F6F3FF; 
    border: 1px solid #D6C9F4; 
    border-radius: 8px;
    padding: 12px 18px;
    margin: 12px 0;
    box-sizing: border-box;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;   
}

/* Arrows between boxes */
.arrow {
    width: 0;
    height: 0;
    margin: 6px auto;

    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #440099; /* UoS violet arrow */
}

/* ------------------------------
   GROUPLEARN COUNTDOWN TIMER
   ------------------------------ */

/* ------------------------------------
   COMPACT SIDE-BY-SIDE COUNTDOWN TIMER
   ------------------------------------ */

   #timer-box {
    display: flex;
    align-items: center;
    gap: 18px;

    padding-left: 30px;   /* ← THIS moves the timer to the right */
    padding-right: 0;     /* ← THIS controls extra space on the right */

    margin: 25px 0;       /* only vertical spacing */
}

    /* Big, clean timer text */
    #timer-display {
        font-size: 2.5rem;
        font-weight: 600;
        color: #1A1A1A;
        letter-spacing: 1px;
        min-width: 120px;          /* keeps it stable */
        text-align: left;
    }

    /* Rounded Go button – GroupLearn style */
    #timer-start {
        background-color: #005A9C;
        color: white;
        border: none;
        padding: 14px 26px;
        font-size: 1.3rem;
        border-radius: 14px;       /* more rounded */
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.1s ease;
    }

    #timer-start:hover {
        background-color: #003E6B;
        transform: translateY(-2px);
    }

    #timer-start:active {
        transform: translateY(1px);
    }

    /* -----------------------
    Equation box styling 
    -------------------------*/

    .equation-box {
        background-color: #F0F6F8;      /* light grey/blue background */
        border-left: 8px solid #5A7D9A; /* coloured sidebar – choose your theme colour */
        padding: 20px 30px;
        margin: 30px auto;
        border-radius: 8px;
        font-size: 1.2rem;              /* slightly larger for readability */
        font-family: "Source Sans Pro", sans-serif;
        line-height: 1.6;
        color: #1A1A1A;
        text-align: center;   /* centre the equation */
    }

    /* -----------------------------------------------------------
   REVEAL COMPONENT
   - Styled to match GroupLearn example notes and nav buttons
   ----------------------------------------------------------- */

/* Wrapper (optional future-proofing) */
.reveal {
    margin: 1.2rem 0;
}

/* Reveal button */
.reveal__btn {
    background-color: #440099;       /* matches nav-btn */
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

/* Hover (closed state) */
.reveal__btn:hover {
    background-color: #3f4f8c;
}

/* Subtle "pressed" feel */
.reveal__btn:active {
    transform: translateY(1px);
}

/* Open state styling (aria-driven, no extra JS) */
.reveal__btn[aria-expanded="true"] {
    background-color: #334155;       /* slightly more neutral */
}

/* Hover when open */
.reveal__btn[aria-expanded="true"]:hover {
    background-color: #475569;
}

/* Revealed panel */
.reveal__panel {
    background-color: #f1f5f9;       /* example-note style */
    border-left: 4px solid #94a3b8;
    padding: 12px 14px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

/* Optional: gentle fade-in when revealed */
.reveal__panel:not([hidden]) {
    animation: revealFade 0.2s ease-out;
}

@keyframes revealFade {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
