/* ===============================
   RETRO NOTEBOOK / VINTAGE STYLE
   RESPONSIVE VERSION
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Schoolbell&display=swap');
/* Torn Paper Divider */
.torn-divider {
    width: 100%;
    height: 18px;
    background: repeating-linear-gradient(
        -45deg,
        #d1c1a1,
        #d1c1a1 4px,
        transparent 4px,
        transparent 8px
    );
    margin: 30px 0;
}


/* ===============================
   RETRO PIXEL LOADING BAR
   =============================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f2e7c9;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease-out;
}

/* The box around the loading bar */
.loader-box {
    background: #fffdf5;
    padding: 25px;
    width: 260px;
    border: 4px solid #4a3b28;
    border-radius: 6px;
    box-shadow: 6px 6px 0 #b59d76;
}

/* Retro Loading Text */
.loading-label {
    font-family: 'Special Elite', monospace;
    font-size: 18px;
    text-align: center;
    margin-bottom: 12px;
    color: #4a3b28;
}

/* Pixel Bar Container */
.pixel-bar {
    width: 100%;
    height: 22px;
    background: #f2d9a6;
    border: 3px solid #4a3b28;
    border-radius: 4px;
    box-shadow: inset 3px 3px 0 #b59d76;
    overflow: hidden;
    position: relative;
}

/* Pixelated Fill */
.pixel-fill {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(
        90deg,
        #4a3b28,
        #4a3b28 6px,
        #c2ae8a 6px,
        #c2ae8a 12px
    );
    animation: pixelLoad 1.2s steps(10) forwards;
}

/* Blocks step across 10 "pixels" */
@keyframes pixelLoad {
    from { width: 0%; }
    to { width: 100%;}
}




/* ========= Global Page Style ========= */
body {
    margin: 0;
    background: #f2e7c9; 
    font-family: 'Special Elite', monospace;
    color: #4a3b28;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* ========= NAVBAR ========= */
/* =====================================
   RETRO NOTEBOOK NAVBAR (Logo Left)
   ===================================== */
.retro-navbar {
    background: #f7efd8;
    border-bottom: 3px solid #d6c7a1;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 0 #b59d76;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Left section: logo + title */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 2px solid #c2ae8a;
    box-shadow: 2px 2px 0 #b59d76;
}

.nav-title {
    font-family: 'Schoolbell', cursive;
    font-size: 26px;
    color: #5a4632;
}

/* Right section: menu items */
.nav-right a {
    margin-left: 25px;
    text-decoration: none;
    font-family: 'Special Elite', monospace;
    font-size: 18px;
    color: #4a3b28;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-right a:hover {
    border-bottom: 2px solid #4a3b28;
}

/* ===== Responsive Navbar ===== */
@media (max-width: 700px) {
    .retro-navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        gap: 8px;
    }

    .nav-right a {
        margin: 0 10px;
    }
}
/* =====================================
   RETRO LANDING PAGE CONTENT SECTIONS
   ===================================== */

.section {
    margin-top: 30px;
}

.retro-box {
    background: #fffdf5;
    border: 2px solid #d1c1a1;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 4px 4px 0 #b59d76;
    font-family: 'Special Elite', monospace;
}

/* Retro list style */
.retro-list {
    margin: 0;
    padding-left: 20px;
}
.retro-list li {
    padding: 4px 0;
    color: #4a3b28;
}

/* Coffee Section */
.coffee-box {
    text-align: center;
}

.coffee-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #f2d9a6;
    border: 2px solid #c2ae8a;
    color: #4a3b28;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 3px 3px 0 #b59d76;
    transition: 0.2s;
    font-family: 'Special Elite', monospace;
}

.coffee-btn:hover {
    background: #e6c890;
    box-shadow: 5px 5px 0 #9c8566;
}
/* Retro Inputs */
.retro-input {
    padding: 10px;
    width: 100%;
    font-family: 'Special Elite', monospace;
    font-size: 16px;
    border: 2px solid #c2ae8a;
    background: #fffdf5;
    border-radius: 6px;
    box-shadow: 3px 3px 0 #b59d76;
    margin-top: 5px;
}


/* ========= SUBJECT CARD ========= */
.subject-item {
    background: #fffdf5;
    padding: 18px;
    margin-top: 15px;
    border: 2px solid #d1c1a1;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 3px 3px 0 #d1c1a1;
}

.subject-item:hover {
    background: #fff7e8;
    box-shadow: 5px 5px 0 #b49f7d;
}

/* ========= NOTE CARD ========= */
.note-item {
    background: #fffdf5;
    padding: 15px;
    margin-top: 15px;
    border: 2px solid #d1c1a1;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #b49f7d;
    transition: 0.2s;
}

.note-item:hover {
    background: #fff7e8;
    box-shadow: 5px 5px 0 #8f7a59;
}

.note-item a {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #f2d9a6;
    color: #4a3b28;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 2px 0 #c9b184;
}

.note-item a:hover {
    background: #e6c890;
    box-shadow: 4px 4px 0 #b59d76;
}

/* ========= BUTTONS ========= */
button {
    padding: 8px 14px;
    background: #f2d9a6;
    border: 2px solid #c2ae8a;
    color: #4a3b28;
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 3px 3px 0 #b59d76;
    transition: 0.2s;
}

button:hover {
    background: #e6c890;
    box-shadow: 5px 5px 0 #9c8566;
}

/* ========= TABS ========= */
.tabs {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    overflow-x: auto;           /* Scrollable on small screens */
    white-space: nowrap;
    padding-bottom: 5px;
}

.tabs::-webkit-scrollbar {
    height: 6px;
}
.tabs::-webkit-scrollbar-thumb {
    background: #c2ae8a;
    border-radius: 4px;
}

.tab {
    padding: 10px 18px;
    background: #f2d9a6;
    border: 2px solid #c2ae8a;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-family: 'Schoolbell', cursive;
    font-size: 18px;
    box-shadow: 2px 2px 0 #b59d76;
    transition: 0.2s;
    display: inline-block;
}

.tab:hover {
    background: #e6c890;
}

.tab.active {
    background: #fffdf5;
    border-bottom: none;
    box-shadow: none;
}

.tab-content {
    background: #fffdf5;
    border: 2px solid #c2ae8a;
    padding: 20px;
    border-radius: 0 10px 10px 10px;
    margin-top: -2px;
    box-shadow: 5px 5px 0 #b59d76;
}

/* ========= FOOTER ========= */
.footer {
    margin-top: 40px;
    padding: 15px;
    text-align: center;
    background: #f7efd8;
    border-top: 3px solid #d6c7a1;
    font-family: 'Schoolbell', cursive;
    color: #5a4632;
    border-radius: 15px 15px 0 0;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Tablets & Small Laptops */
@media (max-width: 900px) {
    .container {
        padding: 15px;
    }
    .navbar {
        font-size: 24px;
    }
    .tab {
        font-size: 16px;
        padding: 8px 14px;
    }
}

/* Mobile Devices */
@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    .navbar {
        font-size: 22px;
        padding: 15px;
    }

    .nav-links {
        display: block;
        margin-top: 8px;
    }

    .nav-links a {
        display: inline-block;
        margin: 5px 8px;
    }

    .subject-item,
    .note-item {
        padding: 14px;
        font-size: 14px;
    }

    .note-item a {
        padding: 5px 10px;
        font-size: 13px;
    }

    .tab {
        padding: 7px 12px;
        font-size: 15px;
    }

    button {
        width: 100%;
        padding: 10px;
        
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .navbar {
        font-size: 20px;
    }
    .tab {
        font-size: 14px;
    }
}


