body, html {
    margin: 0;
    padding: 0;
    background-color: #141414;
    font-family: 'Arial', sans-serif; /* Use a font family that matches your design */
}

header {
    color: white;
    padding: 1em 2em; /* Adjust padding to match your design */
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px; /* Adjust the size as needed */
}

.nav-links {
    list-style-type: none;
    display: flex;
    /* Adjust the space between the links as needed */
    gap: 1em; 
}

.nav-links li a {
    color: #6E6E6E;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    text-decoration: none;
    padding: .5em 1em; /* Adjust padding to match your design */
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #aaa; /* Adjust hover color as needed */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    header {
        padding: 1em 1em; /* Reduced padding */
    }

    .navbar {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%; /* Full width */
        text-align: left;
        gap: 0em; 
    }

    .nav-links li a {
        display: block; /* Stack the links */
        font-size: 16px; /* Smaller font size */
    }
}

main {
    text-align: center;
    color: white;
}

.hero {
    padding: 4em 0; /* Adjust padding as needed */
}

.hero h1 {
    font-size: 90px;
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 0.5em;
}

.smart-flashcards {
    background: linear-gradient(to right, #22FFBD, #8E59FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline; /* or inline-block, depending on your layout needs */
  }
  

.hero .tagline {
    font-size: 35px;
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: #a1a1a1;
    margin-bottom: 2em;
    padding: 0 10%;
    /* text-align: justify; */
}

.emph {
    color: white;
}

@media (max-width: 850px) {
    .hero h1 {
        font-size: 60px;
        line-height: 1.2;
    }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .hero h1 {
        font-size: xx-large;
        line-height: 1.2;
    }

    .hero {
        padding: 1em 0;
    }

    .hero .tagline {
        font-size: large;
    }

    .hero .smart-flashcards {
        font-size: xx-large; 
    }
}


.email-signup-wrapper {
    text-align: center; /* Center the form in the wrapper */
    padding: 1em; /* Add some padding around the form */
    margin-left: 25px;
}

.email-signup-wrapper .effect {
    margin-bottom: 2em;
    margin-left: -5px;
}

.email-signup {
    display: inline-flex; /* Use inline-flex to keep form elements in line */
    border-radius: 100px; /* Adjust to match the border-radius in your design */
    overflow: hidden; /* Ensures the child elements' corners don't stick out */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Add a white inside border */
}


.email-signup .btn-primary {
    border: none;
    color: black;
    background-color: #00FFB3;
    cursor: pointer;
    border-radius: 100px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Inter', sans-serif; 
    font-weight: 400; 
    font-size: 20px;
    letter-spacing: 0.01em;
    padding: 20px;
}



.email-signup .btn-primary .icon {
    height: 1em; 
    width: 1em;
    margin-right: 0.2em; /* Add some space between the icon and the text */
    margin-bottom: 0.1em;
    vertical-align: middle; /* Aligns the icon with the text */
}

.btn-primary:disabled {
    /* Additional styles for disabled state */
    cursor: not-allowed;
    opacity: 0.5;
}


.email-signup input[type="email"] {
    border: none; /* Remove border */
    background-color: rgba(255, 255, 255, 0.0); /* Slight transparency */
    color: white; /* Text color */
    margin: 0; /* Remove margin */
    outline: none; /* Remove outline */
    font-family: 'Inter', sans-serif; /* Specify the font-family for the placeholder */
    font-weight: 500; /* Medium weight for the Inter font */
    font-size: 20px;
    padding: 20px;
}

.email-signup input[type="email"]::placeholder {
    font-family: 'Inter', sans-serif; /* Specify the font-family for the placeholder */
    font-weight: 500; /* Medium weight for the Inter font */
    font-size: 20px;
}

/* Disables updating the colour from autofill */
.email-signup input[type="email"]:-webkit-autofill,
.email-signup input[type="email"]:-webkit-autofill:hover, 
.email-signup input[type="email"]:-webkit-autofill:focus, 
.email-signup input[type="email"]:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s; /* Transition is used to delay the autofill style */
    -webkit-text-fill-color: white!important;
}



.discount-note {
    font-size: 0.9em;
    font-family: 'Inter', sans-serif; 
    font-weight: 400; 
    font-size: 15px;
    color: #6E6E6E;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .email-signup .btn-primary {
        font-size: x-small;
    }

    .email-signup input[type="email"]::placeholder {
        font-size: x-small;
    }

    .email-signup input[type="email"] {
        font-size: x-small;
    }

    .discount-note {
        font-size: x-small;
    }
}


/* Demo Image */
.demo {
    display: flex;
    justify-content: center; /* This centers the image horizontally */
    align-items: center; /* This centers the image vertically if the container has a specific height */
  }
  
.demo img {
    max-width: 100%; /* Ensures the image is responsive and doesn't overflow its container */
    height: auto; /* Keeps the image's aspect ratio intact */
    width: 80%;
}


/* Add media queries for responsiveness as needed */
.features {
    color: white;
    text-align: center;
    padding: 2em;
}

.feature-heading h2, .feature-footer h2 {
    font-family: 'Inter', sans-serif; /* Specify the font-family for the placeholder */
    font-weight: 500; /* Medium weight for the Inter font */
    font-size: 45px;
    margin-bottom: 0.5em;
    color: #6E6E6E;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .feature-heading h2 {
        font-size: large;
    }

    .feature-heading .smart-flashcards {
        font-size: large; 
    }
}

/**
  CARDS
*/
.cards-container {
    display: flex;
    justify-content: center;
    margin: 0 auto; /* It makes the content horizontally centered? Why? dunno */
    margin-top: 48px;
    width: 80%;
    gap: 20px; /* Adjust the space between the large card and the stack */
}

.card {
    background-color: #232529; /* Replace with the actual card color from your design */
    border-radius: 8px; /* Adjust to match your design */
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Optional shadow for depth */
    /* padding: 30px; */
    display: flex; /* Enable flexbox layout */
    flex-direction: column; /* Stack the child elements vertically */
    justify-content: space-between; /* Distribute space between items */
}


.card h3 { 
    padding-inline: 30px;
    text-align: left;
    font-family: 'Inter', sans-serif; /* Specify the font-family for the placeholder */
    font-weight: 500; /* Medium weight for the Inter font */
    font-size: 35px;
    color: #6E6E6E;
}

.card.emph {
    color: #D9D9D9;
}

.card p { 
    text-align: left;
    font-family: 'Inter', sans-serif; /* Specify the font-family for the placeholder */
    font-weight: 500; /* Medium weight for the Inter font */
    font-size: 35px;
    color: #6E6E6E;
}

.card.large {
    /* Keep previous styles for the large card */
    /* Adjust flex property if needed, for example: */
    flex: 1 1 50%; /* flex-grow | flex-shrink | flex-basis */
}

.card-image {
    margin-top: 32px; /* Space above the icon */
    width: 100%; /* Ensure the image covers the card */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Ensure the image corners are rounded like the card */
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Adjust the space between the stacked cards */
    /* Adjust flex property if needed, for example: */
    flex: 1 1 50%; /* flex-grow | flex-shrink | flex-basis */
}

.card.small {
    flex: 1; /* Takes up the default amount of space */
    /* Adjust the size as needed */
}

.card-icon {
    padding-inline: 32px;
    width: 48px; /* Width of the icon */
    height: 48px; /* Height of the icon */
    margin-top: 32px; /* Space above the icon */
}

/* Additional responsive styling if needed */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
    }
    .card.large, .cards-stack {
        flex: none;
        width: 100%; /* Make cards full width on smaller screens */
    }

    .card h3 {
        font-size: 25px;
    }

    .card-icon {
        width: 40px; 
        height: 40px;
    }
}

@media (max-width: 1168px) {
    .cards-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .card h3 {
        font-size: smaller;
    }

    .card-icon {
        margin-top: 1em;
        width: 32px; 
        height: 32px;
    }
}

/** 
    FAQ 
*/

.faq-section {
    color: white;
    justify-content: center;
    margin: 0 auto; /* It makes the content horizontally centered? Why? dunno */
    font-family: 'Inter', sans-serif; /* Specifying the font-family */
    font-weight: 500; /* Medium weight for the Inter font */
    padding: 32px;
    margin-top: 48px;
}

.smart-question {
    background: linear-gradient(to right, #22FFBD, #35E3E8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline; /* or inline-block, depending on your layout needs */
  }

.faq-header {
    margin-bottom: 1em;
}

.faq-header h2 {
    margin: 0;
    font-size: 45px;
    font-weight: 500;
    color: #6E6E6E; /* Text color for the heading */
}

.faq-container {
    width: 80%;
    margin: 0 auto; /* It makes the content horizontally centered? Why? dunno */
    display: flex; /* Enable flexbox layout */
    flex-direction: row; /* Stack the child elements vertically */
    justify-content: space-between; /* Distribute space between items */
    align-items: baseline;
}

.faq-title {
    flex: 1 1 20%; /* flex-grow | flex-shrink | flex-basis */
}

.faq-title h2 {
    font-size: 45px;
    font-weight: 500;
    text-align: left;
    color: #FFFFFF; /* Text color for the heading */
}

.faq-list {
    flex: 1 1 80%; /* flex-grow | flex-shrink | flex-basis */
}

.faq-item {
    border-bottom: 1px solid #444; /* Divider between question and answer */
}

.faq-question {
    font-size: 45px;
    font-weight: 500;
    color: #FFFFFF; /* Text color for the heading */

    text-align: left;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding-top: 20px;
    padding-bottom: 20px;
    
    display: flex;
    justify-content: space-between; /* Align text to the left and icon to the right */
    align-items: center; /* Center items vertically */
    width: 100%; /* Use the full width of the button's container */
    padding: 1em; 
}


.faq-question .icon {
    height: 32px;
    width: 32px;
    margin-left: auto;
    vertical-align: middle; /* Aligns the icon with the text */
}

.icon-rotate {
    transform: rotate(180deg); /* Rotates the icon 180 degrees */
    transition: transform 0.3s ease; /* Smooth transition for the rotation */
  }
  

.faq-answer {
    display: none;
    text-align: left;
    padding-inline: 10px;
    padding-bottom: 20px;
}

.faq-answer p {
    margin: 0;
    color: #a7a7a7;
    font-size: 20px;
    font-weight: 300;
}

@media (max-width: 1024px) {

    .faq-section {
        margin-top: 24px;
    }

    .faq-header h2 {
        font-size: 40px;
    }

    .faq-title h2 { 
        font-size: xx-large;
    }

    .faq-answer p { 
        font-size: large;
    }

    .faq-question {
        font-size: xx-large;
    }

    .faq-question .icon {
        height: 24px;
        width: 24px;
    }
}

/* Additional responsive styling if needed */
@media (max-width: 768px) {

    .faq-section {
        margin-top: 0px;
    }

    .faq-header h2 {
        font-size: large;
    }

    .faq-title h2 { 
        font-size: medium;
    }

    .faq-answer p { 
        font-size: small;
    }

    .faq-question {
        font-size: medium;
    }

    .faq-question .icon {
        height: 16px;
        width: 16px;
    }
}


/**
    DOWNLOADS
*/

.download-section {
    color: #d9d9d9;
    text-align: center;
    width: 80%;
    margin: 0 auto; /* It makes the content horizontally centered? Why? dunno */
    padding: 4em 0;
}

.download-section h2 {
    font-size: 45px;
    font-weight: 500;
    font-family: 'Inter', sans-serif; /* Specify the font-family for the placeholder */
    margin-bottom: 0.5em;
}

.download-section h3 {
    font-size: 35px;
    font-weight: 500;
    font-family: 'Inter', sans-serif; /* Specify the font-family for the placeholder */
    color: #a1a1a1;
    margin-bottom: 2em;
}

/* Additional responsive styling if needed */
@media (max-width: 768px) {
    .download-section h2 {
        font-size: 28px;
    }

    .smart-flashcards .download-section {
        font-size: 28px;
    }

    .download-section h3 { 
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .download-section h2 {
        font-size: 20px;
    }

    .smart-flashcards .download-section {
        font-size: 20px;
    }

    .download-section h3 { 
        font-size: 16px;
    }
}


footer {
    color: white;
    padding: 1em 0;
    text-align: center;
}

footer p {
    margin: 0;
    margin-bottom: 1em;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 1em;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.sign-up-complete {
    margin: 3em;
}

.sign-up-complete h1 {
    font-size: 40px;
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.sign-up-complete p {
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}