body {
    font-family: "Gill Sans", sans-serif;
    padding: 0;
    margin: 0;
    background-color: #f4f4f4;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: white;
    color: #ff3838;
    box-shadow: 0 2px 5px #0000001a;
    padding: 5px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 45px;
    height: auto;
    margin-right: 10px;
}

.site-title {
    font-size: 36px;
    background: linear-gradient(to right, #975549, #e64147);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #333;
    bottom: -5px;
    left: 50%;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.burger {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    margin-right: 30px; 
    padding: 10px; 
    background-color: #ffffffcc; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px #00000033; 
    transition: background-color 0.3s, transform 0.3s; 
}

.burger:hover {
    background-color: #ffffff; 
    transform: scale(1.05); 
}

.burger .line {
    width: 35px; 
    height: 4px; 
    margin: 4px 0;
    transition: background-color 0.3s; 
    background: linear-gradient(to right, #d8269d, #f57f10);
}


main {
    flex: 1;
    padding: 20px 20px;
}


.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

#background-video {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #c7eed98a;
    z-index: -1; 
}



header {
    background-color: white;
    color: #ff3838;
    box-shadow: 0 2px 5px #0000001a;
    padding: 5px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 45px;
    height: auto;
    margin-right: 10px;
}

.site-title {
    font-size: 36px;
    background: linear-gradient(to right, #975549, #e64147);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #333;
    bottom: -5px;
    left: 50%;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.burger {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    margin-right: 30px; 
    padding: 10px; 
    background-color: #ffffffcc; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px #00000033; 
    transition: background-color 0.3s, transform 0.3s; 
}

.burger:hover {
    background-color: #ffffff; 
    transform: scale(1.05); 
}

.burger .line {
    width: 35px; 
    height: 4px; 
    margin: 4px 0;
    transition: background-color 0.3s; 
    background: linear-gradient(to right, #d8269d, #f57f10);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 50px;

}

.tool-section {
    position: relative;
    background-color: #f4faf7;
    border: 1px solid #c9dddc;
    border-radius: 20px;
    opacity: 0;
    box-shadow: 0 2px 5px #0000001a;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.7s ease;
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.7s ease-out forwards;
    justify-content: space-between;
    box-sizing: border-box;
}

.tool-section:hover {
    transform: scale(1);
    box-shadow: 0 5px 20px #00000041;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-section:nth-child(1) {
    animation-delay: 0.1s;
}


.tool-section:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-section:nth-child(3) {
    animation-delay: 0.3s;
}

.tool-section:nth-child(4) {
    animation-delay: 0.4s;
}

.tool-section:nth-child(5) {
    animation-delay: 0.5s;
}

.tool-section:nth-child(6) {
    animation-delay: 0.6s;
}

.tool-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #34495e;
    font-weight: bold;
    text-align: center;
}

.tool-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

input, select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #dddddd;
    box-shadow: 0 1px 10px #00000033;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

input:focus, select:focus {
    border-color: #20b18c;
    outline: none;
}

.custom-dropdown {
    position: relative;
    box-shadow: 0 1px 10px #00000033;
    width: 100%;
    border-radius: 10px;

}

.dropdown-selected {
    background-color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border 0.3s ease;
}


.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #dddddd;
    box-shadow: 0 1px 10px #00000033;
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.dropdown-option {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-option:hover {
    background-color: #f0f0f0;
}

.dropdown-option.selected {
    background-color: #007BFF;
    color: white;
}

.dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-options {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

.material-symbols-outlined {
    margin: -15px;
}

#departure:focus {
    border-color: #ddd;
}


button {
    display: inline-block;
    background: linear-gradient(135deg, #20e4a9, #20cde4);
    color: #fff;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    border: 3px solid #ffffff;
    box-shadow: 0 1px 20px #20e4d4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease, letter-spacing 0.3s ease;
}

button:hover {
    letter-spacing: 6px;
}


.spinner {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0bcaba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-top: 10px;
    position: absolute;
    top: 82%;
    transform: translateX(-50%);
    align-self: center; 
}

#rk-spinner, #tr-spinner, #fc-spinner {
    position: absolute;
    top: 78%;
    transform: translateX(-50%);
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

p {
    font-size: 16px;
    color: #000000;
    text-align: center;
}

.umrechner-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}



#currency-result, 
#timezone-result, 
#flight-duration-result, 
#travel-cost-result, 
#tip-calculator-result, 
#airport-code-result {
    height: 0;
    font-size: 19px;
}





footer {
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
    color: #333;
    box-shadow: 0 -2px 10px #0000001a;
}


footer p {
    margin: 0;
}



@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
    #fd-loading-spinner {
        position: absolute;
        top: 78%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .tool-section {
        margin-left: -30px;
        margin-right: -30px;
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .burger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 20px;
        width: max-content;
        width: 100%;
        padding: 10px;
        max-width: 200px;
        background-color: #fffffff2;
        box-shadow: 0 4px 20px #00000033;
        border-radius: 8px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translateY(-20px) translateX(-100%);
        opacity: 0;
        z-index: 1;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 5px 0;
        text-align: left;
    }
    
    .nav-links li a {
        color: #333;
        text-decoration: none;
        padding: 12px 15px;
        display: block;
        padding: 10px;
        border-radius: 5px;
        transition: background-color 0.3s, transform 0.3s;
    }
    
    .nav-links li a:hover {
        background-color: #0000001a;
        transform: scale(1.05);
    }
}



@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .tool-section {
        flex: 1 1 100%;
    }
}

@media (max-width: 500px) {
    .burger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 20px;
        width: max-content;
        width: 100%;
        padding: 10px;
        max-width: 200px;
        background-color: #fffffff2;
        box-shadow: 0 4px 20px #00000033;
        border-radius: 8px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translateY(-20px) translateX(-100%);
        opacity: 0;
        z-index: 1;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 5px 0;
        text-align: left;
    }
    
    .nav-links li a {
        color: #333;
        text-decoration: none;
        padding: 12px 15px;
        display: block;
        padding: 10px;
        border-radius: 5px;
        transition: background-color 0.3s, transform 0.3s;
    }
    
    .nav-links li a:hover {
        background-color: #0000001a;
        transform: scale(1.05);
    }
}



  









