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

:root {
    --bg-col: rgba(38, 76, 154, 0.3);
    --bg-col-header: rgba(38, 76, 154, 0.8);
    --bg-col-form: rgba(38, 76, 154, 0.9);
    --bg-col-main: rgba(38, 76, 154, 0.0);
    --bg-col-card: rgba(255, 255, 255, 0.9);
    --bg-card-btn:rgba(38, 76, 154, 0.8);
    --col-header: #fff;
    --col-form: #fff;
    --col-main: #264c9a;
    --col-card: #000;
    --col-link: #fff;
    --col-card-btn: #fff;
    --border-card: #b7b7b7;
}

body {
    background-color: var(--bg-col);
    background-image: url("./img/background.jpg");
    background-repeat: repeat-y;
    background-size: cover;
}

/* main container*/
.container {
    display: grid;
    grid-template-rows: 0.5fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    
    width: 100vw;
    height: 100vh;
}

.background-img {
    width: 100%;
    height: 100%;
    position: absolute;
}

/* header-text and button */
.box-1 {
    grid-row: 1 / 2;
    grid-column: 1 / 4;

    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    row-gap: 1rem;

    background-color: var(--bg-col-header);
    color: var(--col-header);
    font-size: 2rem;
    padding: 1rem;
    padding-left: 3rem;
 
}

.btnNewBook  {
    grid-row: 2 / 3;
}

.img-reference {
    grid-row: 2 / 3;
    font-size: 0.9rem;
    justify-self: end;
    align-self: end;
}

.img-reference > a {
    font-size: bold;
    color: #fff;
}

.img-reference > a:hover {
    color: red;
}

/* form */
.box-form { 
    background-color: var(--bg-col-form);
    color: var(--col-form);

    width: 30%;
    min-width: 400px;
    height: 70%;
    min-height: 400px;
    position: absolute;
   
    font-size: 1.5rem;
    padding: 2rem;

    display: grid;
    align-items: center;
    border-radius: 0.1rem;
    z-index: 1;
}

.divForm-1 {
    display: grid;
    grid-template-columns: 1fr 3fr;
    column-gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #fff;
}

.divForm-2 {
    display: grid;
    grid-template-columns: 0.9fr 10fr;
    margin-top: 0.5rem;
}

.divForm-2-text {
    grid-column: 1 / 3;
}

.divForm-2 > label {
    align-self: center;    
}

.errorInput {
    background-color: #a00;
    color: #fff;
}

.input-author,
.input-title,
.input-pages {
    font-size: 1.2rem;
    padding-left: 1rem;
    width: 90%;
}

.radio {
    margin-top: 1px;
    height: 20px;
    width: 20px;
    align-self: center;
    justify-self: start;
}

.btn{
    width: 100px;
    height: 50px;
    border: none;
    font-weight: bold;
}

.btn:hover {
    background-color: rgb(219, 220, 222);
}

/* main content */
.box-3 {
    grid-row: 2 / 4;
    grid-column: 1 / 4;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    column-gap: 2rem;
    row-gap: 2rem;

    background-color: var(--bg-col-main);
    color: var(--col-main);
    margin-top: 1rem;
}

.card {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    width:400px;
    height: 300px;
    background-color: var(--bg-col-card);
    color: var(--col-card);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 2px 2px 5px;

    font-size: 1.2rem;
    font-weight: bold;
    word-break: break-word;

    transition: transform 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 5px 5px 10px #000;
    transform: scale(1.02);
}


.card-title {
    grid-column: 1 / 3;

    display: grid;
    grid-template-columns: 1fr 2fr;

    border-bottom: 1px solid var(--border-card);

}

.card-author {
    grid-column: 1 / 3;

    display: grid;
    grid-template-columns: 1fr 2fr;

    border-bottom: 1px solid var(--border-card);
}


.card-pages {
    grid-column: 1 / 3;

    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid var(--border-card);
}

.card-text {
    
}

.card-value {
    
}

.card-read {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr; 
}

.card-read-txt {
    align-self: center;
}
.card-btnRead {
    align-self: center;
    height: 35px;
    width: 80px;
    justify-self: end;
    /* border-radius: 10px; */
    font-weight: bold;
}

.card-btnRead:hover,
.card-btnRemove:hover {
    background-color: var(--bg-card-btn);
    color: var(--col-card-btn);
    border: none;
}

.card-btnRemove {
    grid-column: 1 / 3;
    height: 40px;
    /* border-radius: 10px; */
    font-weight: bold;
}