

/*<--- General --->*/


:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
  }
  @supports (font-variation-settings: normal) {
    :root { font-family: InterVariable, sans-serif; }
  }

body {
    margin: 0;
    background: #d8b2e0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    height: 100%; /* Ensure the body takes full height */
    text-decoration: none;
}


/*<--- Site Name --->*/


.site-name {
    font-size: 28px; /* Increased font size */
    font-weight: bold; /* Added bold weight */
    margin-right: auto; /* Push to the left */
    padding: 15px 0; /* Added padding for better spacing */
    color: white;
}

.site-name:hover {
    color: red;
}

.site-name-link {
    text-decoration: none; /* Remove underline */
    padding: 10px 20px; /* Add padding */
    display: inline-block; /* Make it a block-level element for better styling */
    position: relative
}

.site-name-link::before { /* Target the <a> tag */
    content: '';
    display: block;
    height: 5px;
    background-color: #ff0000; /* Or your desired color */
    position: absolute;
    top: 15px;
    width: 0%; /* Initially hidden */
    transition: all ease-in-out 250ms; /* Smooth transition */
}

.site-name-link:hover {
    background-color: #130b31; /* Add hover effect */
    cursor: pointer; /* Change cursor to pointer on hover */
}

.site-name-link:hover::before {
    width: 75%; /* Extend on hover */
}


/*<--- Nav Bar --->*/


.menu {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh; /* Full viewport height */
}

.nav-bar {
    width: 80%;
    margin: 0 auto;
    display: flex; /* Use flexbox */
    justify-content: space-between; /* Distribute space between items */
    align-items: center; /* Vertically center items */
}

header {
    background: #130b31;
    border-bottom: 7px solid #d966ff; /* Add a bottom border to the header */
}

header::after {
    content: '';
    display: table;
    clear: both;
}

nav {
    display: flex; /* Use flexbox for nav */
    align-items: center;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 20px; /* Adjust spacing */
    padding: 15px 0;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

nav a:hover {
    color: red;
}

nav a::before {
    content: '';
    display: block;
    height: 5px;
    background-color: #ff0000;
    position: absolute;
    top: 0;
    width: 0%;
    transition: all ease-in-out 250ms;
}

nav a:hover::before {
    width: 75%;
}


/*<--- Burger Menu --->*/


.burger-menu {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 20px;
}

.burger-menu div {
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

.burger-menu.change div {
    background-color: red;
}

.burger-menu.change .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.change .bar2 {
    opacity: 0;
}

.burger-menu.change .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.dropdown-menu {
    display: none; /* Hide the dropdown by default */
    position: absolute; /* Position it relative to the parent */
    background-color: #130b31; /* Match the header color */
    list-style: none; /* Remove bullet points */
    padding: 10px 0; /* Add some padding */
    margin: 0; /* Remove default margin */
    z-index: 1; /* Ensure it appears above other elements */
}

.burger-menu.change + .dropdown-menu {
    display: block; /* Show the dropdown when the menu is active */
}

.dropdown-menu li {
    padding: 10px 20px; /* Add padding for each item */
}

.dropdown-menu a {
    color: white; /* Text color */
    text-decoration: none; /* Remove underline */
}

.dropdown-menu a:hover {
    color: red; /* Change color on hover */
}


/*<--- Footer --->*/


main {
    flex: 1; /* Allow main content to grow and fill space */
}

footer {
    background-color: #130b31; /* Match your nav bar color */
    color: white; /* Text color for contrast */
    text-align: center; /* Center the text */
    padding: 1rem 0; /* Add some padding */
    border-top: 7px solid #d966ff; /* Add a top border to the footer */
}