body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

header {
    background-color: royalblue;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
}

.logo {
    cursor: pointer;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    flex-shrink: 1;
}

.logo:hover {
    opacity: 0.8;
}

/* Responsive logo images */
#homepage-logo,
#session-logo,
#feedback-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.menu {
    display: flex;
    gap: 1rem;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
}

.menu a:hover {
    background-color: #444;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .logo {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: royalblue;
        position: absolute;
        top: 3rem;
        left: 0;
        width: 100%;
    }

    .menu.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* Ensure logo images don't overflow on mobile */
    #homepage-logo,
    #session-logo,
    #feedback-logo {
        max-width: min(100%, 300px);
        padding: 0 1rem;
        box-sizing: border-box;
    }
}

main {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
        width: 100%;
    }
}

section {
    display: none;
    text-align: center;
    color: #444;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

section.active {
    display: block;
}

.homepage {
    max-width: 800px;
    margin: 0 auto;
}

.homepage h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: royalblue;
}

/* Page title styling - consistent across pages */
#homepage-title,
#session-title,
#feedback-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: royalblue;
}

#homepage-subtitle,
#session-subtitle,
#feedback-subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: royalblue;
}

/* Journey/Overview page - slightly smaller to fit with UI */
#journey-title {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: royalblue;
    text-align: center;
}

#journey-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: royalblue;
    text-align: center;
}

#feedback-instruction {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

#session-instruction {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.homepage p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
}

.homepage p:first-of-type {
    font-size: 1.4rem;
    font-weight: 500;
}

.homepage p:last-of-type {
    font-size: 0.9rem;
    padding-left: 2rem;
    color: #888;
    font-style: italic;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-buttons button {
    background: white;
    color: royalblue;
    border: none;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 4px;
}

.auth-buttons button:hover {
    background-color: #e0e0e0;
}

#profile {
    font-size: 0.9rem;
    color: #222;
    padding: 1rem;
}

/* Enhanced Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 60%;
    max-width: 500px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button:hover {
    background-color: #45a049;
}

#instructions {
    text-align: left;
    max-width: 80ch;
    margin: 0 auto;
}

#journey {
    text-align: left;
    max-width: 80ch;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

#history h1 {
    color: royalblue;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

#history h2 {
    color: royalblue;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 500;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

#intake {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3f2fd;
}

#intake h2 {
    color: royalblue;
    cursor: pointer;
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#intake h2::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

#intake h2.expanded::after {
    transform: rotate(180deg);
}

#intake h2:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e1bee7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#intake-summary {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid royalblue;
}

#sessions {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3f2fd;
}

#sessions h2 {
    color: royalblue;
    margin: 0 0 1.5rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sessions h2:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e1bee7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#sessions h2::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

#sessions h2.expanded::after {
    transform: rotate(180deg);
}

#sessions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

#sessions-list li {
    background: white;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

#sessions-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: royalblue;
}

#sessions-list li:last-child {
    margin-bottom: 0;
}

#sessions-list div:first-child {
    background: white;
    color: royalblue;
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e3f2fd;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sessions-list div:first-child:hover {
    background: #f8f9fa;
    border-color: royalblue;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#sessions-list div:first-child::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

#sessions-list div:first-child.expanded::after {
    transform: rotate(180deg);
}

#sessions-list div:last-child {
    padding: 1.5rem;
    color: #555;
    line-height: 1.6;
    background: #f8f9fa;
    border-top: 1px solid #e3f2fd;
    font-size: 0.95rem;
}

#recommendations {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3f2fd;
}

#recommendations h2 {
    color: royalblue;
    margin: 0 0 1.5rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#recommendations h2:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e1bee7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#recommendations h2::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

#recommendations h2.expanded::after {
    transform: rotate(180deg);
}

#recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

#recommendations-list li {
    background: white;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

#recommendations-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: royalblue;
}

#recommendations-list li:last-child {
    margin-bottom: 0;
}

#recommendations-list div:first-child {
    background: white;
    color: royalblue;
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e3f2fd;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#recommendations-list div:first-child:hover {
    background: #f8f9fa;
    border-color: royalblue;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#recommendations-list div:first-child::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

#recommendations-list div:first-child.expanded::after {
    transform: rotate(180deg);
}

#recommendations-list div:last-child {
    padding: 1.5rem;
    color: #555;
    line-height: 1.6;
    background: #f8f9fa;
    border-top: 1px solid #e3f2fd;
    font-size: 0.95rem;
}

/* Make history sections expanded by default on larger screens */
@media (min-width: 768px) {
    #intake-summary {
        display: block;
    }
    
    #sessions-list {
        display: block;
    }
    
    #recommendations-list {
        display: block;
    }
    
    #intake h2.expanded,
    #sessions h2.expanded,
    #recommendations h2.expanded {
        /* Keep expanded state styling */
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
    #history {
        padding: 1rem;
        margin: 0 1rem;
        max-width: none;
    }
    
    #intake, #sessions, #recommendations {
        padding: 1rem;
    }
    
    #history h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    #history h2 {
        font-size: 1.3rem;
        margin: 1.5rem 0 1rem 0;
    }
}

#instructions h1, #instructions h2 {
    color: royalblue;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: royalblue;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    margin-left: 6px;
    vertical-align: middle;
} 
