*,
*::before,
*::after {
  box-sizing: border-box;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); 
    z-index: -1;
}

/*Adding some styling to the body*/
body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 18px;
    color: #000;
    background-image: url('../Pictures/trees.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    will-change: opacity;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1100px;
    width: 100%;
    border: none;
    padding: 30px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.80);
}

/*Applying a font to the headings througout the document*/
h1, h2, h3 {
    font-family: 'Roboto Condensed', 'Segoe UI', sans-serif;
    color: #000;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
h1 {
    font-size: 36px;
    color: #1c1c1c;
    margin-bottom: 20px;
}

/*Adding style to the header*/
header {
    background: linear-gradient(to right, #2b2b2b, #3a3a3a);
    padding: 20px;
    border-radius: 10px;
    color: white;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 4px 10px rgba(0, 0, 0, 0.3);
}
/*Using flexbox to adjust the navigation bar to be in a row and centering it*/
nav ul {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/*Adding styles to the navigation*/
li a {
    background-color: #2b2b2b;
    color: black;
    text-decoration: none;
    border-radius: 230px;
    font-size: 25px;
    font-weight: bold;
}
/*adjusting the navigation */
nav li a {
    background-color: #2b2b2b;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

nav li {
    list-style: none;
}

nav a:hover {
    color: #F3DE8A;
}

/*---------------Styling the preparing page--------------------*/

/*Remoing the the bullets from the lists*/
li {
    list-style-type: none;
}

/*Using a class with flexbox to adusts the lists side by side on the preparing page*/
.prepList {
   display: flex;
   flex-direction: row;
   justify-content: center;
   padding: 10px;
}
/*Using a class to style the h3's on the preparing page*/
.prepHead {
    background-color: #2b2b2b;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/*Adding a border with styles to the preparing page*/
.listBorder {
    border: 3px solid #2b2b2b;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    margin: 0 15px; 
    color: #1c1c1c; 
    font-weight: 600; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/*Adjusting the padding for the lists in the preparing page to get them to fit in the box better*/
.listItems {
    padding: 10px;
    text-align: center;
}

/*-------------Styling the home page----------------*/

/*Adding padding and margin to the text on the page*/
.homeCom {
    padding: 10px;
    margin: 20px;
}

.homeCom h2 {
    text-align: center;
}

/*Adjusting the picture on the home page*/
.homePic {
   text-align: center;
}
/*Adding a border to the home picture*/
.balloonPic {
    border: 6px solid #2b2b2b;
    border-radius: 8px;
    width: 500px;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.15), 
        0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.balloonPic:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 8px 14px rgba(0, 0, 0, 0.2), 
        0 14px 28px rgba(0, 0, 0, 0.15);
}

/*Using a --dependent-- class to align the h3 on the home page to center it under the image*/
h3.headAdjust {
    text-align: center;
}

.footDesign {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/*-------------Adding hyperlinks to the nav---------------- */
nav li a:hover {
    color: #F3DE8A;
}

/*------------Adding Style to the form---------------*/

/*Styling the form*/
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}
/*Styling the fonts*/
label, legend {
    font-size: 16px;
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 5px;
}
/*Changing the color of the border*/
fieldset {
    border: 2px solid #2b2b2b;
    border-radius: 8px;     
    padding: 15px 20px 20px;    
    margin-bottom: 20px;     
    background: #fafafa;    
}

/* Inputs and selects style */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
    padding: 10px 12px;
    font-size: 16px;
    border: 2px solid #2b2b2b;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #205e51;
    outline: none;
}

/* Checkbox and radio inputs spacing */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Label for checkboxes and radios */
input[type="checkbox"] + label,
input[type="radio"] + label {
    font-weight: 500;
    cursor: pointer;
}


.form-buttons {
    margin-top: 20px;       
    display: flex;
    gap: 15px;                 /* More space between buttons */
    justify-content: flex-start; 
}

/*Styling the submit and reset button*/
.submit, .reset {
    background-color: #2b2b2b;
    color: white;
    padding: 12px 28px;        /* Slightly wider buttons */
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit:hover, .reset:hover {
    background-color: #444;
    color: #F3DE8A;
    transform: translateY(-2px);
}

/*Adding padding to each item on the form to give it some space*/
.formSpace {
    padding: 5px;
}

.container,
.listBorder,
form,
.homeCom,
.listItems {
    color: #111;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

/*Container box-shadow */
.container,
form,
.listBorder {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.listBorder:hover,
form:hover,
.container:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

* {
    transition: all 0.3s ease-in-out;
}

/*------------Responsive Design-----------------*/

/*Media for a smaller screen like a phone*/
@media screen and (max-width: 650px) {
    body {
        width: 100%;
        font-size: 16px;
        padding: 10px;
    }

    .container {
        width: 100%;
        padding: 15px;
    }

    h1, h2, h3 {
        width: 100%;
        font-size: 25px;
        text-align: center;
    }

    header {
        width: 100%;
        height: auto;
        padding: 15px;
        border-radius: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
        padding: 0;
        margin: 0;
        margin: 10px 0;
    }

    nav li{
        width: 100%;
        text-align: center;
    }

    nav li a {
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
        padding: 12px 20px;
        font-size: 18px;
        margin-bottom: 10px;
        background: none;
    }

    .homeCom p{
        text-align: center;
    }

    .prepList {
        flex-direction: column; 
        align-items: center;
        padding: 0;
        gap: 16px; 
    }

    .listBorder {
        width: 100%;
        margin: 0 10px;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .prepHead{
        font-size: 16px;
        padding: 8px;
        margin: 15px 0;
    }

    .listItems {
        padding: 8px;
    }

    .listItems li {
        font-size: 15px;
        padding: 4px 0;
    }

    form {
        width: 100%;
        padding: 15px;
    }

    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .submit, .reset {
        width: 100%;
    }

    .homeCom {
        width: 90%;
        padding: 10px;
    }
    .homePic{
        width: 100%;
        padding: 10px;
    }

    .balloonPic {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .picFlex {
        flex-direction: column;
    }

    /* Smaller and more compact description terms */
    dl{
        max-width: 100%;
        padding: 10px;
    }

    dt a{
        width: 100%;
        font-size: 22px;
        padding: 10px 5px;
        text-align: center;
    }

    dd {
        font-size: 20px;
        font-weight: 500;
        text-align: center;
        margin: 0;
    }

    dl img{
        margin-bottom: 10px;
    }

    .picFlex figure {
        width: 100%;
        margin: 0;
    }

    .picFlex img {
        width: 100%;
        height: auto;
        max-width: none;
        border: 5px solid #2b2b2b;
        border-radius: 6px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    footer {
        width: 100%;
        padding: 15px;
        font-size: 15px;
        text-align: center;
    }
  
  

}

