/* General reset */
* {
  box-sizing: border-box;
}

body {
  background-color:#ffcfcf;
  margin: auto;
  min-width: 390px;
  max-width: 1650px;
  font-family: 'Arial';
  font-size: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100vw;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: 	#ffcfcf;
  gap: 20px;
  width: 100%;
  position: relative;
}

h1 {
  text-align: center;
  color: black;
  margin: 0;
  flex-grow: 1;
  font-size: 5vw;

}

.logo {
  display: flex;
  align-items: left
  
}

.logo img {
  width: 10vw;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

.navbar {
  display: flex;
  position: relative;
  align-items: center;
  padding: 10px 20px;
  background: #333;
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 5px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffcfcf;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 15px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

/* Mobile Menu */
#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .nav-links {
  display: flex;
  flex-direction: column;
  background: #7e7e7e;
  position: absolute;
  top: 60px;
  right: 70px;
  left: 0px;
  padding: 10px 0;
  gap: 10px;
  width: 20vw;
}

#menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile View */
@media (max-width: 768px) {
  .nav-links {
      display: none;
      flex-direction: column;
  }
  .hamburger {
      display: flex;
  }
}

.img {
  margin: auto;
  display: block;
  width: 100vw;
  height: 50%;
}

.content {
  text-align: left;
  margin: auto;
  font-style: italic;
  margin-left: 30px;
  margin-top: 20px;
  width: 80vw;
}

.headerbooks {
  text-align: left;
  color: black;
  margin-left: 10px;
  font-size: 2vw;
  flex-grow: 1;
  margin: 0%;
  padding: 20px;

}

.flex-container {
  display: flex;
  text-align: center;
  
}

.flex-item {
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.columnparent {
  display: flex;
  text-align: center;
}

.column {
  background-color: #ffcfcf;
  margin: auto;
}

.card__thumbnail { 
  display: flex;
  justify-content: center;
  align-items: center; 
}

.card__thumbnail img {
  margin: auto;
  display: block;
  object-fit: cover; 
  align-items: center;
  padding: 20px;
}

.card__description { 
  line-height: 1.6em;
  color: black;
  margin: auto;
  font-size: 1rem;
}

footer {
  text-align: left;
  padding: 10px;
  background-color:	#ffaaaa;
  color: black;
  width: 100vw;

}
footer img {
  height: 40px; 
  margin: 0 10px; 
  transition: transform 0.3s ease;

}

footer img:hover {
  transform: scale(1.1);
  opacity: 0.8; 
}

.social-icons {
  display: flex;
  gap: 10px;
}
.social-icons a {
  text-decoration: none;
  color: #555;
  font-size: 24px;
}
.social-icons a:hover {
  color: #000;
}

/* Responsive layout */
@media (max-width: 390px) {
  header
  {
    width: 90vw;
  }
  .flex-container{
    width: 100vw;
  }

  .flex-item{
    width: 80vw;
  }

  .content {
    width: 100vw;
  }
  
  .columnparent,
  .flex-container {
    flex-direction: column;
  }

  .column {
    width: 80vw;
  }
  
  footer {
    width:100vw;
  }
  footer img {
    height: 30px; /* Reduces image size on smaller screens */
    margin: 5px;
  }
}
@media (max-width: 768px) {
  .nav-links {
      display: none;
      flex-direction: column;
  }
  .hamburger {
      display: flex;
  }
}