* {
    box-sizing: border-box;
}

body {
    margin: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #e6f0ff;
    color: #212121;
    line-height: 1.5;
}

#categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item ul li {
    background-color: #f5f7ff;
    border-radius: 8px;
    padding: 8px 12px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-item {
    flex-basis: calc((100% - 32px) / 3);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

#name-input {
    width: 320px;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #212121;
}

.login-form input {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background-color: #fff;
}

.login-form input:focus {
    border-color: #6c8cff;
}

.login-form button {
    padding: 10px 14px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #6c8cff;
    color: #fff;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #5877ff;
}

.widget {
    margin-top: 20px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 12px;
    width: 320px;
}

.widget p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #212121;
}

.color {
    font-weight: 600;
}

.change-color {
    padding: 10px 14px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #6c8cff;
    color: #fff;
    cursor: pointer;
    width: 100%;
}

.change-color:hover {
    background-color: #5877ff;
}

#controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

#controls input {
    width: 220px;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

#controls button {
    padding: 10px 14px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
}

#controls button[data-create] {
    background-color: #6c8cff;
}

#controls button[data-create]:hover {
    background-color: #5877ff;
}

#controls button[data-destroy] {
    background-color: #ff6b6b;
}

#controls button[data-destroy]:hover {
    background-color: #ff4d4d;
}

#boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}