body {
    font-family: "Space Grotesk", sans-serif;
}

label,
input,
select,
button,
h1,
p,
textarea {
    font-family: "Space Grotesk", sans-serif;
}

.form-group {
    position: relative;
    margin: 20px 0;
}

label {
    position: absolute;
    top: -14px;
    left: 25px;
    padding: 0 10px;
    font-weight: bold;
    background-color: white;
    color: #0500f6;
    font-size: 14px;
    z-index: 1;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 2px solid #0500f6;
    border-radius: 30px;
    outline: none;
    box-sizing: border-box;
    position: relative;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #542524;
}

input:focus + label,
select:focus + label,
textarea:focus + label {
    color: #542524;
}

#inputModal,
#editModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

#inputModal > div,
#editModal > div {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: auto;
}

@media (max-width: 768px) {
    #inputModal > div,
    #editModal > div {
        width: 95%;
        max-height: 80vh;
    }
}

#closeModalButton,
#closeModalButton2,
#closeModalButton3,
#closeModalButton4,
#closeModalButton5,
#closeEditModalButton {
    background-color: #d32f2f;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 2px 2px 2px black;
}

button[type="submit"] {
    font-weight: bold;
    box-shadow: 0px 2px 2px 2px black;
    background-color: #017914;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}

.add-button-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    padding-right: 20px;
}

.add-button {
    font-weight: bold;
    font-size: 16px;
    background-color: #0500f6;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    box-shadow: 0px 2px 2px 2px black;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

/* Hover state */
.add-button:hover {
    background-color: #016b10;
}

/* Active state */
.add-button:active {
    transform: scale(0.95);
}
