/* Reset default styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #000428, #004e92);
}

/* Header styling */
.header {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 1rem;
    z-index: 10;
}

/* Fullscreen container for the clock */
.fullscreen-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

.clock {
    display: flex;
    align-items: center;
    font-size: 12rem;
}

.flip-unit {
    position: relative;
    width: 300px; /* Default size for larger screens */
    height: 300px;
    margin: 0 20px;
    perspective: 1000px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Circular shape */
    transform-style: preserve-3d;
    transform: rotateX(0deg);
    transition: transform 0.6s ease-in-out;
}

.flip-card .top,
.flip-card .bottom {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    color: #fff;
    font-size: 10rem; /* Default font size */
    font-weight: bold;
    border-radius: 50%; /* Circular shape */
}

.flip-card .top {
    background-color: #112d4e;
}

.flip-card .bottom {
    background-color: #3f72af;
    transform: rotateX(180deg);
}

.separator {
    font-size: 10rem; /* Default separator font size */
    color: #dbe2ef;
    margin: 0 10px;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    width: 300px;
    color: #333;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.admin-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #3f72af;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}

input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Responsive Design */

/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .flip-unit {
        width: 200px;
        height: 200px;
    }
    .flip-card .top, .flip-card .bottom {
        font-size: 6rem;
    }
    .separator {
        font-size: 6rem;
    }
}

/* Small screens (mobile devices) */
@media (max-width: 768px) {
    .flip-unit {
        width: 150px;
        height: 150px;
    }
    .flip-card .top, .flip-card .bottom {
        font-size: 4rem;
    }
    .separator {
        font-size: 4rem;
    }
}

/* Compact mobile screens */
@media (max-width: 480px) {
    .flip-unit {
        width: 100px;
        height: 100px;
    }
    .flip-card .top, .flip-card .bottom {
        font-size: 3rem;
    }
    .separator {
        font-size: 3rem;
    }
}
