:root {
    --primary-color: #8f4eb8;
    --secondary-color: #2a3364;
    --accent-color: #f1c49c;
    --background-color: #86c6b6;
    --text-color: #333;

    --shape-size: 80px; /* Default shape size - adjust this to resize all shapes */
}

/* General styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    color: var(--text-color);
}

.controls {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#grid {
    display: grid;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

#grid div {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background-color: #007bff; /* Blue color */
    width: var(--shape-size); /* Use the shape size variable */
    height: var(--shape-size); /* Use the shape size variable */
}

#grid div.correct {
    background-color: #28a745; /* Green for correct */
}

#grid div.square {
    border-radius: 0;
}

#grid div.circle {
    border-radius: 50%;
}

#grid div.pentagon {
    clip-path: polygon(50% 0%, 100% 38%, 81% 100%, 19% 100%, 0% 38%);
}

#grid div.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
}

.modal-content {
    font-size: 18px;
    margin-bottom: 15px;
}

#close-modal {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#close-modal:hover {
    background-color: #0056b3;
}
