/* General body styles */
body {
    background: url('https://switchclassroom.neocities.org/june_background.png') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4b0082; /* Indigo for text */
    margin: 0;
    padding: 0;
}

/* Main panel container */
.main-panel {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(75, 0, 130, 0.1);
}

/* Paragraph styles */
p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    color: #4b0082;
}

/* Container that holds all panels */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* Panel styles */
.panel {
    flex: 1 1 calc(30% - 20px);
    min-width: 250px;
    background: #f3e5f5; /* Light purple */
    color: #4b0082;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(75, 0, 130, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    animation: fadeSlideIn 0.5s ease forwards;
    opacity: 0;
}

.panel:hover {
    transform: translateY(-5px);
}

/* Image styles */
.panel img {
    width: 95%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-app-region: no-drag;
}

/* Heading styles */
.panel h1 {
    font-size: 1.5rem;
    color: #4b0082;
    margin-bottom: 10px;
}

/* Invisible placeholder panels */
.panel.placeholder {
    visibility: hidden;
    pointer-events: none;
}

/* Button container */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}

button {
    margin: 10px 0;
    background-color: #e1bee7; /* Light lavender */
    color: #4b0082;
    border: 1px solid #4b0082;
    border-radius: 8px;
    padding: 12px 25px;
    cursor: pointer;
    flex: 1 1 calc(50% - 10px);
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(75, 0, 130, 0.1);
}

button:hover {
    background-color: #4b0082;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(75, 0, 130, 0.2);
}

button:focus {
    outline: none;
}

button:disabled {
    background-color: #dcdcdc;
    color: #a0a0a0;
    border: 1px solid #aaa;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

button:disabled:hover {
    background-color: #dcdcdc;
    color: #a0a0a0;
    transform: none;
}

/* PDF viewer container */
.pdf-container {
    width: 80%;
    height: 80%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding-top: 60px;
}

/* PDF viewer controls */
.pdf-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
    background: #6a1b9a; /* Deep purple */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* PDF iframe */
.pdf-frame {
    width: 100%;
    height: 90%;
    border: none;
    margin-top: 60px;
}

/* PDF viewer overlay */
.pdf-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

/* Topbar styling */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #4b0082;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Adjust body or main content to account for topbar height */
body {
    margin-top: 70px;
}

/* Search input styling */
#searchInput {
    background-color: #e1bee7;
    color: #4b0082;
    border: 1px solid #4b0082;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    width: 300px;
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: #7b1fa2;
}

#searchInput:focus {
    outline: none;
    background-color: #4b0082;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(75, 0, 130, 0.2);
}

/* Animation for panel appearance */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form input styling */
.formInput {
    background-color: #e1bee7;
    color: #4b0082;
    border: 1px solid #4b0082;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    width: 300px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.formInput::placeholder {
    color: #7b1fa2;
}

.formInput:focus {
    outline: none;
    background-color: #4b0082;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(75, 0, 130, 0.2);
}
