@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Permanent+Marker&display=swap');


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

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-radius: 20px;

}

header h1 {
    font-size: 36px;
    font-family: "Permanent Marker", cursive;
}

.add-btn {
    display: flex;
    justify-self: center;
    align-items: center;
    height: 50px;
}

.add-btn > button {
    text-align: center;
    width: 150px;
    height: 100%;
    box-shadow: 1px 1px 14px #cdcdcd;
    background-color: #ffffff;
    color: #000000;
    font-size: 24px;
    border: 3px solid black;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    transition: ease-out 0.2s;
}

.add-btn > button:hover {
    border: 3px solid black;
    background-color: #000000;
    color: #ffffff;
    box-shadow: 1px 1px 20px #000000;
}

.overly {
    position: fixed;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.overly.show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(255, 255, 255, 0.1); /* light transparent layer */
    backdrop-filter: blur(10px);               /* the magic blur */
    -webkit-backdrop-filter: blur(10px);       /* for Safari support */
    border: 1px solid rgba(255, 255, 255, 0.3); /* optional frosty border */
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    padding: 20px;
    border-radius: 15px;
    width: 500px;
    height: 310px;
    box-shadow: 1px 1px 50px #000000;
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.close{
    align-self: flex-start;
    font-size: 24px;
}

.close i{
    color: #ff0000;
    text-shadow: 1px 1px 20px #c31616;
}

.add-btn[type="submit"] {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    border-radius: 4px;
    width: 95%;
    height: 40px;
    align-self: center;
    font-family: "Courier Prime", monospace;
    font-weight: bold;
    font-size: 20px;
    background-color: #1bc572;
    color: white;
    box-shadow: 1px 1px 10px #1bc572;
    transition: ease-out 0.3s;
}
.add-btn[type="submit"]:hover{
    background-color: #04a357;
    box-shadow: 1px 1px 5px #068347;
}

.form-row i{
    color: white;
}

input{
    width: 280px;
    height: 40px;
    padding: 6px;
    border-radius: 4px;
    outline: none;
    border: none;
    font-size: 17px;
    font-weight: bold;
    font-family: "Courier Prime", monospace;
}

form{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: "Courier Prime", monospace;
    font-weight: bold;
    gap: 15px;
}

.form-row label {
    color: #f1f1f1;
    margin-right: 20px;
    width: 80px;
    font-weight: bold;
}

.form-row {
    width: 100%;
    display: flex;
    align-items: center;
}

.form-row select {
    font-family: "Courier Prime", monospace;
    font-size: 16px;
    border-radius: 4px;
    width: 120px;
    height: 40px;
    outline: none;
    border: none;
    padding: 6px;
    font-weight: bold;
}

input[type="number"]{
    width: 280px;
}

input:focus{
    outline: none;
    border: none;
}

option{
    font-family: "Courier Prime", monospace;
    font-size: 15px;
    height: 40px;
}
select:focus{
    outline: none;
    border: none;
}

.body {
    margin-top: 5px;
    border-top: 3px solid #000000;
    width: 100%;
    height: 100%;
    flex: 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
}

.empty{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    font-family: "Courier Prime", monospace;
    font-size: 20px;

}
.empty > p > i{
    margin: 0;
}

.book {
    border: 3px solid black;
    box-shadow: 1px 1px 5px #8f8f8f;
    height: 320px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 20px 20px 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.book > div:nth-of-type(-n+3) {
    font-weight: bold;
    font-size: 18px;
    font-family: "Courier Prime", monospace;
    display: flex;
    justify-content: flex-start;
    padding-left: 15px;
    align-items: center;
    background-color: transparent;
    border: 3px solid black;
    border-radius: 8px;
    width: 90%;
    height: 25%;
    transition: ease-out 0.3s;
}

.book > div:nth-of-type(-n+3):hover {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 1px 1px 20px #000000;
}

.book > div:nth-of-type(3) {
    width: 45%;
}

.remove-btn{
    letter-spacing: 2px;
    font-family: "Courier Prime", monospace;
    border-radius: 8px;
    justify-self: flex-end;
    width: 195px;
    height: 25%;
    border: none;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 1px 4px 10px #808080;
    transition: ease-out 0.3s;
    user-select: none;
    cursor: pointer;
}

.remove-btn:hover {
    box-shadow: 1px 1px 10px rgb(0, 0, 0);
    color: #ea1818;
}

.read-btn {
    letter-spacing: 2px;
    font-family: "Courier Prime", monospace;
    border-radius: 8px;
    justify-self: flex-end;
    width: 195px;
    height: 25%;
    border: none;
    background-color: #1bc572;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 1px 4px 10px #55af87;
    transition: ease-out 0.3s;
    user-select: none;
    cursor: pointer;
}

.read-btn:hover {
    background-color: #15da7f;
    box-shadow: 1px 4px 10px #0ca659;
}

.read-btn.no{
    background-color: #e40808;
    box-shadow: 1px 4px 10px #c31616;

}


.read-btn.no:hover{
    background-color: #c31616;
    box-shadow: 1px 4px 10px #9a0404;
}

i {
    margin-right: 12px;
}

.body > .book > .remove{
    font-size: 20px;
    color: black;
    align-self: flex-start;
}