/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Root variables for colors */
:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
    --box-shadow-color: rgba(0, 0, 0, 0.1);
    --box-background-color: white;
    --color1: #1e90ff;
    /* DodgerBlue */
    --color2: #32cd32;
    /* LimeGreen */
    --color3: #ff1493;
    /* DeepPink */
    --color4: #ff6347;
    /* Tomato */
    --color5: #9370db;
    /* MediumPurple */
}

/* Page styles */

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

main {
    padding: 1rem;
}

/* Container styles */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Bento box styles */

.bento-box {
    background-color: var(--box-background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--box-shadow-color);
    width: 200px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
}

.bento-box:hover {
    transform: scale(1.05);
}

.bento-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.bento-box h2 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.bento-box p {
    color: #555;
}

.bento-box:nth-child(5n+1) {
    background-color: var(--color1);
    color: white;
}

.bento-box:nth-child(5n+2) {
    background-color: var(--color2);
    color: white;
}

.bento-box:nth-child(5n+3) {
    background-color: var(--color3);
    color: white;
}

.bento-box:nth-child(5n+4) {
    background-color: var(--color4);
    color: white;
}

.bento-box:nth-child(5n+5) {
    background-color: var(--color5);
    color: white;
}

/* Utility Styles */

.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.loading-text {
    font-size: 24px;
    margin-bottom: 20px;
    color: #000;
}

.stars {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.star {
    position: absolute;
    opacity: 0;
    animation: starAnimation 1.5s infinite ease-in-out;
}

.star:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0.1s;
    color: var(--color1);
}

.star:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.3s;
    color: var(--color2);
}

.star:nth-child(3) {
    bottom: 15%;
    left: 25%;
    animation-delay: 0.5s;
    color: var(--color3);
}

.star:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 0.7s;
    color: var(--color4);
}

.star:nth-child(5) {
    top: 30%;
    left: 40%;
    animation-delay: 0.9s;
    color: var(--color5);
}




#error-bar {
    display: none;
    position: fixed;
    top: 40px;
    width: 100%;
    background-color: red;
    color: white;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
}

/* Animation */

@keyframes starAnimation {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

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