@font-face {
    font-family: 'Blanka';
    src: url(Blanka.otf);
}

/* Variables to better style everything */
:root {
    --primary-color: #D2C8B7;
    --font-color: #000;
    --secondary-color: #F5CE82;
    --terc-color: #F4F4F4;
    --button-color: #375A72;
    --button-color-hover:#2b485b;
    --accent-color: ##57656A;
    --font: "Raleway";
    --font-title: "Blanka";
    --fontweight-title: 700;
    --fontweight-text: 400;
    --font-size-title: 36px;
    --font-size-text: 20px;
}



* {
    font-family: var(--font);
    font-weight: 400;
}

/* Styles for both pages*/
body, html {
    margin: 0;
    padding: 0;
    color: var(--font-color); /* Text color */
    font-family: var(--font);
    background-color: var(--terc-color);
}

header {
    background-color: var(--terc-color);
    color: var(--font-color);
    padding: 0.5em;
    padding-left: 10%;
    padding-right: 10%;
    display: flex;
    place-items: center start; /* Lefts content both vertically and horizontally */
    height: 70px; /* Example height, adjust as needed */
    font-weight: 700;
    align-items: center;
}

header .menu {
    align-self: center;
    float: none;
}

header .button {
    float: right;
    text-align: center;
    font-family: var(--font-title);
}

header .link {
    font-family: var(--font-title);
    color: var(--font-color);
    text-decoration: none;
    margin: 0 10px;
}

.logo {
    width: 110px;
    height: auto;
    place-self: center;
}

header h1 {
    margin-right: auto; /*  right */
    color: var(--font-color);
    font-weight: 700;
    place-self: center;
    margin-left: -10px;
    font-family: var(--font-title);
}

p {
    font-size: 1.2em;
}

footer {
    background-color: var(--terc-color);
    color: var(--font-color);
    text-align: center;
    padding: 20px;
    position: static;
    bottom: 0;
    left: 0;
    width: auto;
    font-family: var(--font);
}

footer p {
    word-wrap: break-word;
}

.footer-content {
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
    width: auto;
}

.footer-content form {
    margin-top: 20px;
    align-items: center;
    text-align: center;
    display: block;
}

.newsletter-form input[type="email"] {
    width: 300px;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

img {
    border: none;
    border-radius: 5px;
}

embed {
    border: none;
    border-radius: 5px;
}

button {
    background-color: var(--font-color);
    color: white;
    padding: 10px 20px;
    margin: 20px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-title);
    /* Add any other common button styles here */
}

a {
    color: white;
    font-size: 16px;
    font-family: var(--font-title);
    text-decoration: none;
}

.logo {
    color: var(--font-color);
    height: 70px; /* Example height, adjust as needed */
    font-size: 36px;
    font-weight: 700;
    text-decoration: none;
}

button:hover {
    background-color: var(--button-color-hover);
}

.hero h1{
    font-weight: 800;
    font-size: 2em;
}

/* Styles for landing page*/
.index-main {
    background-color: var(--terc-color);
    color: var(--font-color);
    padding: 10px 5%;
    margin: 0 5%;
}

.intro {
    font-family:var(--font);
}

.intro h2 {
    font-size: 2em;
    font-weight: 600;
}

.intro h3 {
    font-style: italic;
    color: var(--button-color);
    font-weight: 500;
}


.divider {
    padding: 0;
    margin: 0 auto;
    margin-top: 40px;
    width: 100%;
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(91, 91, 91, 0), rgba(0, 0, 0, 0.75), rgba(91, 91, 91, 0));
}

.project {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 10%;
}

.project h2 {
    font-family: var(--font-title);
    font-size: 1.8em;
}

.project .left {
    text-align: left;
    width: fit-content;
    height: auto;
}

.project .right {
    width: fit-content;
    height: auto;
}

.project img {
    width: 400px;
    height: auto;
}

.why {
    padding: 60px 10%;
    border: none;
    width: 100%;
    box-sizing: border-box; /* Ensures padding does not add to the total width */
    display: flex;
    /*background-color: var(--primary-color);
    color: var(--secondary-color);*/
}

.why img {
    border-radius: 50px;
}

.why .icon {
    height: 450px;
    width: auto;
    text-align: center;
    margin-left: auto;
    margin-right: 1em;
    margin-bottom: 1em;
}

.why .container {
    margin: auto; /* Centers the content */
    text-align: left; /* Centers the text for focus */
}

.why .container h1 {
    font-size: var(--font-size-title);
    font-family: var(--font-title);
    margin-top: 5px;
}

.why .container h2 {
    font-family: var(--font);
    font-weight: 200;
    font-size: 24px;
    margin-bottom: 0; /* Adds space between the heading and the first paragraph */
}

.why .container p {
    font-size: 1.1em;
    font-weight: var(--fontweight-text);
}

.contact {
    background-color: var(--terc-color); /* Light background for the section */
    padding: 40px 20px;
    text-align: center;
}

.contact h2 {
    color: var(--font-color);
    font-family: var(--font-title);
    margin-bottom: 20px;
}

.contact form {
    max-width: 600px;
    margin: auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    resize: none; /* Prevent resizing of the textarea */
}

.contact button {
    background-color: var(--font-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-title);
}

.contact button:hover {
    background-color: var(--button-color-hover);
}

#successMessage {
    color: var(--font-color);
    font-size: 18px;
    font-weight: bold;
    align-items: center;
    /* Additional styling */
}


@media (max-width: 768px) {
    .contact form {
        width: 90%;
        padding: 0;
    }
}

/* Adjusting for smaller screens */
@media (max-width: 768px) {
    * {
        text-align: center;
        align-items: center;
        /* display: grid; */
    }

    header {
        padding: 0;
        height: auto;
    }

    header .logo {
        width: 90px;
        height: auto;
    }

    h1 {
        font-size: 1.2rem; /* Smaller on mobile */
    }

    p, .why p {
        font-size: 1rem; /* Smaller on mobile */
    }

    a {
        align-self: center;
    }

    .footer-content,
    .hero-section, .overview {
        flex-direction: column; /* Stack elements vertically on smaller screens */
    }

    .footer-content form {
        align-items: start center; /* Centers items when stacked */
        flex-direction: column;
        gap: 10%;
    }

    .footer-content .newsletter-form input {
        margin: 10px;
        width: 250px;
    }

    .hero-content,
    .overview-content,
    .hero-image, .overview-image, .about-content {
        margin-right: 0; /* Remove the right margin */
        width: 100%; /* Full width */
    }

    .hero-image img, .overview-image img,
    .email-signup input[type="email"], .email-signup button,
    .about-cards {
        width: 100%; /* Makes the image take full width of its container */
    }

    .email-signup button {
        margin-top: 0; /* Adjust margin top for the button */
    }

    .about-cards {
        padding: 20px; /* Adjust padding */
        flex-direction: column; /* Stack elements vertically on smaller screens */
    }

    .about-cards .overview-image {
        width: 100%;
    }
    .why {
        flex-direction: column; /* Stack paragraphs vertically */
        display: grid;
        max-width: 100%; /* Adjust max-width for various elements */
    }

    .why .icon {
        width: 100%;
    }

    .step-number, .step h3, .step p {
        font-size: smaller; /* Adjust font size for readability */
        align-items: center;
    }

    .how-it-works, .steps {
        display: grid;
        width: 100%;
        align-items: center;
    }

    .how-it-works .step {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        padding: 0;
    }
}

/*Font Styles*/
.titillium-web-extralight {
    font-family: "Titillium Web", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .titillium-web-light {
    font-family: "Titillium Web", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .titillium-web-regular {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .titillium-web-semibold {
    font-family: "Titillium Web", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .titillium-web-bold {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .titillium-web-black {
    font-family: "Titillium Web", sans-serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .titillium-web-extralight-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 200;
    font-style: italic;
  }
  
  .titillium-web-light-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .titillium-web-regular-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .titillium-web-semibold-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .titillium-web-bold-italic {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-style: italic;
  }