/* styles.css */

/* Import Oswald Font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&display=swap');

body {
    font-family: 'Oswald', sans-serif; /* Apply Oswald font */
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, black, red);
    color: white;
    text-align: center;
    overflow: hidden; /* Ensure no scrollbars */
}

.logo {
    width: 80px; /* Adjust the size of the logo */
    margin-bottom: 20px; /* Add some space between the logo and the text */
}

h1 {
    font-size: 2rem; /* Reduce the heading size */
    margin-bottom: 15px; /* Adjust spacing */
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 20px; /* Space between buttons */
    width: auto; /* Let the button group take up only as much space as needed */
    padding: 0 5%; /* Add padding to prevent buttons from touching the screen edges */
    box-sizing: border-box; /* Ensure padding doesn't affect the width calculation */
}

.button {
    text-decoration: none;
    color: white;
    padding: 10px; /* Reduce padding */
    background-color: transparent; /* Make the button background transparent */
    border-radius: 8px;
    font-size: 1.2rem; /* Reduce font size */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transition for hover effects */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px; /* Set a fixed width for buttons */
    height: 120px; /* Set a fixed height for buttons */
    margin: 0; /* Remove extra margin */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Soft border that matches the gradient */
}

.button img {
    margin-bottom: 8px; /* Reduce margin */
    width: 50px; /* Reduce icon size */
    height: 50px; /* Reduce icon size */
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly highlight button on hover */
    border-color: rgba(255, 255, 255, 0.6); /* Change border color on hover */
}

/* Flashing effect for the heading */
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.flashing {
    animation: flash 1.5s infinite;
}

/* Responsive design for mobile devices */
@media screen and (max-width: 600px) {
    .button-group {
        justify-content: space-between; /* Ensure buttons are evenly spaced */
        width: 100%; /* Allow the button group to take full width */
        padding: 10% 10%; /* Maintain padding on small screens */
        flex-wrap: wrap; /* Allow wrapping on small screens */
    }

    .button {
        width: 100%; /* Make each button take up 45% of the width */
        height: auto; /* Adjust height automatically */
        margin: 5px 0; /* Adjust vertical margin */
    }

    .button img {
        width: 40px; /* Further reduce icon size */
        height: 40px;
    }

    h1 {
        font-size: 1.5rem; /* Adjust heading size */
    }

    .logo {
        width: 60px; /* Adjust logo size */
        margin-bottom: 15px;
    }
}

/* Additional media query for larger screens (laptops/desktops) */
@media screen and (min-width: 601px) {
    .button-group {
        justify-content: center; /* Center the buttons */
        gap: 20px; /* Adjust the spacing between buttons */
        padding: 0 5%; /* Adjust padding to prevent buttons from touching screen edges */
        flex-wrap: nowrap; /* Ensure buttons stay in a single row */
    }

    .button {
        width: 120px; /* Keep the button width fixed */
        height: 120px; /* Keep the button height fixed */
        margin: 0; /* Remove extra margin */
    }
}

.small-back-button {
    display: block;
    margin: 20px auto 0 auto; /* Center horizontally, with some space above */
    width: 20px; /* Smaller width */
    height: 20px; /* Smaller height */
    text-decoration: none;
}

.small-back-button img {
    width: 100%; /* Make the image take up the full width */
    height: auto; /* Keep the aspect ratio */
}

/* Hover effect to give it a bit of interactivity */
.small-back-button:hover img {
    opacity: 0.8; /* Slight fade effect on hover */
}

.login-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.login-group input {
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    width: 200px;
    text-align: center;
}

.login-group button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-group button:hover {
    background-color: #0056b3;
}


