/* Variables to better style everything */
:root {
    --primary-color: #000000;
    --secondary-color: #eee;
    --button-color: #C5832B;
    --button-color-hover:#a8660f;
    --accent-color: #70757F;
    --background-radiant-primary: linear-gradient(to right, #ffffff, #b3b3b3);
    --background-radiant-secondary: linear-gradient(to left, #2e2727, #181818);
    --font: "Titillium Web", serif;
    --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;
    background-color: var(--primary-color); /* Background color */
    color: var(--secondary-color); /* Text color */
    font-family: var(--font);
    height: 100%; /* Full height */
    width: 100%; /* Full width */
}

header {
    background-color: var(--primary-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;
}

header .button {
    float: right;
    text-align: center;
}

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

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

footer {
    background-color: var(--primary-color);
    color: var(--secondary-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;
}

.button {
    background-color: var(--button-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    width: 150px;
    font-size: 16px;
    font-weight: var(--fontweight-title);
    /* Add any other common button styles here */
}

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



/* Styles for drawing page*/
main {
    display: grid;
    place-items: center;
    /*background-color: var(--primary-color); */
}

#cardDisplay {
    min-height: 10em; /* Adjust based on the header's height */
    text-align: center;
}

#drawCardBtn {
    margin-top: 10px;
    width: 250px;
    font-weight: 600;
    color: var(--primary-color);
}

.card {
    box-shadow: 0 3px 10px lightgrey;
    width: 250px; /* Fixed width */
    height: 400px; /* Fixed height */
    margin: 0.5em;
    border-radius: 15px;
}

.card img {
    max-width: 90%; /* Ensure the image fits within the card */
    max-height: 50%; /* Adjust based on your layout */
    object-fit: cover; /* Adjust the fit of the image within its box */
    margin: 0.5em;
    border-radius: 15px; /* Adjust this value to control the softness of the edges */
}

.card h3 {
    margin-block-start: 0.05em;
    margin-block-end: 0.2em;
    font-size: 22px;
    font-weight: var(--fontweight-title);
}

.container .quote {
    margin: 0.1em;
    font-size: 18px;
    line-height: 1.2;
}

#card-placeholder {
    box-shadow: 0 3px 10px lightgrey;
    width: 250px; /* Fixed width */
    height: 400px; /* Fixed height */
    margin: 0.5em;
    border-radius: 15px;
}

/* Styles for landing page*/
.index-main {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

#myForm {
    display: block;
}

#myForm form {
    margin-top: 20px;
    align-items: center;
    text-align: center;
}

#myForm input[type="email"] {
    padding: 12px 10px;
    margin: 8px 0;
    display: inline-block;
    border: 0px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 250px;
}

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

.hero-section {
    display: inline-flex;
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Space between text and image */
    padding: 30px 10%;
    border: none;
    width: 100%;
    box-sizing: border-box; /* Ensures padding does not add to the total width */
}

.hero-content {
    flex: 1; /* Allows the text container to grow and fill space */
    margin-right: 20px; /* Ensures space between the text and the image */
    width: 50%;
}

.hero-content h1 {
    font-family: var(--font);
    font-weight: var(--fontweight-title);
    font-size: var(--font-size-title);
    margin-block-end: 10px;
}

.hero-content p {
    font-size: var(--font-size-text);
    font-weight: var(--fontweight-text);
    margin-top: 10px;
}

.hero-image {
    width: 40%;
    height: auto;
    display: flex;
    justify-content: right; /* Right image if smaller than the container */
}

.hero-image img {
    width: 70%; /* Makes the image responsive within its container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: Adds rounded corners */

}

.hero-section a {
    text-decoration: none;
}

.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 .container {
    margin: auto; /* Centers the content */
    text-align: left; /* Centers the text for focus */
}

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

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

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

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

.about-cards {
    display: inline-flex;
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Space between text and image */
    padding: 60px 10% 10px;
    border: none;
    width: 100%;
    box-sizing: border-box; /* Ensures padding does not add to the total width */
}

.about-cards .about-content {
    flex: 1; /* Allows the text container to grow and fill space */
    margin-right: 20px; /* Ensures space between the text and the image */
    width: 70%;
}

.about-content h1 {
    font-family: var(--font);
    font-weight: var(--fontweight-title);
    font-size: var(--font-size-title);
}

.about-content p {
    font-size: var(--font-size-text);
    font-weight: var(--fontweight-text);
}

.about-cards .about-content .bullet {
    color: var(--button-color);
}

.about-cards .overview-image {
    width: 50%;
    height: auto;
    display: flex;
    justify-content: center; /* Center image if smaller than the container */
}

.about-cards .overview-image img {
    width: 100%; /* Allows the image to be responsive within its container */
    max-width: 100%; /* Ensure the image doesn't exceed its container width */
    height: auto; /* Maintain aspect ratio */
}

.how-it-works {
    padding: 60px 10%; /* Spacing around the section */
    text-align: center; /* Center-align the text */
    width: 100%;
    box-sizing: border-box; /* Ensures padding does not add to the total width */
    /*background-color: var(--primary-color);
    color: var(--secondary-color);*/
}

.how-it-works .container {
    margin: auto; /* Center the container */
}

.how-it-works h1 {
    font-size: var(--font-size-title); /* Space below the section title */
    font-family: var(--font);
    font-weight: var(--fontweight-title);
}

.steps {
    display: flex; /* Use Flexbox instead of block */
    justify-content: center; /* Centers the step cards in the container */
    gap: 20px; /* Adds space between the cards */
    padding: 20px; /* Padding around the entire steps container */
    box-sizing: border-box;
    text-align: center; /* Ensures text within each element is centered */
}

.step {
    width: calc(33.333% - 40px); /* Adjust width to account for the gap */
    height: auto;
    margin-bottom: 20px; /* Space between rows of steps */
    display: flex; /* Use Flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally within the card */
    padding: 20px; /* Adds padding inside each step card */
}

.step-number {
    display: flex; /* Allows for center alignment of the content */
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
    width: 30px;
    height: 30px;
    border-radius: 50%; /* Circular shape */
    background-color: var(--button-color); /* Theme color */
    color: var(--primary-color); /* Text color */
    font-weight: bold; /* Bold text */
    margin: 0 0 10px 0; /* Adjust margin to add space below the number */
}

.step h3 {
    margin: 10px 0; /* Space between the number/title and the description */
    font-weight: var(--fontweight-title);
    font-size: 22px;
}

.step p {
    /* Keeps the text-align: center; for the paragraph */
    margin-top: 10px; /* Space above the description */
    font-size: 18px;
}

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

    header {
        padding: 0;
        height: auto;
    }

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

    header p {
        visibility: hidden;
        width: 0;
    }

    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 */
        padding: 0;
    }

    .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;
    }
}

.consentBox { 
    background: var(--secondary-color); 
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    text-align: center; 
    transition: 400ms;
} 

.consentBox.active {
    bottom: 0;
}
  
.consentBox p { 
    color: var(--primary-color); 
    margin: 10px 0 20px 0; 
} 

.cookie-button {
    background-color: var(--button-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    width: 150px;
    font-size: 16px;
    font-weight: var(--fontweight-title);
    /* Add any other common button styles here */
}

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