body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    text-decoration: none
    background-color: #f9f9f9; /* Warna latar belakang yang lebih terang */
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 2px;
    text-decoration: none
}
footer{
    background-color: #206de0;
    color: white;
    padding: 2px;
    font-style: italic;
    font color: white-space: ;;

}

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 buku dalam 1 baris */
    gap: 20px; /* Jarak antar buku */
    padding: 20px;

}

.book-item {
    width: 200px;  /* Lebar kartu */
    height: calc(200px * 1.3); /* Tinggi kartu selalu 1,3 kali lebar */
    background-color: #ffffff; /* Latar belakang putih untuk kartu buku */
    border-radius: 8px; /* Sudut yang lebih halus */
    padding: 10px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(20, 20, 20, 0.781); /* Bayangan halus */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none
}

.book-item:hover {
    transform: translateY(-5px); /* Efek angkat saat hover */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.699); /* Bayangan lebih dalam saat hover */
}

h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333; /* Warna teks lebih gelap untuk kontras */
    text-decoration: none
}

.book-cover-container {
    background-color: #f0f0f0; /* Warna latar belakang untuk cover */
    border-radius: 5px;
    padding: 5px;
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px; /* Jarak antara cover dan tombol */
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.button-container {
    display: flex;
    flex-direction: column; /* Tombol ditata secara vertikal */
    align-items: center;    /* Menyelaraskan tombol di tengah */
    margin-top: auto;
    text-decoration: none
}

.level-button {
    background-color: #4CAF50; /* Warna tombol */
    color: white;
    border: none;
    padding: 8px 12px; /* Padding tombol */
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 0; /* Jarak antar tombol vertikal */
    transition: background-color 0.3s;
    width: 80%; /* Lebar tombol */
}

.level-button:hover {
    background-color: #45a049; /* Warna tombol saat hover */
}

/* Warna latar belakang untuk setiap buku */
.book1 {
    background-color: #FFC107;
}

.book2 {
    background-color: #03A9F4;
}

.book3 {
    background-color: #8BC34A;
}

.book4 {
    background-color: #FF5722;
}

.book5 {
    background-color: #279bb0;
}

.book6 {
    background-color: #35595e;
}

.book7 {
    background-color: #FFEB3B;
}

.book8 {
    background-color: #71e42f;
}

.book9 {
    background-color: #FF9800;
}
.variant {
    position: absolute; /* Absolute positioning for placement */
    top: 50px; /* Distance from the top */
    right: -30px; /* Position it to the right outside the card */
    width: 100px; /* Width of the ribbon */
    height: 30px; /* Height of the ribbon */
    color: white; /* White text color */
    font-size: 14px; /* Font size */
    padding: 7px; /* Padding */
    text-align: center; /* Center text */
    border-radius: 5px; /* Rounded corners */
    transform: rotate(45deg); /* Rotate to create a ribbon effect */
    transform-origin: top right; /* Origin for rotation */
    background-color: red; /* Background color for level 7 */
}

.level8 {
    background-color: green; /* Background color for level 8 */
}

/* Add specific styles for each level */
.variant.level7 {
    background-color: red; /* Red for Level 7 */
}

.variant.level8 {
    background-color: green; /* Green for Level 8 */
}

/* Adjust book item to relative for absolute positioning */
.book-item {
    position: relative; /* Relative positioning for child elements */
    overflow: hidden; /* To prevent overflow */
}

/* Other existing styles... */



/* Responsif */
@media (max-width: 600px) {
    h2 {
        font-size: 16px;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Ukuran kartu lebih kecil di layar kecil */
    }

    .book-item {
        padding: 5px;
    }
}
