:root {
    font-family: 'Montserrat', monospace;
    background-color: floralwhite;
}

* {
    font-family: 'Montserrat', monospace;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    padding: 20px;
    height: 100vh;
    width: 100vw;
}

.title {
    padding: 20px;
    font-size: 3.5em;
    border-bottom: 2px solid black;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#filter-label, #filter {
    margin: 10px;
}

#filter {
    border-radius: 5px;
    padding: 5px;
}

#filter:focus {
    outline: none;
}

.buttons {
    margin: 10px;
    height: 35px;
    cursor: pointer;
    padding: 5px 15px;
    background-color: rgba(255, 228, 196, 0.5);
    border: 2px solid black;
    border-radius: 25px;
}

.buttons:hover {
    background-color: rgb(255, 228, 196, 1.0);
}

.buttons:focus {
    outline: none;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    width: 300px;
    margin: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(-135deg, peachpuff, salmon);
    border: 2px solid black;
    border-radius: 10px;
    transition: all 200ms;
    position: relative;
    cursor: pointer;
}

.card:hover {
    box-shadow: 0px 2px 8px 0px rgba(41, 41, 41, 0.4);
}

.card-title {
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 0px;
}

.card-description {
    display: flex;
    flex-direction: column;
    font-weight: medium;
    padding: 5px 0px;
}

.card-description .card-content {
    margin: 5px 0px;
}

.card-remove {
    cursor: pointer;
    font-size: 1.25em;
    position: absolute;
    top: 5%;
    right: 4%;
    transition: all 300ms;
}

.card-remove:hover {
    transform: rotate(90deg);
}

.card-read {
    cursor: pointer;
    padding: 5px 10px;
    align-self: flex-end;
    border: 1px solid black;
    border-radius: 15px;
    transition: all 400ms;
}

.card-read:active {
    transform: scale(0.9);
}

.card-read:hover, .card-read-selected {
    background-color: salmon;
}

.add-button {
    width: 60px;
    height: 60px;
    cursor: pointer;

    position: fixed;
    bottom: 5%;
    right: 3%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 3em;
    background: linear-gradient(45deg, salmon, lightsalmon);
    box-shadow: 0px 4px 12px 0px rgba(41, 41, 41, 0.4);
    border-radius: 50%;
    transition: all 300ms;
}

.add-button:hover {
    transform: rotate(90deg);
}

.modal {
    z-index: 1;
    width: 100%;
    height: 100%;
    display: none;
    overflow: auto;
    background-color: rgba(41, 41, 41, 0.3);
    animation-name: fadeIn;
    animation-duration: 400ms;
    position: fixed;
    left: 0;
    top: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.modal-content {
    width: 100%;
    padding: 20px;

    position: fixed;
    bottom: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

    background-color: white;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    animation-name: slideIn;
    animation-duration: 400ms;
}

@keyframes slideIn {
    0% { bottom: -600px; opacity: 0; }
    100% { bottom: 0px; opacity: 1; }
}

.modal-header {
    font-size: 2em;
    padding: 20px 0px;
    border-bottom: 2px solid black;
}

.modal-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 20px 0px;
}

.modal-input {
    padding: 10px;
    margin: 10px 0px;
    font-size: 1.25em;
    border: 1px solid dimgrey;
    border-radius: 10px;
}

select {
    background-color: white;
}

.modal-input:focus {
    outline: none;
}

.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.modal-buttons #modal-confirm {
    height: 40px;
    background-color: rgba(143, 188, 143, 0.6);
}

.modal-buttons #modal-confirm:hover {
    background-color: rgba(143, 188, 143, 1.0);
}

.modal-buttons #modal-cancel {
    height: 40px;
    background-color: rgb(250, 128, 114, 0.6);
}

.modal-buttons #modal-cancel:hover {
    background-color: rgb(250, 128, 114, 1.0);
}

@media (max-width: 270px) {
    .title {
        font-size: 2em;
    }
}

@media (max-width: 240px) {
    .title {
        font-size: 1.25em;
        font-weight: bold;
        text-align: center;
    }
    .card-title {
        font-size: 1em;
    }
    .action-bar {
        margin-top: 10px;
    }
    .modal-header {
        font-size: 1.5em;
    }
    .modal-input {
        font-size: 1em;
    }
    .modal-buttons {
        justify-content: center;
    }
    .modal-buttons .buttons {
        width: 100%;
    }
}