* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid grey;
    background-color: #fafafa;
}

#container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;    
    padding: 32px;
}

.grid-item {
    border: 1px solid grey;
    border-radius: 6px;
    box-shadow: 1px 1px 2px rgba(128, 128, 128, 0.3);
    padding: 16px;
}

.normal-button {
    border: 1px solid black;
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    max-width: 100px;
    align-self: center;
}

.remove,
.read {
    border: 1px solid black;
    background-color: white;
    padding: 4px;
    border-radius: 4px;
    margin-left: 4px;
    float: right;
}

#closeBtn {
    float: right;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: #f5f5f5;
    width: 16px;
}

#closeBtn:active {
    color: grey;
}

button:hover {
    filter: brightness(95%);
}

button:active {
    filter: brightness(85%);
}

.remove:active {
    background-color: rgb(255, 64, 64);
}

dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem;
    border: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 50vh;
    width: 30vw;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    width: 100%;
}