@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.5px;
}

.first-section {
    background-color: #f8f8f8;
    width: 90%;
    height: auto;
    margin: 2rem auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    row-gap: 1rem;
    border-radius: 1rem;
    border: 1px solid #d7d7d7;
}

.top-text-container {
    width: fit-content;
    height: auto;
}

.top-text-container p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #23123d;
}

.add-button-container {
    width: fit-content;
    height: auto;
}

.add-button-container button {
    background-color: #5107FF;
    color: white;
    padding: 1rem 2rem;
    border: none;
    outline: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.items-section {
    width: 90%;
    height: auto;
    background-color: #f8f8f8;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: stretch;
    column-gap: 1.5rem;
    flex-wrap: wrap;
    row-gap: 1.5rem;
}

.research-item {
    width: 30%;
    height: auto;
    background-color: white;
    padding: 1.2rem;
    border-radius: 0.5rem;
    border: 0.3px solid #d7d7d7;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    row-gap: 0.8rem;
    flex-grow: 1;
}

.title-and-delete-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.title-and-delete-container a {
    text-decoration: none;
    font-weight: 600;
    color: #23123d;
}

.title-and-delete-container i {
    cursor: pointer;
    color: #8f8f95;
}

.description-of-item {
    width: 100%;
    height: auto;
}

.description-of-item p {
    font-size: 0.8rem;
    color: #444445;
}

.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.modal-overlay-visible {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    visibility: visible;
}

.modal {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    width: 32%;
}

.close-icon-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    padding: 1rem 0;
}

.close-icon-container i {
    cursor: pointer;
}

.modal-title-container {
    width: 100%;
    height: auto;
    text-align: center;
    padding: 1rem;
}

.modal-title-container h3 {
    font-size: 1rem;
}

.modal-form {
    width: 100%;
    height: auto;
}

form {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    row-gap: 1rem;
}

.input-group {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    row-gap: 0.25rem;
}

label {
    font-size: 0.8rem;
}

input {
    width: 100%;
    padding: 1rem 2rem 1rem 1rem;
    border-radius: 0.5rem;
    border: none;
    border: 1px solid #e3e3e3;
    outline: none;
}

input::placeholder {
    font-size: 0.75rem;
}

textarea {
    width: 100%;
    height: 5rem;
    border-radius: 0.5rem;
    border: none;
    border: 1px solid #e3e3e3;
    outline: none;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
}

textarea::placeholder {
    font-size: 0.75rem;
}

.form-button-container {
    width: 100%;
    height: auto;
}

.form-button-container button {
    background-color: #5107FF;
    color: white;
    width: 100%;
    height: auto;
    padding: 1rem;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}