body {
    font-family: 'Google Sans', Arial, sans-serif;
    background: #181a1b;
    color: #e8eaed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Navigation */
nav {
    background: #23272b;
    box-shadow: 0 2px 8px rgba(60,64,67,0.18);
    padding: 1em 2em;
    margin-bottom: 2em;
    display: flex;
    gap: 1.5em;
    align-items: center;
}
nav a {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.2s;
}
nav a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Main Layout Container */
.main-container {
    background: #23272b;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1em;
}

/* New Simple Layout System */
.layout-section {
    margin-bottom: 2em;
}

.layout-row {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    margin-bottom: 2em;
}

.layout-column {
    flex: 1;
    min-width: 300px;
}

.layout-full-width {
    width: 100%;
}

/* Card System */
.card {
    background: #202124;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60,64,67,0.08);
    padding: 1.5em;
    margin-bottom: 1em;
}

.card-header {
    margin: 0 0 1em 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #8ab4f8;
}

.card-compact {
    padding: 1em;
}

.card-large {
    padding: 2em;
}

/* Forms */
form {
    background: #23272b;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60,64,67,0.08);
    margin-bottom: 1em;
}

.form-row {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 1em;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #e8eaed;
}

input, select, textarea {
    background: #181a1b;
    color: #e8eaed;
    border: 1px solid #31343b;
    width: 100%;
    padding: 0.8em;
    border-radius: 6px;
    font-size: 1em;
    transition: border 0.2s;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    border: 2px solid #8ab4f8;
    background: #23272b;
    color: #fff;
    outline: none;
}

button[type="submit"], .btn-primary {
    background: #8ab4f8;
    color: #181a1b;
    border: none;
    border-radius: 6px;
    padding: 0.8em 1.5em;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover, .btn-primary:hover {
    background: #174ea6;
    color: #fff;
}

.btn-secondary {
    background: #31343b;
    color: #8ab4f8;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1em;
    font-size: 0.9em;
    cursor: pointer;
}

.btn-danger {
    background: #ea4335;
    color: #fff;
}

/* Lists */
.list-container {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    background: #23272b;
    color: #e8eaed;
    padding: 1em;
    margin-bottom: 0.5em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 1em;
}

.list-item:hover {
    background: #31343b;
}

.list-item-actions {
    margin-left: auto;
    display: flex;
    gap: 0.5em;
}

/* Calendar */
#calendar table {
    background: #23272b;
    border-collapse: separate;
    border-spacing: 8px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60,64,67,0.08);
    margin: 2em auto;
    border: none;
    padding: 0;
}

.calendar-day {
    background: #181a1b;
    color: #e8eaed;
    border: none;
    width: 14%;
    height: 110px;
    vertical-align: top;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1px 2px rgba(60,64,67,0.04);
}

.calendar-day:hover {
    background: #23272b;
    box-shadow: 0 4px 12px rgba(60,64,67,0.12);
}

.calendar-day.school-day {
    border: 2px solid #8ab4f8;
    background: #23272b;
    color: #fff;
}

.date {
    color: #8ab4f8;
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.1em;
    font-weight: bold;
}

.cycle {
    color: #b0b3b8;
    text-align: center;
    margin-top: 40px;
    font-weight: 500;
    font-size: 1.05em;
}

/* Mini Calendar */
.mini-calendar-container {
    background: #23272b;
    border-radius: 8px;
    padding: 1em;
}

.mini-calendar table {
    width: 100%;
    border-spacing: 4px;
}

.mini-calendar td {
    background: #181a1b;
    color: #b0b3b8;
    width: 14.28%;
    height: 30px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.mini-calendar td:hover {
    background: #31343b;
}

.mini-calendar td.school-day {
    background: #8ab4f8;
    color: #181a1b;
    font-weight: bold;
}

/* Sidebar */
#sidebar {
    background: #23272b;
    color: #e8eaed;
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    border-left: 1px solid #e0e0e0;
    box-shadow: -2px 0 8px rgba(60,64,67,0.08);
    display: none;
    overflow-y: auto;
    z-index: 1000;
    padding: 2em;
}

.sidebar-main {
    background: #181a1b;
    color: #e8eaed;
    border-left: 1px solid #e0e0e0;
    box-shadow: -2px 0 16px rgba(60,64,67,0.10);
    padding: 2.5em 2em 2em 2em;
    border-radius: 24px 0 0 24px;
    min-width: 340px;
    max-width: 420px;
    font-size: 1.08em;
    transition: box-shadow 0.2s, background 0.2s;
}

/* --- Sidebar Modern Styling --- */
#sidebar, .sidebar-main {
    background: linear-gradient(135deg, #23272b 70%, #181a1b 100%);
    color: #e8eaed;
    border-left: none;
    box-shadow: -8px 0 32px rgba(60,64,67,0.13);
    padding: 2.5em 2em 2em 2em;
    border-radius: 32px 0 0 32px;
    min-width: 340px;
    max-width: 420px;
    font-size: 1.08em;
    transition: box-shadow 0.2s, background 0.2s;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}
#sidebar h2 {
    color: #8ab4f8;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 1.2em;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(66,133,244,0.07);
}
#sidebar .cycle-label {
    color: #b0b3b8;
    font-size: 1.1em;
    margin-bottom: 1.2em;
    font-weight: 500;
}
#sidebar h3 {
    color: #8ab4f8;
    font-size: 1.13em;
    margin: 1.2em 0 0.5em 0;
    font-weight: 600;
    letter-spacing: 0.01em;
}
#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}
#sidebar li.class-item {
    background: #23272b;
    color: #e8eaed;
    border-radius: 12px;
    margin-bottom: 0.7em;
    padding: 1em 1.2em;
    box-shadow: 0 2px 8px rgba(60,64,67,0.10);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    font-size: 1.09em;
    position: relative;
    border: 1px solid #e0e0e0;
    /* Dropdown style improvements */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
#sidebar li.class-item:hover {
    background: #31343b;
    box-shadow: 0 4px 16px rgba(60,64,67,0.16);
    transform: translateY(-2px) scale(1.02);
}
#sidebar li.class-item b {
    color: #8ab4f8;
    font-weight: 600;
    font-size: 1.09em;
    letter-spacing: 0.01em;
}
#sidebar .class-details {
    background: #181a1b;
    color: #e8eaed;
    border-left: 4px solid #8ab4f8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 0.7em;
    padding: 0.9em 1.1em;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(60,64,67,0.08);
    max-width: 340px;
    width: 100%;
    box-sizing: border-box;
}
#sidebar .class-details textarea {
    background: #23272b;
    color: #e8eaed;
    width: 100%;
    max-width: 320px;
    min-width: 180px;
    box-sizing: border-box;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 0.7em;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    resize: vertical;
}
#sidebar .class-details button {
    background: #8ab4f8;
    color: #181a1b;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1em;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5em;
}
#sidebar .class-details button:hover {
    background: #174ea6;
    color: #fff;
}

/* Assignment list styling for better proportions */
#sidebar .class-details ul {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
}

#sidebar .class-details li {
    background: #23272b;
    color: #e8eaed;
    margin: 0.5em 0;
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    padding: 0.5em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(66, 133, 244, 0.1);
}

#sidebar .class-details li input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 2px;
}

#sidebar .class-details li label {
    margin: 0;
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
    font-size: 0.95em;
}

#sidebar .class-details li label strong {
    display: block;
    margin-bottom: 0.2em;
    color: #8ab4f8;
}

#sidebar .class-details li label small {
    color: #b0b3b8;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Dark mode assignment styling */
@media (prefers-color-scheme: dark) {
    #sidebar .class-details li {
        background: rgba(35, 39, 43, 0.7);
        border: 1px solid rgba(138, 180, 248, 0.2);
    }

    #sidebar .class-details li label strong {
        color: #8ab4f8;
    }

    #sidebar .class-details li label small {
        color: #b0b3b8;
    }
}

/* Popups */
.popup, .details-sidebar {
    background: #23272b;
    color: #e8eaed;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #e0e0e0;
    padding: 2em;
    z-index: 1000;
    display: none;
    min-width: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(60,64,67,0.16);
}

.overlay {
    background: rgba(24,26,27,0.85);
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: none;
}

/* Calendar Navigation Bar */
.calendar-nav-bar {
    background: #23272b;
    color: #8ab4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    box-shadow: 0 2px 8px rgba(60,64,67,0.08);
    border-radius: 12px;
    padding: 1em 2em;
    margin: 2em auto 1.5em auto;
    max-width: 700px;
    border: none;
}
.main-month-label{
    color: #8ab4f8;
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0 1em;
}
.calendar-nav-btn {
    background: #181a1b;
    color: #8ab4f8;
    border: none;
    border-radius: 0.7em; /* less than 50% for rounded rectangle */
    width: 2.5em;
    height: 2.5em;
    min-width: 2.5em;
    min-height: 2.5em;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(60,64,67,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.calendar-month-label {
    color: #8ab4f8;
    font-size: 1.3em;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0 1.5em;
    min-width: 12ch; /* prevents shrinking too much */
    text-align: center;
    display: inline-block;
}

/* --- Main Calendar Area --- */
.calendar-main {
    background: #23272b;
    width: 95%;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(60,64,67,0.10);
    padding: 0;
}

/* View Selector Styles */
.view-selector {
    display: flex;
    gap: 0.5em;
    margin-left: 1em;
}

.view-btn {
    background: #181a1b;
    border: 1px solid #31343b;
    color: #8ab4f8;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #23272b;
    border-color: #8ab4f8;
}

.view-btn.active {
    background: #8ab4f8;
    border-color: #8ab4f8;
    color: #181a1b;
}

/* Week View Styles */
.week-view {
    background: #23272b;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    border-radius: 8px;
    overflow: hidden;
}

.week-day {
    background: #181a1b;
    color: #e8eaed;
    padding: 1em;
    min-height: 400px;
    border-radius: 0;
}

.week-day h3 {
    margin: 0 0 0.5em 0;
    color: #8ab4f8;
    font-size: 1em;
    border-bottom: 1px solid #3c4043;
    padding-bottom: 0.5em;
}

/* Week View with Open Schedules */
.day-schedule-open {
    min-height: 300px;
    padding: 0.5em;
}

.cycle-info {
    background: #23272b;
    color: #8ab4f8;
    padding: 0.5em;
    border-radius: 4px;
    margin-bottom: 0.5em;
    text-align: center;
    font-weight: bold;
}

/* Day View Styles */
.day-view {
    background: #23272b;
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
}

.single-day {
    background: #181a1b;
    color: #e8eaed;
    border-radius: 8px;
    padding: 2em;
    border: 1px solid #3c4043;
}

.single-day h2 {
    color: #8ab4f8;
    margin: 0 0 1em 0;
    text-align: center;
    font-size: 1.5em;
}

/* Day Header Styles */
.day-header {
    background: #23272b;
    color: #8ab4f8;
    padding: 0.5em;
    border-radius: 4px;
    margin-bottom: 0.5em;
    text-align: center;
    border: 1px solid #3c4043;
}

.day-header.school-day {
    background: #8ab4f8;
    color: #181a1b;
}

.date-number {
    color: #8ab4f8;
    font-size: 1.2em;
    font-weight: bold;
}

.cycle-day {
    color: #b0b3b8;
    font-size: 0.8em;
    opacity: 0.8;
}

/* Schedule Styles */
.day-schedule {
    min-height: 200px;
}

.time-block {
    background: #23272b;
    color: #e8eaed;
    margin-bottom: 1em;
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid #3c4043;
}

.time-block h4 {
    color: #8ab4f8;
    margin: 0 0 0.5em 0;
    font-size: 0.9em;
    border-bottom: 1px solid #3c4043;
    padding-bottom: 0.25em;
}

.time-block .class-item {
    background: #181a1b;
    color: #e8eaed;
    padding: 0.5em;
    margin: 0.25em 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.time-block .class-item:hover {
    background: #31343b;
}

.time-block .class-item strong {
    color: #8ab4f8;
}

.time-block .class-item small {
    color: #b0b3b8;
}

.no-class {
    color: #b0b3b8;
    font-style: italic;
    padding: 0.5em;
    text-align: center;
}

.error {
    color: #ea4335;
    padding: 0.5em;
    text-align: center;
}

/* Month View Styles */
.month-view table {
    background: #23272b;
    width: 100%;
    border-collapse: collapse;
}

.month-view th {
    color: #8ab4f8;
    padding: 0.5em;
    font-weight: 600;
    font-size: 0.9em;
    border-bottom: 1px solid #3c4043;
}

.month-view .calendar-day {
    background: #181a1b;
    color: #e8eaed;
    width: 14.28%;
    height: 120px;
    padding: 0.5em;
    border: 1px solid #3c4043;
    cursor: pointer;
    transition: background 0.2s;
    vertical-align: top;
}

.month-view .calendar-day:hover {
    background: #23272b;
}

.month-view .calendar-day.school-day {
    background: #181a1b;
    color: #e8eaed;
}

.month-view .calendar-day .date {
    color: #8ab4f8;
    font-weight: bold;
    font-size: 1.1em;
}

.month-view .calendar-day .cycle {
    color: #b0b3b8;
    font-size: 0.8em;
    opacity: 0.8;
}


.class-dots {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}
/* Update calendar day styling to work better with dots */
.calendar-day {
    position: relative;
    overflow: visible; /* Make sure dots aren't clipped */
}

/* Period/Block visual indicators */
.period-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    margin: 6px 0;
    vertical-align: middle;
    border: 2px solid #bbb;
    background: transparent;
    box-sizing: border-box;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1px #bbb;
}
.filled-dot {
    background: #8ab4f8;
    border-color: #8ab4f8;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1.5px #8ab4f8;
}
.empty-dot {
    background: #181a1b;
    border-color: #31343b;
}
.period-rect-demi {
    display: inline-block;
    width: 48px;
    height: 22px;
    background: #8ab4f8;
    position: relative;
    border-radius: 11px/50%;
    margin: 6px 0;
    vertical-align: middle;
    overflow: hidden;
}
.period-rect-demi:before, .period-rect-demi:after {
    background: #8ab4f8;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    z-index: 1;
}
.period-rect-demi .multi-dot {
    background: #181a1b;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1.5px #8ab4f8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .week-view {
        grid-template-columns: 1fr;
    }

    .week-day {
        min-height: 200px;
    }

    .view-selector {
        flex-direction: column;
        gap: 0.25em;
    }

    .calendar-nav-bar {
        flex-direction: column;
        gap: 0.5em;
        align-items: center;
    }

    .day-view {
        padding: 1em;
    }

    .single-day {
        padding: 1em;
    }
}

@media (max-width: 900px) {
    .calendar-main {
        padding: 0;
    }
    .calendar-nav-bar {
        padding: 1em 0.5em 1em 0.5em;
    }
}
@media (max-width: 600px) {
    .calendar-main {
        padding: 0;
    }
    .calendar-nav-bar {
        flex-direction: column;
        gap: 0.5em;
        padding: 0.5em 0.2em 0.5em 0.2em;
    }
    .calendar-month-label {
        padding: 0.5em 0;
    }
}

/* Hide biometric login buttons by default */
#biometric-login, #biometric-register, #biometric-status {
    display: none !important;
}

/* Biometric login styling when displayed */
#biometric-login, #biometric-register {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8em 1.5em;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    margin: 0.5em 0;
    position: relative;
    overflow: hidden;
}

#biometric-login:hover, #biometric-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #174ea6 0%, #137333 100%);
}

#biometric-login:active, #biometric-register:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

#biometric-login::before, #biometric-register::before {
    content: '🔐';
    margin-right: 0.5em;
    font-size: 1.1em;
}

#biometric-status {
    background: #e8f0fe;
    color: #174ea6;
    border: 1px solid #8ab4f8;
    border-radius: 6px;
    padding: 0.7em 1em;
    margin: 0.5em 0;
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark mode styling for biometric elements */
@media (prefers-color-scheme: dark) {
    #biometric-status {
        background: #232b36;
        color: #8ab4f8;
        border: 1px solid #31343b;
    }
}

/* Add Another Schedule button styling */
#add-schedule {
    background: #34a853;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.8em 1.5em;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0.5em 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

#add-schedule:hover {
    background: #137333;
}

#add-schedule:active {
    background: #34a853;
}

#add-schedule::before {
    content: '+';
    font-size: 1.2em;
    font-weight: bold;
}

/* --- Micro Display Styling --- */
.micro-display {
    margin-top: 4px;
    font-size: 0.95em;
    line-height: 1.3;
    max-height: 60px;
    overflow-y: auto;
}
.micro-classes {
    margin-bottom: 2px;
}
.micro-class-name {
    background: #e8f0fe;
    color: #174ea6;
    border-radius: 5px;
    padding: 2px 6px;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 0.97em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.micro-assignments {
    margin-top: 2px;
}
.micro-assignment-title {
    background: #fff3cd;
    color: #b45309;
    border-radius: 5px;
    padding: 2px 6px;
    margin-bottom: 2px;
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-day .micro-display {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 2;
}

/* Block micro display row in month view */
.block-micro-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    z-index: 2;
    pointer-events: none;
}
.block-micro-row > * {
    pointer-events: auto;
}
.calendar-day {
    position: relative;
}

/* Body class for sidebar open state */
body.sidebar-open {
    margin-right: 420px; /* width of sidebar + some gap */
    transition: margin-right 0.3s cubic-bezier(.4,0,.2,1);
}

#sidebar {
    transition: right 0.3s cubic-bezier(.4,0,.2,1), display 0s linear 0.3s;
}

@media (max-width: 900px) {
    body.sidebar-open {
        margin-right: 0;
    }
    #sidebar {
        width: 100vw;
        max-width: 100vw;
    }
}

span.period-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}