/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header, footer {
    background-color: #ffffff;
    color: rgb(71, 81, 95);
    padding: 1%;
    width: 100%;
    border-top: 2px solid #ddd;
}

/*Loading overlay*/
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #168389;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
}

.spinner {
    border: 12px solid #f3f3f3;
    border-top: 12px solid #168389;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*Cookie popup*/
.popup {
    position: fixed;
    left: 50%;
    bottom: 20px;
    width: 300px;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    display: none; /* Initially hidden */
}

.popup-content {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}


/* General styles */
html {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #ffffff;
    color: rgb(71, 81, 95);
    border: #f0eeee  2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1%;
    width: 100%;
    height: 0%;
}

.main_title{
    font-size: 3vw;
}


/* Get in touch button */
.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0%;
    padding: 5px;
    width: 15vw;
    text-decoration: none;
    color: white;
    font-size: large;
}

.contact-container {
    position: relative; /* Sets the reference point for absolute positioning */
    display: inline-block;
}

.contact-button {
    background-color: #305a5c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 2vw;
    transition: background-color 0.3s ease;
}

.dropdown {
    position: absolute;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: white;
    position: flex;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    width: 150px;
    z-index: 1000; /* Ensure dropdown is above other content */
}

.dropdown.show {
    max-height: 200px; /* Adjust based on content */
    display: block;
}

.dropdown a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: black;
}

.dropdown a:hover {
    background-color: lightgray;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    width: 15vw;
}

/* Navigation */
.menu-btn {
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: darkslategray;
    border-radius: 10px; /* Rounded corners */
}

.menu-btn i {
    font-size: 300%;
    color: white;
}

.nav {
    position: fixed;
    z-index: 999; /* Ensure the nav is above other content */
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #168389;
}

.nav__item {
    margin: 20px 0;
}

.nav__link {
    text-decoration: none;
    color: white;
    font-size: 140%;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: #49a0fd;
}

.nav.open {
    transform: translateX(0);
}

.menu-btn.open i {
    transform: rotate(90deg);
}

/* Footer */
footer {
    background-color: #ffffff;
    color: rgb(71, 81, 95);
    height: 25%;
    display: flex;
    padding-left: 3%;
    padding-right: 3%;
    width: 100vw;
    bottom: 0;
    margin-top: auto;
    justify-content: space-between;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
}

.address {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
}

.legals{
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.socials {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

/* Appstore and Playstore button links */

.button-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 20px;
    overflow: hidden;
}

.button {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    color: white;
    transition: background-color 0.3s ease;
}

.button i {
    font-size: 24px;
    margin-right: 10px;
}

.button .button-text {
    font-size: 12px;
    margin-right: 5px;
}

.button .store-name {
    font-size: 16px;
    font-weight: bold;
}

.button.google-play {
    background-color: #5f6a6a;
    width: 80%;
}

.button.app-store {
    background-color: #000;
    width: 80%;
}

.button.google-play:hover {
    background-color: #3c4a4a;
}

.button.app-store:hover {
    background-color: #333;
}


/* Social media icons */

.social-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@media (max-width: 768px) { /* Responsive styles for smaller screens */
    .social-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.button.instagram {
    background-color: #C13584;
}

.button.facebook {
    background-color: #4267B2;
}

.button.instagram:hover {
    background-color: #A82E72;
}

.button.facebook:hover {
    background-color: #3A5A99;
}