/* General Styles */
body {
    background-color: rgba(109, 146, 150, 0.4); /* Background with specified color and transparency */
    display: flex;
    flex-direction: column; /* Stacking elements vertically */
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    margin: 0;
    font-family: Montserrat, 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
    color: #565050; /* Text color */
    overflow: hidden; /* Prevent vertical scrolling */
    padding: 0; /* Remove default padding */
    box-sizing: border-box; /* Ensure padding and borders are included in the total width and height */
}

/* Container Styles */
.redirect-container {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    padding: 20px 30px; /* Adjusted padding for larger size */
    border-radius: 20px; /* Rounded corners */
    text-align: center;
    width: 400px; /* Default width for larger screens */
    max-width: 90%; /* Ensure it does not exceed 90% of the viewport width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    position: relative;
}

.redirect-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 15px; /* Thicker height for the progress bar */
    background-color: #ddd; /* Light grey background */
    border-radius: 5px;
    overflow: hidden; /* Ensures loading effect stays within borders */
    margin-top: 20px; /* Spacing above the progress bar */
    margin-bottom: 10px;
}

.progress-bar-inner {
    width: 0;
    height: 100%;
    background-color: #6D9296; /* Match the background color for a consistent look */
    animation: loading 5s linear forwards; /* Smooth loading animation */
}

/* Keyframes for loading animation */
@keyframes loading {
    from { width: 0; }
    to { width: 100%; }
}

/* Redirect Note Styles */
.redirect-note {
    text-align: center; /* Center the text */
    color: #888; /* Lighter text color */
    margin-top: 10px; /* Reduced spacing above the text */
    font-size: 14px; /* Smaller font size for the note */
}

/* Link Styles */
.redirect-note a {
    color: #565050; /* Original text color */
    text-decoration: underline;
}

/* Logo Styles */
.logo {
    position: fixed; /* Fixed position at the bottom of the screen */
    bottom: 20px; /* Positioning 20px from the bottom */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Set width to auto to maintain aspect ratio */
    max-width: 90%; /* Ensure logo does not overflow the screen width */
    max-height: 10%; /* Ensure the logo scales appropriately and does not exceed 10% of the viewport height */
    opacity: 0.95; /* Slight transparency for better blending */
}

/* Responsive Adjustments */
@media (max-width: 420px) {
    .redirect-container {
        width: 90%; /* Ensure container takes up 90% of the viewport width on smaller devices */
        padding: 15px 20px; /* Adjust padding for smaller screens */
    }
}
