body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

h1 {
    text-align: center;
    color: #f8f8f8;
}

.nav-container {
    background-color: #1a1a1a;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: #f8f8f8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffa726;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .nav-links {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .nav-container {
        padding: 10px 15px;
    }
}

p {
    padding: 20px;
    max-width: 800px;
    width: 55%;
    margin: 0 auto;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-radius: 8px;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

img {
    width: 27%;
    margin: calc(0.25%);
    border-radius: 3%;
}

.row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.center {
    justify-content: center;
}

html {
    color-scheme: dark light;
}

/* Snowflakes container */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background-color: #ffffff !important;
    border-radius: 50%;
    opacity: 0.9;
    animation: fall linear infinite;
    filter: brightness(1) !important;
}


/* Fall animation (vertical movement) */
@keyframes fall {
    100% {
        transform: translateY(100vh);
    }
}

/* Style for the "Happy New Year" message */
#happyNewYearMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    font-weight: bold;
    color: #f44336;
    text-transform: uppercase;
    padding: 20px;
    border-radius: 10px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-out;
    background-image: url('christmas-new-year.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: shine 2s infinite alternate;
}

/* Shiny effect for the text */
@keyframes shine {
    0% {
        text-shadow: 0 0 5px #fff, 0 0 10px #ff0000, 0 0 15px #ff0000, 0 0 20px #ff6347, 0 0 30px #ff6347, 0 0 40px #ff6347, 0 0 50px #ff6347;
    }
    100% {
        text-shadow: 0 0 10px #fff, 0 0 20px #ff0000, 0 0 30px #ff6347, 0 0 40px #ff6347, 0 0 50px #ff6347, 0 0 60px #ff6347;
    }
}

.space {
    height: 100px;
}

.space2 {
    height: 30px;
}

form {
    max-width: 400px;
    margin: 20px auto;
    margin-top: 50px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #2a2a2a; /* Dark form background to match body */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #e0e0e0;
}

form input {
    width: 100%; /* Full width inputs */
    padding: 10px;
    margin: 5px 0 20px;
    border: 1px solid #ccc;
    background-color: #333;
    color: #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50; /* Green button */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

form button:hover {
    background-color: #45a049;
}

form a {
    text-decoration: none;
    color: #4CAF50;
    text-align: center;
    display: block;
    margin-top: 20px;
}

form a:hover {
    text-decoration: underline;
}

/* Responsive Design for Smaller Screens */
@media screen and (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 5px 0;
    }

    form {
        padding: 15px;
        margin: 20px;
    }
}

.center-link {
    text-decoration: none;
    color: #4CAF50;
    display: block;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    font-size: 16px;
}

.center-link:hover {
    text-decoration: underline;
}

.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
}

.welcome-message {
    color: #f8f8f8;
}

.dropdown {
    height: 100%;
    position: relative;
}

/* The button inside the nav */
.dropbtn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0px 5px;  /* good size for clickable area */
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
    height: 100%; /* ensure it fills parent li */
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 160%; /* now this really means: below navbar */
    left: 0;
    background-color: #1a1a1a;
    z-index: 999;
    min-width: 110px;
    border: 1px solid #333;
    border-radius: 4px;
    transform: translateX(-24%);
    box-shadow: 0px 5px 10px rgba(0,0,0,0.3); /* Optional */
}

/* Add an invisible "buffer" element to extend hover */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;      /* 20px above the dropdown */
    left: 0;
    width: 100%;
    height: 20px;    /* buffer height */
    /* transparent background so it's invisible */
    background: transparent;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Dropdown menu links */
.dropdown-content a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #333;
    color: #ff9800;
}

.nav-links li {
    margin: 0 20px;
    height: 100%; /* Add this */
    position: relative; /* Needed for dropdown positioning */
}

a.underline-anim {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

a.underline-anim:hover {
  border-bottom-color: #007bff;
  cursor: pointer;
}