/* Main Layout */
.index-container {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    gap: 140px; 
    margin: 30px 20px; 
}

.scrolling-message {
    background-color: #343a40; 
    color: #ffffff; 
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 5px 0;
    width: 100%;
    position: relative; 
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Welcome Section (Left Column) */
.welcome-section {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center align all child elements */
    gap: 3px; /* Space between the image, text, and buttons */
    text-align: center; /* Center-align text */
    padding: 20px; /* Add some padding around the container */
}

.logo-container img {
    max-width: 100px; /* Limit the size of the image */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure proper rendering */
    margin-bottom: 15px; /* Space below the image */
}

.welcome-message {
    text-align: center; /* Center-align the welcome text */
    margin-bottom: 15px; /* Space below the message */
}

.action-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center-align buttons */
    gap: 15px; /* Space between buttons */
    margin-top: 20px; /* Space above the buttons */
}

.register-section, .login-section {
    text-align: center; /* Center-align individual sections */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-register {
    background-color: #007bff;
    color: #fff;
    transition: background-color 0.3s;
}

.btn-register:hover {
    background-color: #0056b3;
}

.btn-login {
    background-color: #28a745;
    color: #fff;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #1c7430;
}


/* News Alert Section (Right Column) */
.alert-info {
    width: 100%;
    max-width: 500px; 
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    padding: 15px; /* Ensure content starts within the container */
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left; 
    max-height: 335px; /* Limit the height of the container */
    overflow: hidden; /* Prevent content from exceeding max height */
}

/* Flexbox Container Styling */
.index-container > div {
    flex: 1; 
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .index-container {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        align-items: center;
    }

    .alert-info {
        max-width: 90%;
    }

    .welcome-section {
        flex: 1; /* Reset width for responsiveness */
    }
}

/* Flashing Icon for News */
.flashing-icon {
    color: #ff0000; 
    font-weight: bold;
    margin-left: 5px;
    animation: flash 0.5s infinite; 
}

@keyframes flash {
    0%, 100% {
        opacity: 1; 
    }
    50% {
        opacity: 0; 
    }
}

