* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset the body's margin and padding */
body {
    margin: 0;
    padding: 0;
}

/* Main styling */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: left; 
}

/* Main content container */
.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;     /* Horizontally centers content  */    
    margin-top: 15vmin;
    height: 85%;
}

.main-image {
    max-width: 90%;
    max-height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Top Bar styling */
.top-bar {
    background-color: white; 
    height: 15vmin;
    width: 100%;
    display: flex;          
    align-items: center; 
    position: fixed;   
    box-shadow: 0px 5px 10px 0px rgb(168, 168, 168);
    transition: all 0.3s ease;     /* Smooth transition for height */
}

/* Resource boxes styling */
.resource-box {
    width: fit-content;
    max-width: 20%;
    font-size: 2vmin;
    hyphens: auto;
    font-family: 'Poppins', Verdana, Tahoma, sans-serif;
    padding: 3%;
    margin: 2.5%;
    border: #F4F4F4 groove;
}

.resource-box img {
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.resource-box h3,h2 {
    text-align: center;
}

/* Logo and Title styling */
.title {
    font-size: 3vmin;       
    font-family: 'Gill Sans', Arial, sans-serif;  
    color: black;            
    margin: 0;               
}

.subtitle {
    font-size: 2vmin;         
    font-family: 'Gill Sans', Arial, sans-serif;  
    color: rgb(55, 55, 55);            
    margin: 0;               
}

.bar-container {
    display: flex;
    align-items: center;           /* Vertically centers the logo and links */
    justify-content: left;
    cursor: pointer;
    width: 50%;
    margin-left: 5%;
}

.title-container {
    display: flex;
    flex-direction: column;     
    align-items: left;    
    margin-left: 2.5%;     
}

/* Link styling */ 
.link-container {
    display: flex;
    justify-content: flex-end;
    gap: 10%;
    box-sizing: border-box;
}

.link {
    font-size: 2vmin;
    font-weight: 700;
    font-family: 'Poppins', Verdana, Tahoma, sans-serif;
    color: #000000;
    cursor: pointer;           /* Makes the text look clickable */
    margin: 0;
    text-decoration: none;
    position: relative;
}

.link:hover {
    text-decoration: underline; /* Adds underline on hover */
}

/* .link:not(:last-child)::after {
    content: '';              
    position: absolute;       
    right: -22.5%;             
    top: 50%;                 
    transform: translateY(-50%); 
    height: 0.6vmin;              
    width: 0.6vmin;              
    background-color: black; 
    border-radius: 50%;     
} */

.current-page {
    color: #C1DBE3;
    cursor: default;
}

/* Image styling */
.logo {
    height: 10vmin;
}
.cmbr {
    height: auto;
    width: auto;
}



/* Styling when the top bar is condensed */

/* Condensed top bar */
.top-bar.condensed {
    height: 7.5vmin;                  /* Reduce height of the top bar */
    transition: all 0.3s ease;     /* Smooth transition for height */
}


/* Hide the logo */
.top-bar.condensed .logo {
    display: none;                 /* Completely hides the logo */
}

/* Hide the subtitle */
.top-bar.condensed .subtitle {
    display: none;                 /* Completely hides the subtitle */
}


/* Keep the links aligned properly */
.top-bar.condensed .link-container {
    justify-content: flex-end;     /* Ensure links stay on the right */
}
