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

:root {
    --card-bg: white;
    --pd-base: 30px;
    --element-gaps: 40px;
    --btn-color: orange;
}

body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-content: center;
    /* width: 100vw; */
}

.container {
    margin: 0 auto;
    width: 80%;
    padding: var(--pd-base);
    position: relative;
}

.header {
    display: flex;
    align-items: center;
    gap: var(--element-gaps);
    padding: var(--pd-base);
    height: 40px;
}

dialog {
    width: 400px;
    height: 60%;
    background-color: white;
    box-shadow: 0 0 10px gray;
    border-radius: 10px;
    border: none;
    margin: auto;
}

#modal-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

dialog::backdrop {
    background-color: grey;
    opacity: 60%;
}

#closeBtn {
    top: 10px;
    right: 15px;
    width: 30px;
    position: absolute;
}

#closeBtn:hover {
    cursor: pointer;
}

#form-container {
    display: grid;
    grid-template-columns: 1fr;
    border: 2px solid orange;
    border-radius: 10px;
    margin: 10px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

form label {
    display: flex;
    flex-direction: column;
    vertical-align: top;
    padding: 20px;
}

form input {
    font-size: 1.5rem;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--element-gaps);
    padding: var(--pd-base);
}

.card {
    display: grid;
    grid-template-rows: 3fr 1fr;
    background-color: var(--card-bg);
    box-shadow: 0 3px 10px #a7a7a7;

    border-radius: 15px;
    padding: var(--pd-base);
    width: 350px;
    height: 300px;
}

#details {
    display: grid;
    justify-content: start;
}

#btnContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--element-gaps);
    padding: 10px 0;
}

button {
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-color: var(--btn-color);
    width: 100px;
    height: 40px;
    padding: 5px;
}

button:hover {
    box-shadow: 0 2px 5px gray;
    cursor: pointer;
}

button:active {
    color: lightgray;
}

#details p span {
    font-weight: bold;
}