body, h1, h3, p, input, label, button {
    margin: 0;
    padding: 0; /* Fixed padding reset for consistency */
    font-weight: normal;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Body Style */
body {
    background: radial-gradient(circle, #1A1E2B, #212C3C, #1B1E2C);
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Navigation Styling */
nav {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Semi-transparent white line */
    padding-bottom: 10px; /* Add some space below the nav items */
    margin-bottom: 20px; /* Space between the line and the content below */
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 100;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FA8714;
}

#visitor-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px; 
    font-weight: 300;
    margin-top: 50px;
    text-align: center;
  }
  
  #count {
    color: gray; 
    font-size: 42px;
    font-weight: 500; 
  }

/* Heading Styles */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 64px;
    color: white;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    max-width: 1200px; /* Set a max-width for larger screens */
    margin-left: auto;
    margin-right: auto;
}

h2, 
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 48px;
    color: #FA8714;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

h3 {
    font-size: 28px;
    text-transform: uppercase;
}

.orange {
    color: #FA8714;
}

.intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px; 
    font-weight: 100;
    margin: 0 20px 50px;
}

/* Main content container */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 20px;
}


/* Input Group Styling */
/* Roast form section */
#roast-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.input-group {
    background-color: rgba(26, 30, 43, 0.8);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
    width: 80%;
    max-width: 600px;
}

label {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    padding: 20px;
}

input[type="text"], input[type="file"] {
    width: calc(100% - 20px);
    padding: 10px;
    font-size: 18px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border: none;
    border-radius: 15px;
    margin-bottom: 10px;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Checkbox Group Styling */
.checkbox-group {
    margin-bottom: 20px; /* Space below the checkbox group */
    display: flex;
    align-items: center;
    font-size: 18px; /* Size of the checkbox label text */
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px; /* Space between checkbox and text */
    accent-color: #FA8714; /* Optional: matches button color */
}

.checkbox-group label {
    font-size: 18px; /* Font size for the checkbox label */
    text-transform: none; /* Ensure text is not uppercase */
    margin: 0; /* Remove default margin for label */
}

textarea {
    width: calc(100% - 20px);
    padding: 10px;
    font-size: 18px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border: none;
    border-radius: 15px;
    margin-bottom: 10px;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
/* Button Styles */
button {
    background-color: #FA8714;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
    display: block; /* Changed from inline-block to block */
    margin-left: auto; /* Center the button */
    margin-right: auto;
}

button:hover {
    background-color: white;
    color: #E67300;
}

/* Result Section */
#result {
    background-color: rgba(26, 30, 43, 0.8);
    border-radius: 25px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-y: auto; /* Changed from 'auto' to allow vertical scrolling if needed */
    white-space: pre-wrap;
    min-height: 100px; /* Set a minimum height */
    transition: min-height 0.3s ease; /* Smooth transition for height */
}

#result p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #FFFFFF;
    font-size: 18px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#result.expanded {
    min-height: 200px; /* Double the original size of 100px */
    transition: min-height 0.3s ease; /* Smooth transition */
}

/* Section from Menu styles */
.section-toggle {
    cursor: pointer;
    padding: 18px 30px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 400;
    border-radius: 25px;
    background-color: white; 
    position: relative;
}

.section-toggle:after {
    content: '\002B'; /* Unicode character for "plus" sign (+) */
    color: #E67300;
    position: absolute;
    font-weight: bold;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.section-toggle.active:after {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
}

.section-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out, padding 0.3s ease-out;
    background-color: white;
}

.section-content.active {
    padding: 0px 30px 20px; /* Add padding when active */
}

#how-it-works,
#testimonials,
#faq,
#about {
    background-color: white;
    border-radius: 25px;
    overflow: hidden;
    margin: 5px 0;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    height: 60px; /* Set a fixed height for collapsed state */
    transition: height 0.3s ease-out;
}

#how-it-works.active,
#testimonials.active,
#faq.active,
#about.active {
    height: auto; /* Allow height to adjust when active */
}

#how-it-works li,
#testimonials p,
#faq dl,
#about p,
h4 {
    color: black;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.5;
}

#faq dt {
    font-weight: 600;
    margin-top: 15px;
}

#about p {
    margin-bottom: 10px;
}

.testimonial p {
    font-size: 16px;
    font-style: italic;
}

/* Modal styles */
.modal {
    position: fixed;
    color: black;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }

  .modal-content {
    background-color: #fefefe;
    border-radius: 25px;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    max-height: 80vh; /* Limit height to viewport height */
    overflow-y: auto; /* Add scroll if content exceeds max height */
  }

  
  .modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }
  
  .modal-actions button {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .modal-actions button:first-child {
    background-color: #f0f0f0;
  }
  
  .modal-actions button:last-child {
    background-color: #4CAF50;
    color: white;
  }


/* Sharing Info Styles */
#sharingInfo {
    background-color: rgba(26, 30, 43, 0.8);
    border-radius: 25px;
    padding: 20px;
    margin-top: 20px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: white;
    text-align: center;
}

#sharingInfo a {
    color: #FA8714;
    text-decoration: none;
    word-break: break-all;
}

#sharingInfo a:hover {
    text-decoration: underline;
}

/* Ensure consistency with other input groups */
.input-group, #result, #sharingInfo {
    background-color: rgba(26, 30, 43, 0.8);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
    width: 100%;
    max-width: 600px;
}

  /* Additional Roast Prompt Styles */
#additionalRoastPrompt {
    text-align: center; 
    margin-top: 50px; 
    font-family: 'Montserrat', sans-serif;
}

#additionalRoastPrompt p {
    font-size: 20px; /* Larger font size for the text */
    margin-bottom: 20px; /* Space below the text */
}

#additionalRoastPrompt button {
    background-color: #FA8714;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 50px;
    /* Centering the button */
    display: inline-block;
    margin-top: 20px; /* Space above the button */
}



/* Footer styles */
.footer {
    margin-top: auto; /* Pushes the footer to the bottom of the page */
    text-align: center;
    padding: 20px 10px 30px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between text and logo */
}

.footer-text {
    margin: 5px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.footer-link {
    color: #FA8714; /* Match the button color */
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-logo {
    height: 20px; /* Adjust the size of the logo as needed */
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        font-size: 16px; /* Adjust font size for small screens */
    }

    nav {
        padding-bottom: 5px; /* Less padding on smaller screens */
    }

    nav ul {
        flex-wrap: wrap; /* Allow items to wrap on smaller screens */
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px; /* Adjusted margins for wrapped items */
    }

    nav ul li a {
        font-size: 16px;
    }

    h1 {
        font-size: 56px; /* Smaller font size for headings on small screens */
    }

    button {
        font-size: 18px; /* Smaller font size for buttons */
        padding: 10px 20px; /* Adjust button padding */
    }

    .input-group, #result, #sharingInfo, #how-it-works, #testimonials, #faq, #about {
        width: 90%;
        padding: 15px;
    }

    #sharingInfo {
        font-size: 16px;
    }
}

