*,::after,::before{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body{
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f0eef1;
}

header{
    flex-direction: row;
    display: flex;
    
    padding: 10px;
    background-color: #fffbfb;
    box-shadow: -32px -32px 32px 32px #dddddd;
    margin-bottom: 30px;
}

    nav {
        flex-direction: row;
        display: flex;
        width: 100vw;
        margin: 0px 100px;
        justify-content: space-between;
        align-items: center;
    }


nav h1{
    font-size: 2.5rem;
    margin: 10px 0px;
}

/* nav button{
    width: 8%;
    height: 50%;
    border-radius: 10px;
} */
nav button {
    display: inline-block;
    margin: 10px 20px;
    padding: 12px 24px;
    border: 1px solid #4f4f4f;
    border-radius: 4px;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    font-size: 22px;

    cursor: pointer;
    color: black;
    z-index: 1;
  }
  
  nav button:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
  }
  
  nav button:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #39bda7;
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
  }
  
  nav button:hover {
    color: #ffffff;
    border: 1px solid #39bda7;
  }
  
  nav button:hover:before {
    top: -35%;
    background-color: #39bda7;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
  }
  
  nav button:hover:after {
    top: -45%;
    background-color: #39bda7;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
  }
/* .addbook{
    margin: auto;
    background-image: linear-gradient(to right,#ff6347 , #ee3121);
    color: #000000;
    width: 150px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
} */


section {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: repeat(auto-fit,1fr);
    width: 1040px;
    height: auto;
    margin: 20px auto;
    
    justify-content: center;
}

.card{
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items:center ;
    width: 100%;
    height: auto;
    
    gap: 15px;
    
    border-radius: 30px;
    background: lightgrey;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 50px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 26px -18px inset;
}
p{
    font-size: 1.5rem;
    font-weight: bold;
    font-family:monospace;
}
.read,.remove{
    width: 90%;
    cursor: pointer;
    margin: 0px 20px;
    text-align: center;
    line-height: 40px;
    border-radius: 10px;
    transition: all .3s ease;
}

.addbook {
    align-items: center;
    background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#00DDEB);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    font-family: Phantomsans, sans-serif;
    font-size: 18px;
    justify-content: center;
    line-height: 2em;
    width: 160px;
    max-width: 100%;
    min-width: 140px;
    
    padding: 3px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    cursor: pointer;
    transition: all .3s;
    margin: 0px auto;
    justify-content: center;
   }
   
   .addbook:active,
   .addbook:hover {
    outline: 0;
   }
   
   .addbook span {
    background-color: rgb(5, 6, 45);
    padding: 16px 24px;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    transition: 300ms;
   }
   
   .addbook:hover span {
    background: none;
   }
   
   .addbook:active {
    transform: scale(0.9);
   }

  
   .footer {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
    width: 100%;
    padding: 10px;
    font-size: 20px;
    color: #000000;
}
    
    .fa-github {
     
      font-size: 24px;
      transition: transform 0.3s ease-in-out;
      color: #000000;
  
    }
    
    .fa-github:hover {
      transform: rotate(360deg) scale(1.2);
      color: #000000;
    }
.modal-container{
    z-index: 1111;
    visibility: hidden;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    transition: visibility 0.4s;
   
}
.modal-container.active{
    visibility: visible;
    transition: visibility 0s;

}
.overlay{
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
     background-color: #333333d3;
     transition: opacity 0.4s 0.2s ease-out;
}
.modal-container.active .overlay{
    opacity: 1;
    transition: opacity 0.4s ease-out;
}
form{
  display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: fit-content;

}
.modal{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    width: fit-content;
    max-width: 500px;
    min-width: 300px;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    position: absolute;
    top: 40%;
    left:50%;
    transform: translate( -50%, calc(-50% - 50px) );
    transition: opacity 0.4s ease-out,
    transform 0.4s 0.2s ease-out;

}
.modal-container.active .modal{
    opacity: 1;
    transform: translate( -50%, -50% );
    transition: opacity 0.4s 0.2s ease-out,
    transform 0.4s 0.2s ease-out

}

.close-modal{
padding: 8px 10px;
border: none;
border-radius: 5px;
font-size: 18px;
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
background: #ff356e;
color: #fff;
}
.inpute {
    border: none;
    outline: none;
    border-radius: 15px;
    padding: 1em;
    background-color: #ccc;
    box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
    transition: 300ms ease-in-out;
  }
  
  .inpute:focus {
    background-color: white;
    transform: scale(1.05);
    box-shadow: 13px 13px 100px #969696,
               -13px -13px 100px #ffffff;
  }

  .material-checkbox {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #777777;
    cursor: pointer;
  }
  
  .material-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 2px solid red;
    border-radius: 4px;
    transition: all 0.3s;
  }
  
  .material-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: #47da99;
    border-color: #47da99;
  }
  
  .material-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  /* .material-checkbox input[type="checkbox"]:focus ~ .checkmark {
    box-shadow: 0 0 0 2px #47da99;
  } */
  
  .material-checkbox:hover input[type="checkbox"] ~ .checkmark {
    border-color: #47da99;
  }
  
  .material-checkbox input[type="checkbox"]:disabled ~ .checkmark {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .material-checkbox input[type="checkbox"]:disabled ~ .checkmark:hover {
    border-color: #47da99;
  }

  /* #submit {
    font-size: 18px;
    background: transparent;
    border: none;
    padding: 1em 1.5em;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    color: #1e1e2b;
  }
  
  #submit::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background-color: #47da99;
    transform: scaleX(0); 
    transform-origin: bottom left; 
    transition: transform 2s ease infinite;
  }
  
  
  #submit::before {
    animation: rotateAnimation 2s ease infinite; 
  }
  
  @keyframes rotateAnimation {
    0% {
      transform: scaleX(0);
    }
    50% {
      transform: scaleX(1);
    }
    100% {
      transform: scaleX(0);
    }
  }
  
  #submit::after {
    content: "";
    position: absolute;
    border: #000000;
    border-radius: 1px;
    left: 0;
    bottom: 0;
    height: 0;
    width: 100%;
    background-color: #47da99;
    transition: 0.4s ease;
    z-index: -1;
  }
  
  #submit:hover::after {
    height: 100%;
    transition-delay: 0.4s;
    color: #000000;
    border-radius: 1px;
    
  } */
  #submit {
    display: inline-block;
    margin: 10px 20px;
    padding: 16px 30px;
    border: 1px solid #4f4f4f;
    border-radius: 4px;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    font-size: 22px;
    background: transparent;
    cursor: pointer;
    color: black;
    z-index: 1;
  }
  
  
  #submit:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
  }
  
  #submit:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #39bda7;
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
  }
  
  #submit:hover {
    color: #ffffff;
    border: 1px solid #39bda7;
  }
  
  #submit:hover:before {
    top: -35%;
    background-color: #39bda7;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
  }
  
  #submit:hover:after {
    top: -45%;
    background-color: #39bda7;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
  }
.erreur{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.erreur >p{
  font-size: 1rem;
  text-align: center;
  color: #ff4538;
}

.read{
  background:#ff356e ;
}

.read.active{
  
  background: #39bda7;
}









@media screen and (max-width: 1045px) {
    section{
        grid-template-columns: repeat(2,1fr);
        width: 720px;
        padding: 0px;
        
    }
    nav{
        margin: 0;
    }

    
}
@media screen and (max-width: 750px) {
    section{
        grid-template-columns: repeat(1,1fr);
        width: 360px;
        padding: 0px;
        
    }
    nav{
        margin: 0;
    }

    
}
/* @media screen and (max-width: px) {

  
  .footer>p{
    font-size:20px;
  }
} */



  @media screen and (max-width: 440px)
   {
    section{
      grid-template-columns: repeat(1,1fr);
      width: 310px;
      margin: 10px auto;
      padding: 0px;
      gap: 40px;
      
  }
  .footer{
    
    gap: 5px;
    
  }
  .footer>p{
    font-size:16px;
  }
  

}
