/* Global styles */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap');
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  
  font-family: 'Josefin Sans', sans-serif;
  background-color: #FF8282;
  
  
}
    .dark-mode {
      background-color: #000000;
    }

    #dark-mode-toggle {
      background-color: transparent;
      border: none;
      font-size: 2rem;
      cursor: pointer;
      
    }
a {
  color: blue;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
/* hero section*/
.hero{
    width: 100%;
    height: 100vh;
    display: flex;
    background-color: transparent;
    top: 0;
    left: 0;
    right: 0;
    
 
}

.side-book-read-image-icon{
    
    width: 600px;
    height: 600px;
    margin-top: 400px;
    
    
}
.tagline{
    color: #FFFFFF;
    font-size: 40px;
    margin-left: 30px;
    transform: translateX(-100px);
}
.tagname{
    display: flex;
    font-size: 50px;
    margin-top: 100px!important;
    color: #FFFFFF;
    margin-left: 2%;
    
    height: 50px;
}

.box-div{
    display: flex;
    padding: 10px;
    width: 100%;
    height: 230px;
    font-size: 25px;
    color: white;
    transform: translateX(-100px);
    font-family: bolder;
    
}
/* Header */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #E7E9F7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  border-radius: 40px;
  margin-top: 5px;
  margin: 10px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
}

#search-input {
 position: relative;
  

}

#search-input {
  width: 300px;
  padding: 10px 40px 10px 10px;
  border: none;
  border-radius: 40px;
  background-color: #FF8282;
  font-size: 16px;
  color: black;
  font-weight: bolder;
  
}

#search-input:focus {
  outline: none;
  box-shadow: 0 0 10px 1px #3E39DA;
}



/* Article Container */

.article-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  margin-top: 100px;
  color: black;
  
  
}

.article {
  display: flex;
  flex-direction: column;
  background-color: whitesmoke;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  
}

.bookCover {
  width: 100%;
  height: auto;
  
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.article-content {
  padding: 20px;
}

.article-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-left: 10px;
}

.article-author {
  font-size: 14px;
  color: #666666;
  margin-bottom: 10px;
  padding: 15px;
}

.article-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
  margin-left: 5px;
  padding: 10px;
}

.article-read-more {
  font-size: 14px;
  color: #0077cc;
  text-align: right;
  margin-top: auto;
}

.article-read-more:hover {
  text-decoration: underline;
}

/* Responsive styles */

@media only screen and (max-width: 580px) {
  /* Header */
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-logo {
    margin-bottom: 20px;
  }

  /* Article Container */
  .article-container {
    grid-template-columns: 95%;
    
  }
  #search-input{
      width: 100px;
  }
  .side-book-read-image-icon{
      
      margin-top: 97%;
      width: 200px;
      height: 200px;
      overflow: hidden;
  }
  .tagline{
      font-size: 20px;
      transform: translateX(-100px);
      width: 110%;
  }
  .box-div{
      font-size: 14px;
      width: 170%;
      height: 200px;
      transform: translateX(-190px);
  }
}
