.kamus-page {
    text-align: center;
    padding: 40px;
    color: #F5F5F5;
}

.abjad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-top: 20px;
}

.abjad-item {
    background-color: #2d2d2d;
    border: 2px solid #007BFF;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    width: 200px;
    height: 250px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
}

.abjad-item:hover {
    transform: scale(1.08);
    background-color: #007BFF;
}

.abjad-item h2 {
    margin-bottom: 20px;
    font-size: 26px;
    color: #ffffff;
    text-shadow: 1px 1px 4px #000;
}

.abjad-item img {
    width: 100%;
    max-width: 150px; /* Limit image width */
    height: auto;
    object-fit: contain; /* Ensure image fits within container */
    border-radius: 12px;
}

@media only screen and (max-width: 600px) {
    .abjad-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .abjad-item {
        width: 150px;
        height: 200px;
    }

    .abjad-item h2 {
        font-size: 22px;
    }

    .abjad-item img {
        max-width: 120px; /* Adjust image size for smaller screens */
    }

}

/* Default (Dark Mode) */
.clock-container {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    color: #ffffff; /* Warna teks untuk mode gelap */
    font-family: 'Arial', sans-serif;
    text-align: center;
    position: absolute;
    top: 10px;
    right: 10px;
}

.date {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: normal;
    letter-spacing: 0.5px;
    opacity: 0.8; /* Beri transparansi pada teks */
}

.clock {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Light Mode */
body.light-mode .clock-container {
    color: #2c2c2c; /* Warna teks untuk mode terang */
}

body.light-mode .date {
    opacity: 1; /* Tingkatkan visibilitas di mode terang */
}

body.light-mode .clock {
    font-weight: bold;
}