@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;
    background-position: 
        -100px 150px, -150px 150px, -150px 100px, -100px 100px,
        -150px 100px, -100px 100px, -100px 150px, -150px 150px,
        0 0, 0 0, 0 0, 0 0;
    font-family: 'Amiri', serif;
    text-align: center;
    padding-top: 50px;
    direction: ltr;
    color: #d5d8dc;
}

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

.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 */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    color: black;
    align-items: center;
}

.container {
    display: flex;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: #fffcde;
    padding: 20px;
    overflow-y: auto;
}

.main-content {
    margin-left: 320px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#boxesContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.row-label {
    text-align: left;
    width: 100%;
    margin: 10px 0;
    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;
}

.result-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.result {
    padding: 10px;
    background-color: white;
    color: black;
    font-weight: bold;
    width: 200px; /* Adjust width for symmetry */
    text-align: center;
}

button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 17px;
    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;
}

#categoriesContainer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

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

.name {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: move;
    margin: 5px;
    background-color: #f0f0f0;
    text-align: center;
}
