@import url('https://fonts.googleapis.com/css2?family=Amiri&display=swap');

/* Applying the styleOne pattern to the entire web page */
body {
    background-color: #c0edaa;
    background-image:
        linear-gradient(67.5deg, #c0edaa 10%, transparent 10%),
        linear-gradient(157.5deg, #c0edaa 10%, transparent 10%),
        linear-gradient(67.5deg, transparent 90%, #c0edaa 90%),
        linear-gradient(157.5deg, transparent 90%, #c0edaa 90%),
        linear-gradient(22.5deg, #c0edaa 10%, transparent 10%),
        linear-gradient(112.5deg, #c0edaa 10%, transparent 10%),
        linear-gradient(22.5deg, transparent 90%, #c0edaa 90%),
        linear-gradient(112.5deg, transparent 90%, #c0edaa 90%),
        linear-gradient(22.5deg, transparent 33%, #d5d8dc 33%, #d5d8dc 36%, transparent 36%, transparent 64%, #d5d8dc 64%, #d5d8dc 67%, transparent 67%),
        linear-gradient(-22.5deg, transparent 33%, #d5d8dc 33%, #d5d8dc 36%, transparent 36%, transparent 64%, #d5d8dc 64%, #d5d8dc 67%, transparent 67%),
        linear-gradient(112.5deg, transparent 33%, #d5d8dc 33%, #d5d8dc 36%, transparent 36%, transparent 64%, #d5d8dc 64%, #d5d8dc 67%, transparent 67%),
        linear-gradient(-112.5deg, transparent 33%, #d5d8dc 33%, #d5d8dc 36%, transparent 36%, transparent 64%, #d5d8dc 64%, #d5d8dc 67%, transparent 67%);
    background-size: 250px 250px;
    font-family: 'Amiri', serif;
    text-align: center;
    padding-top: 20px;
    direction: ltr;
    color: black;
    margin: 0;
    line-height: 1.6;
}

h1 {
    margin-bottom: 20px;
    font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    text-shadow: 3px 3px 0px #c78283;
}

#boxesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px; /* Adjust width as needed */
    height: 100vh; /* Full height */
    background-color: #fffcde;
    padding: 20px;
    width: 300px;
    text-align: justify;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    font-family: Calibri, sans-serif;
    color: black;
    z-index: 1000; /* Ensure it stays above other content */
}

/* Sidebar Text and List Styles */
.sidebar h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.sidebar p,
.sidebar ol,
.sidebar ul {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sidebar ol li,
.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar strong {
    font-weight: bold;
}

.box {
    width: 120px;
    height: 50px;
    border: 2px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 5px;
    font-size: 18px;
}

.result {
    margin-top: 20px;
    padding: 10px;
    background-color: #8BC34A;
    color: black;
    font-weight: bold;
    font-size: 22px;
}

.main-content {
    margin-left: 320px; /* Add margin to the left to accommodate the sidebar */
    padding: 20px;
}

/* Adjust the categories container */
#categoriesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 0px; /* Reduced the top margin */
    gap: 10px; /* Reduced the gap between categories */
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
    font-size: 18px;
}

.name {
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: move;
    width: 100%;
    max-width: 180px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 19px;
    cursor: pointer;
    border: groove;
    background-color: #4CAF50;
    color: white;
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #388E3C;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #boxesContainer, #categoriesContainer {
        flex-direction: column;
        align-items: center;
    }

    .category {
        width: 100%;
        max-width: none;
    }

    .box {
        width: 90%;
    }

    .name {
        width: 90%;
        max-width: none;
    }

    button {
        width: 90%;
    }
}
