@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #1e1e2f, #3498db);
}

/* Modernized "World Clock" Text */
h1 {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
}

/* Flip Clock Frame */
.clock-container {
    background: #222;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Flip Clock */
.clock {
    display: flex;
    gap: 10px;
}

/* Flip Card */
.flip-card {
    width: 90px;
    height: 120px;
    perspective: 600px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #333;
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-weight: bold;
    backface-visibility: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.flip-back {
    transform: rotateX(180deg);
}

.flip-animate {
    transform: rotateX(180deg);
}

/* AM/PM & Timezone Flip (Sized Properly) */
.flip-card.ampm {
    width: 90px;
    height: 120px;
    font-size: 35px;
}

.flip-card.ampm .flip-front, 
.flip-card.ampm .flip-back {
    font-size: 35px;
    letter-spacing: 1px;
}

label {
    font-size: 16px;
    display: block;
    margin-top: 15px;
    color: white;
}

select, input[type="checkbox"] {
    margin-top: 5px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background: #333;
    color: white;
    outline: none;
    cursor: pointer;
    transition: 0.3s ease;
}

select:hover, input[type="checkbox"]:hover {
    background: #444;
}

select option {
    color: black;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
}

@media (max-width: 500px) {
    .flip-card {
        width: 70px;
        height: 90px;
    }

    .flip-front, .flip-back {
        font-size: 40px;
    }

    .flip-card.ampm {
        width: 70px;
        height: 90px;
        font-size: 30px;
    }

    h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }
}

#country {
    text-align: center;
    text-align-last: center;
}
