@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body{
    position: relative;
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
}

.library{
    min-height: 100vh;
    background-color: #F4F1EC;
    display: flex;
    flex-direction: column;
}

.header{
    background-color: #3E4A61;
    color: #FFFFFF; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 64px;
}

.header p{
    font-size: 22px;
    font-weight: bold;
}

.add-btn{
    background-color: #C9A24D;
    color: #FFFFFF;
    box-shadow: 2px 2px 4px rgba(158, 158, 158, 0.5);
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    transition: all 0.2s;
}

.add-btn:hover{
    cursor: pointer;
    background-color: hsl(41, 53%, 65%);
    box-shadow: 2px 2px 4px rgba(203, 203, 203, 0.5);
    transform: translateY(-2px);
}

.add-btn:active{
    background-color: hsl(41, 53%, 75%);
    box-shadow: 2px 2px 4px rgba(242, 242, 242, 0.5);
    transform: translateY(-4px);
}

.footer{
    background-color: #3E4A61;
}

.footer{
    font-size: 16px;
    color: #FFFFFF;
    padding: 8px 16px;
}

.main-container{
    flex: 1;
    padding: 16px;
}

.card-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.card{
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    height: 175px;
    width: 300px;
    padding: 12px;
    border-radius: 16px;
    border-left: 8px solid hsl(19, 31%, 68%);
    box-shadow: 1px 1px 2px rgba(78, 78, 78, 0.5);
    transition: all 0.2s;
}

.card:hover{
    border-left: 8px solid hsl(19, 31%, 78%);
    box-shadow: 1px 1px 2px rgba(131, 131, 131, 0.5);
    transform: translateY(-2px);
}

.card .title{
    font-size: 18px;
    font-weight: bold;
}

.card .btn-container{
    display: flex;
    justify-content: right;
    gap: 12px;
}

.remove-btn, .mark-btn{
    font-size: 16px;
    padding: 8px;
    border: none;
    border-radius: 4px;
    box-shadow: 1px 1px 1px black;
}

.remove-btn:hover{
    cursor: pointer;
    background-color: hsla(0, 100%, 50%, 0.5);
}

.mark-btn:hover{
    cursor: pointer;
    background-color: hsla(120, 100%, 25%, 0.5);
}

.remove-btn:active{
    background-color: hsla(0, 100%, 50%, 0.75);
}

.mark-btn:active{
    background-color: hsla(120, 100%, 25%, 0.75);
}

.modal-container{
    background-color: #FEFFFC;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    width: 400px;
    border-radius: 16px;
    box-shadow: 0 0 3px rgb(0, 0, 0, 0.5);
    animation: ease-in 0.2s;
}

form{
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-container{
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.input-container input{
    background-color: hsl(0, 0%, 90%);
    font-size: 20px;
    align-self: flex-end;
    border: none;
    padding: 8px;
}

.actions-container{
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.actions-container button{
    background-color: hsl(0, 0%, 75%);
    font-size: 16px;
    padding: 8px 32px;
    border: none;
    border-radius: 12px;
    box-shadow: 1px 1px 2spx rgb(0, 0, 0, 0.5);
    transition: all 0.1s;
}

.actions-container button:hover{
    background-color: hsl(0, 0%, 85%);
}

.actions-container button:active{
    background-color: hsl(0, 0%, 95%);
}

@media (width < 1068px){
    .card{
        height: 150px;
        width: 250px;
    }
}

@media (width < 725px){
    .main-container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .card{
        height: 150px;
        width: 250px;
    }
}