* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    width: 100%;
}

@media (max-width: 680px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .salah-time {
        width: 100%;
    }
}

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin: 10px;
}

.clock {
    width: 450px;
    height: 450px;
    background-color: lightgray;
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.clock::before {
    content: "";
    width: 450px;
    height: 450px;
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 10px 10px rgba(130, 142, 132, 0.2);
    z-index: -1;
}

@media (max-width: 680px) {
    .clock {
        width: 300px;
        height: 300px;
    }

    .clock::before {
        width: 300px;
        height: 300px;
    }
}

.number {
    transform: rotate(calc(30deg * var(--n)));
    position: absolute;
    text-align: center;
    inset: 20px;
    font-size: 40px;
    text-shadow: 0 0 12px rgb(108, 99, 99);
}

@media (max-width: 680px) {
    .number {
        inset: 8px;
        font-size: 30px;
    }
}

.number b {
    transform: rotate(calc(-30deg * var(--n)));
    display: inline-block;
}

.center-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: red;
    border: 6px solid black;
    border-radius: 50%;
}

.hour-hand, .minute-hand, .second-hand {
    --rotate: 0;
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%) rotate(calc(var(--rotate) * 1deg));
    transform-origin: bottom;
    border-radius: 30px 30px 0 0;
}

.hour-hand {
    width: 12px;
    height: 130px;
    background: linear-gradient(#00d9ff, #ee00ff);
}

.minute-hand {
    width: 12px;
    height: 190px;
    background: linear-gradient(to top, #00d9ff, #ee00ff);
}

.second-hand {
    width: 6px;
    height: 210px;
    background: linear-gradient(to top, #00d9ff, #ee00ff);
}

@media (max-width: 680px) {
    .hour-hand {
        height: 80px;
    }

    .minute-hand {
        height: 105px;
    }

    .second-hand {
        height: 120px;
    }
}

.mosque-info {
    text-align: center;
}

.digital-clock {
    text-align: center;
    font-size: 1em;
}

#time {
    font-size: 3em;
}

#date {
    font-size: 1.2em;
}

.salah-time {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown {
    margin: 20px;
}

#countdown-timer {
    font-size: 3.5em;
    color: #3a82f7;
}

@media (max-width: 680px) {
    #countdown-timer {
        font-size: 2.05em;
        text-align: center;
        margin: 0;
    }

    .countdown {
        margin: 0;
    }
}

table {
    width: 90%;
    border-collapse: collapse;
    margin-top: 10px;
    height: 70%;
}

thead {
    background: black;
    color: white;
    text-align: left;
}

thead th {
    padding: 10px;
    font-size: 1.5em;
}

tbody td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: large;
}

@media (max-width: 680px) {
    thead th,
    tbody td {
        font-size: 1em;
        padding: 5px;
    }
}
