/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: 80px;
    background-color: #f4f4f4;
}

/* Mobile-friendly navigation */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: #2c2c2c;
    color: white;
}

.menu-btn {
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-title p {
    margin: 0;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    color: white;
}

.title-line-1 {
    font-size: 24px;
}

.title-line-2 {
    font-size: 16px;
}

.sofia-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    left: calc(50px + 10px);
    top: 0;
    background-color: #333;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    z-index: 999;
    white-space: nowrap;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: content-box;
    transition: left 0.3s ease;
    display: none;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    text-align: left;
    padding: 10px 0;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    padding: 3px;
    display: block;
}

/* Hero Section */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 20px);
    z-index: 1000;
    background-color: #3333;
    color: white;
    text-align: center;
    padding: 10px 10px;
}

.hero {
    padding: 20px;
    text-align: center;
    color: #333;
}

.hero h1 {
    font-size: 40px;
    color: #333;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.cta-btn {
    background-color: #ff6347;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* Tours Section */
#tours {
    padding: 20px;
    text-align: center;
}

#tours h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.tour-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tour-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tour-item h3 {
    font-size: 20px;
}

.tour-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.tour-details-btn {
    background-color: #999999;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.tour-details-btn:hover {
    background-color: #777777;
}

.details-btn-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.contact-btn-red {
    background-color: #ff6347;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-btn-red:hover {
    background-color: #ff0000;
}

/* About Section */
#about {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

#about h2 {
    font-size: 30px;
    white-space: nowrap;
}

#about p {
    max-width: 700px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

/* Events Section */
#events {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    justify-content: center;
}

.events-wrapper {
    display: flex;
    justify-content: flex-start; /* Align the events to the left */
    overflow: hidden; /* Prevent the wrapper itself from scrolling */
    max-width: 100%;
    margin: 0 auto;
}

.events-container {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Enable horizontal scrolling */
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: auto;
    justify-content: center; /* Align items to the left */
    flex-wrap: nowrap;
    width: max-content;
}


.events-container::-webkit-scrollbar {
    height: 8px;
}

.events-container::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 10px;
}

.event-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    max-width: min(70%, 300px);
    min-width: 100px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
    text-align: left;
}

.event-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.event-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.event-item p {
    font-size: 16px;
    color: #555;
}

/* Contact Section */
#contact {
    text-align: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f4f4f4;
}

#contact h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #333;
}

.contact-list-body {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 10px auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-btn {
    background-color: transparent;
    padding: 0;
    border: none;
    display: inline-flex;
    align-items: center;
}

.social-logo {
    width: 36px;
    height: 36px;
    vertical-align: middle;
}

.contact-btn:hover {
    background-color: #e55337;
}

.contact-btn:active {
    opacity: 0.7;
    transform: scale(0.95);
    background-color: #ddd;
}

.contact-info {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.contact-item:last-child {
    margin-bottom: 0;
}

/* Contact Form Styling */
.contact-form-body {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-body form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6347;
    outline: none;
}

.submit-btn {
    background-color: #ff6347;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin: 0 auto;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #e55337;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

footer a {
    color: #ff6347;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal Image Display */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content-wrapper {
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #000;
}

/* Mobile-only adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .tour-list {
        flex-direction: column;
        align-items: center;
    }

    .tour-item {
        max-width: 90%;
    }

    .menu-btn.active + .mobile-menu {
        display: flex;
    }
    
    @media (max-width: 1200px) {
        .events-wrapper {
            margin: 0 auto; /* Center the wrapper */
            justify-content: center; /* Center contents if they fit within the viewport */
        }
    }    
}