@import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+QLD:wght@100..400&family=Playwrite+HU:wght@100..400&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

/* Professional touches */
.no-drag {
    /* Prevents the ghost image preview when dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;

    /* Prevents text/image selection highlighting */
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
    --math-colour: #e34b50;
    --chemistry-colour: #f9c74f;
    --physics-colour: #00a5cf;
    --biology-colour: #38b000;
}

/* Navigation bar */
/* ============== */
.navbar {
    position: relative; 
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 1rem 2rem;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    height: 70px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    height: 100%;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: "Playwrite AU QLD", cursive;
}

.navbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.navbar-right a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
}

.navbar-right a:hover {
    background-color: #333;
    border-radius: 4px;
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #000;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1;
    top: 100%; 
    z-index: 1001;
}

.dropdown-content a {
    color: #000;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hamburger styling */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-left: auto;  
    }

    .navbar-right {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: auto;        
        background-color: #000;
        flex-direction: column;
        gap: 0;
        text-align: center;
        transition: left 0.3s ease-in-out;
        z-index: 1000; 
    }

    .navbar-right.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }
}

#logout-btn {
    cursor: pointer;
}

#logout-btn:hover {
    background-color: #f00;
    color: #fff;
    font-weight: 600;
}

.dropdown-img {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sign-in-btn {
    background-color: #000;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

.profile-placement {
    position: relative;
    z-index: 0;
    margin-left: 20px;
}

/* Footer */
.footer {
    width: 100%;
    background-color: #000000; 
    color: #8a8a8a;            
    font-family: Arial, sans-serif; 
    padding: 30px 50px;        
    text-align: left;          
    box-sizing: border-box;
}

.footer p {
    margin: 0;                 
    line-height: 1.6;         
    font-size: 14px;   
}

.footer p:first-child { color: #ffffff }
