body {
    font-family: 'Arial', sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    padding-top: 180px; /* Adjust this value according to the header and nav height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('/visualizza_file/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
header {
    background-color: #12A0D7;
    color: white;
    text-align: center;
}
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header-content img {
    max-width: 100px;
    margin-bottom: 10px;
}
h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.submit-button {
    margin-top: 10px;
    width: 100%;
}
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.navbar {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.144);
}
.navbar-brand {
    font-weight: bold;
    color: white;
}
.navbar-nav .nav-link {
    font-weight: bold;
    color: white;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #12A0D7;
}
.footer {
    margin-top: auto;
    padding: 10px;
    text-align: center;
    background-color: #12A0D7;
    color: white;
    width: 100%;
}
.footer a {
    color: #12A0D7;
    text-decoration: none;
}
h1  {
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}
section {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.alert-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}
.alert {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1100;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.144);
}

.back-button i {
    font-size: 1.5rem;
}

/* Dropdown hover functionality */
.navbar-nav .nav-item:hover .dropdown-menu {
    display: block;
}

/* Font Awesome icons for the nav links */
.nav-link-icon {
    margin-right: 5px;
}

/* Improved hover effects for dropdown items */
.dropdown-item:hover {
    background-color: #12A0D7;
    color: #ffffff;
}

/* Volume slider styling */
#volume-slider {
    width: 150px;
    margin-left: 20px;
}

/* Falling dot styling */
@keyframes fall {
    0% { top: 0; opacity: 1; }
    100% { top: 100vh; opacity: 0; }
}

.falling-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    animation: fall 3s forwards;
    z-index: 10000;
}

.nav-item {
    margin-left: 15px;
    margin-right: 20px;
}

.dropdown-toggle {
    text-align: center;
}