@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto'
    
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    background: white;
    min-height: 300vh;
    overflow-x: hidden;
    font-family: 'Montserrat Alternates';
}

 @keyframes scrollBanner {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

h1 {
    position: absolute;
    white-space: nowrap; /* Prevent text from wrapping */
    font-family: 'Montserrat';
    font-weight: 1000;
    font-size: 3rem; /* Adjust size as needed */
    animation: scrollBanner 7s linear infinite;
    top: 0;
}


h2 {
    font-size: 300%;
    font-family: 'Montserrat';
    font-weight: 800;
    padding-bottom: 10px;
}

#section4 h2 {
    padding-bottom: 20px;
}

h3 {
    font-size: 500%;
    font-family: 'Montserrat';
    font-weight: 800;
    text-align: center;
    padding-top: 125px;
     
}

p {
  font-family: 'Montserrat';
  font-weight: 250; 
  font-size: 126%;
}

em {
    position: absolute;
    font-size: 123%;
    font-weight: 100;
    right: 9;
    padding-top: 41px;
}

/* Header & Logo */
header {
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
    background-color: white;
    z-index: 1000;
}

#logo {
    padding-top: 10px;
    width: 100px; /* Adjust size as needed */
    z-index: 1000; /* Ensures it stays above other content */
}


#logo2 {
    width: 100px;
    padding-bottom: 20px;
}

/* Section Styles */
section {
    min-height: 50vh;
    width: 100%;
    position: relative;
    padding: 2rem;
}

#section1 {
    color: white;
    width: 104vw; /* Full viewport width */
    height: auto; /* Auto height based on image */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

#section1 img.love-home {
    width: 100%; /* Full width of section */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove bottom gap from inline images */
    transition: filter .7s ease-in-out, opacity 0.3s ease-in-out;
}

#section1 img.love-home:hover {
    filter: brightness(120%) contrast(98%);
}


#section2 {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 150px;
    
}



#sectiona img.story {
    width: 100%; /* Full width of section */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove bottom gap from inline images */
    transition: filter .7s ease-in-out, opacity 0.3s ease-in-out;
    font-size: .1rem;
}

#sectiona img.story:hover {
    filter: brightness(120%) contrast(98%);
}

#sectiona p {
 font-family: 'Montserrat';
  font-weight: 250; 
  font-size: 100%;
 padding: 20%;

}






#section4 {
    background-image: url('BEGINNING.png'); /* Replace with actual image URL */
    background-size: cover; /* Cover entire section */
    background-position: top; /* Center image */
    background-repeat: no-repeat; /* No repeating */
    height: 100vh; /* Full viewport height */
    position: relative; /* Ensures children like .overflow-container position correctly */
}


#section3  {
   height: 100vh;  
}

#section5  {
   height: 120vh;  
}

#section4 h1 {
    text-align: center;
    margin-bottom: 11px;
    color: white; /* Makes title visible against red background */
    
}

.overflow-container {
    width: 400px;
    height: 90vh; 
    display: flex;
    overflow-y: auto;  /* Allow smooth horizontal scrolling */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Smooth scrolling */
    background-color: #fff9f2;
    
}

#section7 {
    background-image: url('DEEP%20DIVE.png'); /* Replace with actual image URL */
    background-size: cover; /* Cover entire section */
    background-position: bottom; /* Center image */
    background-repeat: no-repeat; 
    padding: 20px;
    margin-bottom: 100px;
     min-height: 100vh;
}

#section7 label {
    color: #ffffff;
}

#section7 h2 {
    color: #ffffff;
}

.overflow-container2 {
    width: 400px;
    height: 90vh; 
    display: flex;
    overflow-y: auto;  /* Allow smooth horizontal scrolling */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Smooth scrolling */
    background-color: black;
    position: absolute;
    right: 0;
    
}
#section5 {
    margin: 20px;
}
.section6 {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: pink;
}

.section6 h1 {
    text-align: center;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.grid-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop layout (798px and above) */
@media screen and (min-width: 798px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        width: 70%;
        padding-top: 100px;
        padding-bottom: 100px;
        margin: 0 auto;
    }

    .grid-item {
        aspect-ratio: 1; /* Makes items square */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .grid-item h2 {
        margin-bottom: 15px;
    }

    .grid-item label {
        margin-bottom: 15px;
        display: block;
    }

    .grid-item input,
    .grid-item select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    .overflow-container2 {
        margin-right: 40px;
    }
}

/* Mobile layout (below 798px) */
@media screen and (max-width: 797px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 50px;
    }

    .grid-item {
        padding: 15px;
    }
}


.form-group2 {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 200px;
}

.form-group {
    text-align: left;
    padding: 15px;
   
}

.form-group21 {
    width: 39%;
    padding-bottom: 10%;
    color: white;
    
}



.duration-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}



/* Style for the GIF */
.love-hearts {
  position: fixed;
  bottom: 20px; /* Adjust if needed */
  right: 20px; /* Adjust if needed */
  width: 100px; /* Adjust size of the gif */
  height: auto;
  opacity: 0; /* Default to hidden */
  transition: opacity 2s ease; /* Smooth opacity transition */
  z-index: 1;
}


/* Red Box Section */
.red-box {
    
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    color: black;
    text-align: center;
    border-radius: 3px;
    font-size: 84%;
}

/* Form Styles */
#loveLogForm {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-weight: 100;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1.5rem;
    
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #FFB6C1;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #FF4B4B;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    background-color: white;
    cursor: pointer;
}

/* File Upload Styling */
/*
input[type="file"] {
    border: 2px dashed #FFB6C1;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
}
*/

/*
input[type="file"]::-webkit-file-upload-button {
    background: #FF4B4B;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
}
*/


/* Add this to your CSS */
.question-container {
    position: relative;
    width: 100%;
    height: 80vh; /* Adjusted to ensure visibility */
    display: flex;
    align-items: center;
}

.question-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; /* Add this */
    transform: translateX(100%);
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.question-slide.active {
    opacity: 1;
    visibility: visible; /* Add this */
    transform: translateX(0);
}

.next-question, .prev-question {
    position: absolute;
    top: 15%;
    transform: translateY(-50%);
    background: transparent;  /* Remove the background */
    border: none;
    font-size: 2rem;
    color: black;  /* Changed to black for better visibility */
    cursor: pointer;
    padding: 1rem;
    z-index: 1000;
}

.next-question {
    right: 20px;
}

.prev-question {
    left: 20px;
}

/* Three Words Input Group */
#word1, #word2, #word3 {
    margin-bottom: 0.5rem;
}

/* Duration Input Group */
#duration {
    width: 150px;
    margin-right: 1rem;
    display: inline-block;
}

#time-unit {
    width: 150px;
    display: inline-block;
}

/* Submit Button */
button[type="submit"] {
    background: #FF4B4B;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 2rem;
    width: 200px;
    align-self: center;  
}

button[type="submit"]:hover {
    background: #c42a2a;
}

/* Responsive Design */
@media (max-width: 768px) {
    #loveLogForm {
        padding: 1rem;
    }
    
    .overflow-container2 {
      height: 65vh;   
    }
    .form-group21 {
    width: 39%;
    position: absolute;
    bottom: 0;
    }
    .red-box {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    input[type="number"],
    #time-unit {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}


#thankyou, #thankyou2 {
    width: 60%;
    display: flex;
    justify-content: center; /* Centers the content horizontally */
    align-items: center; /* Centers the content vertically */
    margin: 0 auto; /* Center the container itself */
}

@media only screen and (min-width: 768px) {
    #thankyou, #thankyou2 {
        flex-direction: row; /* Align images horizontally */
        width: 40vw; /* Make sure each container takes the full screen width */
        height: auto; /* Adjust height based on content */
    }

    #thankyou img, #thankyou2 img {
        width: 40%; /* Set each image to take up 50% of the container's width */
        height: auto;
    }
}

