body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #007ced;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    justify-items: center;
    width: 100%;
    max-width: 1300px;
}

.clock {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.digital-clock {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

h3 {
    margin: 5px 0;
    font-size: 14px;
}

.flag {
    width: 35px;
    height: auto;
    margin: 5px 0;
}

p {
    margin: 5px 0;
    font-size: 12px;
}

.date {
    font-size: 11px;
    color: #555;
}

h1 {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    margin-left: 0;
    width: 100%;
    text-align: center;
    font-size: 22px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
    }

    .clock {
        width: 130px;
    }

    h1 {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .clock {
        width: 120px;
    }

    .flag {
        width: 25px;
    }

    .digital-clock {
        font-size: 14px;
    }

    h1 {
        font-size: 16px;
    }
}