body {

    background-image: url("../Media/images/bg.jpg");    
    background-size: cover;
    background-repeat: no-repeat;                                             
}

/*
.header {
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: rgb(0, 104, 202);
    padding-left: 20px;
    color: whitesmoke;   
    font-size: 20px;
    border-radius: 10px;
}


.logo {
    height: 70px;
    width: auto;
}
*/

.header {
    display: flex;
    flex-direction: column;   /* stack content */
    align-items: flex-start;
    gap: 15px;                /* controlled spacing */
    
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    padding: 25px;
    border-radius: 15px;
    color: white;
}

/* Top row: logo + title */
.header-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo styling */
.logo {
    width: 70px;
    height: auto;
    border-radius: 8px;
}

/* Title */
.header h1 {
    font-size: 2rem;
    margin: 0;
}

/* Nav container */
.header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Nav pills */
.header nav a {
    padding: 8px 16px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
}

.header nav a:hover {
    background-color: white;
    color: #1565c0;
}

#card1 a {
    display: flex;
    align-items: center;
    background-color: dodgerblue;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 60%;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, color 1s;
    color: white;
    font-size:20px;
    text-decoration: none;
}

#card1 img {
    margin: 5px;
    
}

#card1 a:hover {
    transform: translateY(-5px);
    background-color: #e0e0ff;
    color: black;
}

#card2 a {
    display: flex;
    align-items: center;
    background-color: rgb(3, 54, 104);
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 60%;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, color 1s;
    color: white;
    font-size:20px;
    text-decoration: none;
}

#card2 img {
    margin: 5px;
    
}

#card2 a:hover {
    transform: translateY(-5px);
    background-color: #e0e0ff;
    color: black;
}


#card3 a {
    display: flex;
    align-items: center;
    background-color: rgb(0, 81, 95);
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 60%;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, color 1s;
    color: white;
    font-size:20px;
    text-decoration: none;   
}

#card3 img {
    margin: 5px;
    
}

#card3 a:hover {
    transform: translateY(-5px);
    background-color: #e0e0ff;
    color: black;
}

.cover {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    height: 150px;
    width: auto;
    
}


.subject a{
    margin: 20px;
    margin-right: 800px;
    background-color: aquamarine;
    border-radius: 10px;
    font-size: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, color 1s;
    text-decoration: none;
}

h2 {
    background-color: rgb(255, 255, 255);
}

.sciences {
    background-color: rgb(226, 29, 95);
}

.cardsub a {
    background-color: rgb(0, 81, 95);
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 800px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, color 1s;
    color: white;
    font-size:20px;
    text-decoration: none;   
    
}

.agr a {
    background-color: rgb(0, 81, 95);
    margin-top: 220px;
    margin-bottom: 20px;
    margin-right: 800px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, color 1s;
    color: white;
    font-size:20px;
    text-decoration: none;
    padding: 20px; 
}

.agr a:hover {
    transform: translateY(-5px);
    background-color: #e0e0ff;
    color: black;

}

@media (max-width: 720px) {    
    #card1 a {
        margin-right: 0;
    } 
    #card2 a {
        margin-right: 0;
    }
    #card3 a {
        margin-right: 0;
    }  
}

/* Node stuff. Still don't get it though */


/* Search bar */
.search-container {
    margin-bottom: 10px;
    text-align: center;
}

#searchInput {
    width: 80%;
    max-width: 400px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: 0.2s;
}

#searchInput:focus {
    border-color: #0073e6;
    box-shadow: 0 0 3px rgba(0,115,230,0.5);
}

/* Folder Cards */
.folder-card {
    background: #e8f0fe;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
    margin: 5px;
}

.folder-card:hover {
    background: #cce0ff;
}

/* File Cards */
.file-card {
    background: #f5f5f5;
    padding: 8px;
    border-radius: 5px;
    margin: 5px;
}



/* Breadcrumb container */
.breadcrumb-container {
    margin-bottom: 10px;
    font-size: 14px;
    background-color: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Breadcrumbs */
.breadcrumb {
    color: #0073e6;
    cursor: pointer;
    text-decoration: underline;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.breadcrumb:hover {
    color: #005bb5;
}

//* Header */
.header {
    display: flex;
    flex-wrap: wrap; /* allow wrapping */
    align-items: center;
    justify-content: space-between;
    background-color: rgb(0,104,202); /* blue background */
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
}

/* Nav container */
.header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0; /* remove extra spacing that might create cyan block */
}

/* Header nav links as pills */
.header nav a {
    padding: 6px 12px;          /* space inside the pill */
    border-radius: 20px;         /* rounded corners */
    background-color: rgba(255, 255, 255, 0.2); /* semi-transparent background */
    color: white;               /* text color */
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.header nav a:hover {
    background-color: rgba(255, 255, 255, 0.5); /* lighter on hover */
    color: #000;                                /* text turns black on hover */
}

/* Mobile adjustments (stacking / spacing) */
@media (max-width: 720px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        margin-top: 5px;
    }

    .header nav a {
        margin-bottom: 5px; /* extra spacing for mobile */
    }
}


/* About / Contact / Request Section */
.about-section, .contact-section {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: rgba(255,255,255,0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.about-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.about-image {
    width: 150px;
    height: auto;
    border-radius: 8px;
}

.about-flex p {
    margin: 0;
}

@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        width: 200px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.developer-card {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
}

.developer-card h3 {
    margin-top: 0;
}

.dev-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    font-weight: bold;
    color: #0077ff;
}

.dev-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .developer-card {
        position: static;
        margin-top: 30px;
        width: 100%;
    }
}

.file-actions {
    margin-top: 8px;
}

.file-actions a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-right: 8px;
}

/* Open button */
.file-actions a:first-child {
    background-color: #4CAF50;
    color: white;
}

.file-actions a:first-child:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
}

/* Download button */
.file-actions a:last-child {
    background-color: #007BFF;
    color: white;
}

.file-actions a:last-child:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Remove margin from last button */
.file-actions a:last-child {
    margin-right: 0;
}

