/* Importing a fun Google Font */
@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background image setup */
body {
    font-family: 'Chewy', cursive; /* Fun and friendly font */
    background: url("/resources/background.jpeg") no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Overlay for readability */
.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Title Container */
.title-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* Fun Main Title */
.main-title {
    font-size: 40px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 10px;
}

/* Counters Layout */
.counters-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    width: 90%;
}

/* Each Counter Box */
.counter-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

/* Button and input styles */
input, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

button {
    background: #ff6600;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #e65c00;
}

/* Image styling */
.clickableImage {
    width: 150px;
    cursor: pointer;
    transition: transform 0.2s;
}

.clickableImage:active {
    transform: scale(1.1);
}

/* Login Icon */
#login-icon-container {
    margin-top: 20px;
}

#login-icon {
    width: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

#login-icon:hover {
    transform: scale(1.1);
}

/* Hidden class for toggling visibility */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .counters-container {
        flex-direction: column;
        align-items: center;
    }

    .main-title {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 26px;
    }

    .counter-box {
        padding: 15px;
    }

    .clickableImage {
        width: 120px;
    }

    button {
        font-size: 14px;
    }
}

/* General Button Styling */
input, button {
    width: 100%; /* Keep full width for login form buttons */
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

/* Fix Logout Button */
#logout-button {
    width: auto;  /* Adjust width to fit content */
    padding: 10px 20px;  /* Provide better spacing */
    display: inline-block;  /* Prevent full width */
    margin-top: 15px;
}

