/* filepath: /workspace/Eventia/static/css/custom.css */
html, body {
    height: 100%; /* Ensure the html and body elements take up the full height of the viewport */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #18d6e8;
    display: flex;
    flex-direction: column; /* Use flexbox to make the body a flex container */
}

h2, h3 {
    font-family: 'Smooch Sans', sans-serif;
}

.navbar-custom {
    background-color: #1A5F7A;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: #fff; /* Custom text color */
}

.navbar-custom .nav-link:hover {
    color: #E84610; /* Custom hover color */
} 

.navbar-brand img {
    transition: box-shadow 0.3s ease-in-out;
}

.navbar-brand img:hover {
    box-shadow: 0 0 15px rgba(232, 70, 16, 0.8); /* Glow effect */
}


header {
    margin-bottom: 30px; /* Adjust the value as needed */
}

.hero-section {
    height: 75vh; /* Full viewport height */
    background: url('/static/images/eventia_background_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Ensure text is readable */
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-section .display-4 {
    font-weight: bold;
    color: #09417a;
}

.hero-section .btn-primary {
    background-color: #1A5F7A;
    border-color: #ebba0a;
    color: #ebba0a;
}

.hero-section .background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-section .background-animation div {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: move 10s infinite;
}

@keyframes move {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-100vh) translateX(100vw);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Main Section */
.groupings-container {
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    flex: 1; /* Allow the container to grow and take up available space */
}

.groupings-container .background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.groupings-container .background-animation div {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: move 10s infinite;
}

.circular-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #1A5F7A;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 20px;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    text-decoration: none; /* Remove underline from links */
    transition: transform 0.3s ease;
}

.circular-icon i {
    font-size: 2rem; /* Adjust the size as needed */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #f0f0f0; /* Adjust the background color as needed */
    color: #ebba0a; /* Adjust the icon color as needed */
    text-align: center;
    margin-bottom: 10px;
}

.circular-icon p {
    margin: 0;
    font-size: 1rem; /* Adjust the font size as needed */
    color: #ebba0a; /* Adjust the text color as needed */
}

.circular-icon:hover {
    background-color: #E84610;
    transform: scale(1.1);
}

.circular-icon:hover i {
    background-color: #1A5F7A;
    color: #fff;
}

.event-items {
    display: none;
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}


.footer {
    background: linear-gradient(135deg, #333333 50%, #555555 50%);
    color: white;
    padding: 20px 0;
    background-color: #f8f9fa;
    text-align: center;
    width: 100%;
    margin-top: auto; /* Push the footer to the bottom of the page */
}

.footer h5 {
    font-weight: bold;
}

.footer a {
    color: white;
    text-decoration: none;
}

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

.footer .social-icons a {
    font-size: 1.5rem;
    margin-right: 10px;
}

.upcoming-events {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust the gap between cards as needed */
}

.event-card {
    flex: 1 1 calc(33.333% - 20px); /* Default to 3 cards per row */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 600px; /* Set a fixed height for the cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.event-card h5 {
    font-size: 16px;
    margin-bottom: 10px;
}

.event-card p {
    font-size: 14px;
    margin-bottom: 10px; /* Add margin to paragraphs */
}

.event-card img,
.event-card video {
    width: 100%; /* Ensure the media takes the full width of the card */
    height: 300px; /* Set a fixed height for the media */
    object-fit: cover; /* Ensure the media covers the area without distortion */
    margin-bottom: 15px; /* Add margin to images and videos */
}

.event-card .btn {
    margin-top: 10px; /* Add margin to the button */
}

h2 {
    font-size: 2.5rem; /* Adjust the size as needed */
    font-weight: bold;
    color: #09417a; /* Use a color that matches your website's color scheme */
    text-align: center;
    margin-top: 20px; /* Add space above the heading */
    margin-bottom: 20px; /* Add space below the heading */
    padding: 10px; /* Add padding for better spacing */
    
}


/* Styles for tablets */
@media (max-width: 1024px) {
    .hero-section {
        height: 50vh;
        background-attachment: scroll;
    }

    .event-card {
        height: auto; /* Adjust height for smaller screens */
    }

    .event-card img,
    .event-card video {
        height: 150px; /* Adjust media height for smaller screens */
    }
}

/* Styles for mobile phones */
@media (max-width: 767px) {
    .hero-section {
        height: auto;
        background-attachment: scroll;
        padding: 20px;
    }

    .hero-section .display-4 {
        font-size: 1.5rem;
    }

    .hero-section .btn-primary {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .event-card {
        flex: 1 1 calc(50% - 20px); /* 2 cards per row on smaller screens */
        height: auto; /* Adjust height for smaller screens */
    }

    .event-card img,
    .event-card video {
        height: 100px; /* Adjust media height for smaller screens */
    }
}

.btn-primary {
    background-color: #1A5F7A;
    border-color: #ebba0a;
    color: #ebba0a;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: #E84610;
    color: #1A5F7A;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background-color: #1A5F7A;
    color: #fff;
    padding: 15px;
    text-align: center;
}

.card-body {
    padding: 20px;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: #fff;
}

.rounded-circle {
    border-radius: 50%;
}

.alert {
    margin-top: 20px;
}

.form-control {
    margin-bottom: 10px;
}

.invalid-feedback {
    display: none;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.sort-form {
    margin-bottom: 20px;
}

.sort-form .form-group {
    display: flex;
    align-items: center;
}

.sort-form label {
    margin-right: 10px;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.step-links {
    display: flex;
    gap: 10px;
}

.page-link {
    padding: 10px 15px;
    background-color: #1A5F7A;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-link:hover {
    background-color: #0056b3;
}

.current {
    padding: 10px 15px;
    background-color: #ebba0a;
    color: #343a40;
    border-radius: 5px;
}

.fixed-size {
    width: 100%;
    max-width: 600px; /* Adjust the max-width as needed */
    height: auto;
    max-height: 400px; /* Adjust the max-height as needed */
    object-fit: cover; /* Ensure the media covers the area without distortion */
}

body #type-note {
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa; /* Light background */
    color: #db470d; /* Dark text */
    margin-top: 10px;
}
