/* Import Custom Fonts */
@font-face {
    font-family: 'Cabin Sketch';
    src: url('fonts/CabinSketch-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cabin Sketch';
    src: url('fonts/CabinSketch-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* General Styles */
body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    background-color: #E7D37F;
    color: #365E32;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: 450px; /* Caps the height on desktop */
    object-fit: cover;
    display: block;
}

/* Black overlay with 20% transparency */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 20% black overlay */
    z-index: 1;
}

/* Text in the center of the Hero */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Ensure text is above the overlay */
    color: white;
    font-family: 'Cabin Sketch', cursive;
    text-align: center;
}

.hero-text h1 {
    font-size: 100px;
    margin: 0;
    line-height: 1.1;
}

.hero-text h1 span {
    display: block;
    white-space: nowrap;
}

/* Adjust font size for smaller screens */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 60px; /* Smaller font size for tablets and smaller devices */
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 55px; /* Even smaller for mobile devices */
    }
}

/* Intro Section */
.intro {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    font-size: 18px;
}

.intro h1 {
    font-family: 'Cabin Sketch', cursive;
    color: #FD9B63;
    font-size: 48px;
}

/* Three Columns */
.columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.column {
    background-color: #81A263;
    padding: 10px;
    border-radius: 8px;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the content vertically */
    align-items: center; /* Center content horizontally (if needed) */
    height: 100%; /* Allow the column to take full height */
}

.column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px; /* Space between the image and the text */
}

.column h3 {
    font-family: 'Cabin Sketch', cursive;
    color: white;
    font-size: 38px; /* Adjust font size as needed */
    margin-bottom: 30px; /* Increased margin between h3 and the image */
    margin-top: 15px;
    flex-grow: 1; /* Allow the h3 to take up available space */
    display: flex;
    align-items: center; /* Vertically align the text */
}

.column p {
    color: #E7D37F;
    font-size: 16px;
}

/* Register Section */
.register {
    background-color: #365E32;
    color: white;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
}

/* Heading */
.register h2 {
    font-family: 'Cabin Sketch', cursive;
    color: #FD9B63;
    font-size: 30px;
}

/* Ensure spacing on mobile */
@media (max-width: 600px) {
    .register {
        padding: 30px 20px;  /* Add left & right padding */
        margin: 20px auto;   /* Keep centered */
        width: 90%;          /* Prevent full width on small screens */
        max-width: 600px;    /* Ensures it doesn't stretch too wide */
        box-sizing: border-box; /* Ensures padding doesn't affect width */
    }
}

/* Input Fields - Consistent Sizing */
.register input, .register textarea {
    display: block;
    width: 80%;  /* Ensure all fields have the same width */
    margin: 10px auto;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: white;
    color: black;
    font-size: 16px;
    height: 40px;  /* Same height for consistency */
    box-sizing: border-box;  /* Ensures padding doesn't affect width */
}

/* Interest Section - Checkbox options */
.interest-options {
    display: flex;
    flex-direction: column;  /* Stack vertically */
    gap: 8px;
    margin: 10px auto;
    width: 80%;  /* Ensure this section also has the same width */
}

/* Checkbox Labels */
.interest-options label {
    display: flex;
   flex-direction: row-reverse; /* Moves checkbox to the right, text to the left */
    align-items: center;  /* Align checkbox and text horizontally */
    gap: 10px;  /* Space between checkbox and text */
    background: white;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
    font-family: Arial, sans-serif;  /* Same font family for consistency */
    cursor: pointer;
    transition: background 0.3s ease;
    color: #757575;  /* Grey text color for inputs */
    height: 40px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    padding-left: 10px; /* Add padding to text portion */
}

/* Checkbox Styling */
.interest-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #FD9B63; /* Custom checkbox color */
    margin-right: 10px; /* Adjusts space between checkbox and label text */
}

/* Button Styling */
.register button {
    background-color: #FD9B63;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.register button:hover {
    background-color: #E7D37F;
}

/* Confirmation Message */
.hidden {
    display: none;
}

#form-confirmation {
    margin-top: 15px;
    padding: 12px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 5px;
    font-weight: bold;
}



/* Footer */
footer {
    background-color: #81A263;
    padding: 10px;
    font-size: 14px;
    color: white;
}
