/* main.css */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Scroll image */
.scroll-image {
    width: 100%;
    height: auto;
    opacity: 0; /* Start as hidden */
    margin-bottom: 30px;
}

/* Text box styling */
.text-box {
    width: 90%;
    max-width: 1000px;
    background: white;
    border: 2px solid #ff7e5f;
    border-radius: 20px;
    padding: 50px;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    line-height: 1.5;
    box-sizing: border-box;
}

.image-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.placeholder-image {
    width: 150px;
    height: 150px;
    background-color: #e0e0e0;
    border-radius: 50%;
    border: 2px solid #ff7e5f;
    overflow: hidden;
    object-fit: cover; /* Ensures the image fits nicely within the circle */
}

.cursor {
    color: white;
    animation: blink 1s step-end infinite; /* Slower blinking cursor */
    font-size: 100px;
    visibility: visible;
  }
.moving-up {
    animation: moveUp 2s ease-in-out forwards; /* Apply the animation */
    position: relative; /* Ensure the element's position can change */
  }

.transparent-box {
    width: 30%; /* 30% of the screen width */
    height: 30%; /* 30% of the screen height */
    background-color: rgba(255, 255, 255, 0); /* Transparent background */
    position: absolute; /* Absolute positioning for centering */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust to center the box */
    border-radius: 10px;
    /* border: 2px solid rgba(0, 0, 0, 0.5); */ /* Removed the border */
}


.text-based-link {
    position: relative; /* For positioning the pseudo-element */
    color: #ff7e5f; /* Default color */
    font-weight: bold; /* Bold text for prominence */
    text-decoration: none; /* Remove the default underline */
    padding: 5px 10px; /* Padding around the text */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for transform and color */
    display: inline-block; /* Make the element inline-block for the transform to work */
}

/* Hover effect for the text-based link */
.text-based-link:hover {
    color: #feb47b; /* Change color on hover */
    transform: scale(1.1) translateY(-5px); /* Pop-out effect with slight vertical translation */
    font-weight: bolder; /* Make the text bolder on hover */
}

/* Underline animation on hover */
.text-based-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff7e5f; /* Color of the underline */
    transition: width 0.3s ease-in-out; /* Smooth transition for the underline width */
    transform: translateX(-50%); /* Center the underline */
}

.text-based-link:hover::after {
    width: 80%; /* Expand the underline on hover */
}



.fade-in {
    animation: fadeIn 1.5s forwards;
}




/* FAQ box styling */
.faq-box {
    width: 90%;
    max-width: 800px;
    background: #f9f9f9;
    border: 2px solid #ff7e5f;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    box-sizing: border-box;
}

/* FAQ item styling */
.faq-item {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #000000;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-content {
        padding-top: 60px; /* Reduce top padding for smaller screens */
    }

    .text-box {
        width: 95%; /* Allow more flexibility for smaller screens */
        padding: 30px; /* Reduce padding */
        font-size: 18px; /* Smaller font size for mobile */
    }

    .faq-box {
        width: 95%; /* Allow more flexibility for smaller screens */
        padding: 30px; /* Reduce padding */
    }

    .faq-item {
        padding: 8px; /* Adjust padding for smaller screens */
        font-size: 16px; /* Smaller font size for mobile */
    }
}

@media (max-width: 480px) {
    .text-box {
        font-size: 16px; /* Even smaller font size for mobile */
        padding: 20px; /* Reduce padding even further */
    }

    .faq-box {
        width: 100%; /* Make the FAQ box take full width */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .faq-item {
        padding: 6px; /* Reduce padding further */
        font-size: 14px; /* Smaller font size */
    }
}
