/* Header */
header {
    padding: 2em;
    text-align: center;
}

/* Header Content - Centering */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em; /* Space between the switch and title */
}

/* Theme Switch Container */
.theme-switch {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center vertically align items */
    justify-content: space-between; /* Space out items evenly */
    margin-bottom: 1em; /* Space below the switch */
    width: 250px; /* Adjust width as needed */
}

/* Theme Labels */
.label-light,
.label-dark {
    font-size: 0.9em; /* Font size for labels */
    color: #FFF; /* Text color for visibility */
}

/* Specific Colors for Labels */
.label-light {
    color: #BBB; /* Light theme label color */
}

.label-dark {
    color: #BBB; /* Dark theme label color */
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px; /* Width of the switch */
    height: 24px; /* Height of the switch */
    margin: 0 10px; /* Space around the switch */
}

.switch input {
    opacity: 0; /* Hide the checkbox */
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Default background color */
    transition: 0.4s; /* Transition for the slider */
    border-radius: 24px; /* Rounded corners for the switch */
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; /* Height of the toggle button */
    width: 18px; /* Width of the toggle button */
    left: 3px; /* Position from the left */
    bottom: 3px; /* Position from the bottom */
    background-color: white; /* Color of the toggle button */
    transition: 0.4s; /* Transition for the toggle button */
    border-radius: 50%; /* Rounded shape */
}

input:checked + .slider {
    background-color: #76FF03; /* Background color when checked */
}

input:checked + .slider:before {
    transform: translateX(26px); /* Move toggle button to the right */
}
/* Header Title */
.header-title {
    font-size: 2em;
    margin: 0;
}

/* Side Panel Style */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: #fff;
    color: #333;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1000;
}

/* Side Panel Content Style */
.side-panel-content {
    padding: 20px;
}

.side-panel h2, .side-panel h3 {
    color: #333;
}

.side-panel p {
    line-height: 1.6;
}

/* Close Button Style */
.close-btn {
    font-size: 24px;
    border: none;
    background: none;
    color: #333;
    float: right;
    cursor: pointer;
}

/* Active class to show the panel */
.side-panel.show {
    right: 0;
}