p {
    text-align: center;
    margin-bottom: 0px;
    width: 70%;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 10px;
    margin: 0 auto;
    color: white;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
}

h1 {
    background-color: #1a1a1a;
    text-align: center;
    color: white;
}

h3 {
    background-color: #1a1a1a;
    text-align: center;
    color: white;
}

.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; /* Center the items horizontally */
    align-items: center;     /* Center the items vertically */
    margin: 0;
}

.nav-links li {
    margin: 0 20px;  /* Horizontal spacing between items */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff9800;
}

.row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.center {
    justify-content: center;
}

.iframe-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 58%;
    margin: 10px auto;
    padding-bottom: 66.2%;
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
}

.centered-image {
    display: block;
    max-width: 40%;
    height: auto;
    margin: 20px auto;
}

.centered-image + p {
    text-align: center;
    margin-top: 10px;
}

.link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.button-container {
    text-align: center;
    margin-top: 1px;
    margin-bottom: 10px;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #45a049;
}

.space {
    height: 100px;
}

.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;
}