:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-bg: #ecf0f1;
    --dark-bg: #34495e;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

/* Define the font face */
@font-face {
    font-family: 'Söhne Leicht';
    src: url('../webfonts/soehne-leicht.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }
  
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Söhne Leicht', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--secondary-color);
    line-height: 1.6;
}

.top-section {
    background-color: var(--light-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 0.32rem;
}

.logo:hover {
    color: var(--secondary-color);
}

.logo-icon {
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.btn {
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.middle-section {
    flex-grow: 1;
    background-color: var(--light-bg);
}

.bottom-section {
    background-color: var(--dark-bg);
    color: white;
    padding: 20px 0;
}

.carousel-item {
    height: calc(100vh - 80px);
    min-height: 300px;
    background: no-repeat center center scroll;
    background-size: cover;
}

.carousel-caption {
    background-color: rgba(44, 62, 80, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(44, 62, 80, 0.5);
    background-size: 100%, 100%;
    border-radius: 50%;
}

.container {
    margin-top: 50px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 20px;
}

.card h1 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.card .icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card a:hover {
    color: var(--secondary-color);
}

.card-header {
    padding: 10px 0;
    margin-bottom: 20px;
    text-align: center;
}

.section-title {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.formatted-text {
    margin-bottom: 20px;
    white-space: pre-line;
}

.formatted-text p {
    margin-bottom: 10px;
}

/* Existing styles remain unchanged */

/* New styles for form elements */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23343a40' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
}

/* Styles for error messages */
.text-danger {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert-danger {
    background-color: #fde8e8;
    border-color: #f8d7da;
    color: var(--error-color);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

/* Styles for the payment element */
#payment-element {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 1rem;
}

/* Spinner styles */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        padding: 15px;
    }

    .btn {
        padding: 0.375rem 1rem;
    }

    .form-control {
        font-size: 0.9rem;
    }
}

/* Accessibility improvements */
.btn:focus, .form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Additional styles for better form layout */
.mb-3 {
    margin-bottom: 1.5rem !important;
}

.w-100 {
    width: 100% !important;
}

/* Style for the monthly subscription text */
.subscription-info {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Hover effect for submit button */
#submit-button:hover {
    background-color: #2980b9; /* Darker shade of var(--primary-color) */
    border-color: #2980b9;
}

.subtle-image {
    opacity: 0.8; /* Adjust this value between 0 and 1 to control transparency */
    transition: opacity 0.3s ease; /* Optional: adds a smooth transition effect */
  }
  
/* Optional: hover effect to increase opacity when mouse is over the image */
.subtle-image:hover {
opacity: 1;
}

.equal-height-cards {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-cards > div[class*='col-'] {
    display: flex;
}

/* Added to address form dropdown option text cutoff issue */
.col-md-4 select {
    height: auto; /* or a specific height like 40px */
    overflow: visible;
}

/* Added to address form dropdown option text cutoff issue */
.col-md-6 select {
    height: auto; /* or a specific height like 40px */
    overflow: visible;
}

/* Make sure the buttons are centered the bottom of the popup */
.modal-footer .btn {
    margin: 0 5px;
}

/* Make sure the event detail close button has same size as other buttons */
/* Styles for the modal dialog */
.modal-dialog {
    max-width: 95vw;
    width: 500px;
    margin: 1.75rem auto;
}

/* Styles for the modal header and event name button */
.modal-header {
    display: block;
    padding-bottom: 0;
}

.event-name-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.event-name-button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
    hyphens: auto;
    padding: 0.375rem 0.75rem;
    line-height: 1.2;
    height: auto;
    min-height: 38px;
    font-size: 1rem; /* Starting font size */
    transition: font-size 0.3s ease; /* Smooth transition for font size changes */
}

/* Styles for the modal footer and buttons */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Styles for the custom close button */
.btn-close-custom {
    height: 38px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    margin-left: auto;
}

/* Responsive styles for smaller screens */
@media (max-width: 576px) {
    .modal-dialog {
        max-width: 95vw;
        margin: 1rem auto;
    }

    .event-name-button {
        font-size: 0.9rem; /* Slightly smaller starting font on mobile */
    }
    
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-footer > div {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    .btn-close-custom {
        margin-left: 0;
        align-self: flex-end;
    }
}

* Enhancing the looking of the edit profile form */
.card {
    margin-top: 20px;
    margin-bottom: 20px;
}

.card-header h1 {
    margin-bottom: 0;
}

.section-title {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

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

.btn-back {
    margin: 5px;
}

.form-control {
    max-width: 100%;
}

* Ensure some field can accomodate long input */
.form-control-lg select {
    height: auto !important;
}
.email-field input[type="email"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    direction: rtl;
    text-align: left;
}
@media (min-width: 768px) {
    .email-field input[type="email"] {
        width: 350px;
    }
}

* Style for comeptition formt */
form input, form select, form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

form label {
    font-weight: bold;
}

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

.form-row label {
    display: block;
    font-weight: bold;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="url"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-row input[type="checkbox"] {
    margin-right: 5px;
}

.section-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.section-title i {
    margin-right: 5px;
}

.btn-back {
    margin-top: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 5px;
}

.formatted-text {
    margin-bottom: 20px;
}

.formatted-text strong {
    display: block;
    margin-bottom: 5px;
}

.formatted-text textarea {
    width: 100%;
    min-height: 100px;
}

.date-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.date-format-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.change-history-toggle {
    cursor: pointer;
    user-select: none;
}
.change-history-toggle:hover {
    color: #007bff;
}
.toggle-icon {
    font-size: 0.8em;
    margin-left: 5px;
}
.change-history-content {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.messages {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.messages li {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
}
.messages .success { background-color: #d4edda; color: #155724; }
.messages .warning { background-color: #fff3cd; color: #856404; }
.messages .error { background-color: #f8d7da; color: #721c24; }
.messages .info { background-color: #d1ecf1; color: #0c5460; }

.date-input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.date-input:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}