:root {
  --main-bg: hsl(180, 20%, 65%);
  --header-bg: hsl(180, 20%, 41%);
  --second-color: hsl(0, 0%, 95%);
  --light: white;
  --dark-main-color: hsl(180, 17%, 38%);
  --nav-height: 80px;
  --dark-headline: hsl(180, 15%, 30%);
}

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

body {
  font-family: "Exo", sans-serif;
  overflow-x: hidden;
}

html {
  scroll-padding-top: var(--nav-height);
  scroll-behavior: smooth;
}

h2 {
  font-size: 2.2rem;
  font-weight: 400;
  text-align: center;
  color: var(--dark-headline);
  margin-bottom: 1rem;
}

/*style header-----------------------------*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1;
  background-color: var(--header-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.navigation a {
  text-decoration: none;
  font-family: "Barlow", sans-serif;
  color: var(--light);
  padding: 0.63rem 1.25rem;
  font-size: 1.313rem;
  font-weight: light;
}

.navigation a:hover {
  color: var(--link-color);
  font-weight: 500;
  background-color: var(--light);
}

.overlay-content {
  display: none;
}

.openbtn {
  display: none;
}

.closebtn {
  display: none;
  font-family: "Kaushan Script", cursive;
}

/*style main---------------------------------*/
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  top: var(--nav-height);
}

.my_cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.container {
  width: 100%;
  height: 100%;
  max-height: 79vh;
  aspect-ratio: 689 / 290;
}

.text {
  top: 5vh;
  bottom: 6vh;
  color: #ffffff;
}

.title {
  font-size: clamp(2.6rem, 9vw, 3.75rem);
  font-family: "Kaushan Script", cursive;
  margin-bottom: 1.5vh;
  margin-top: 1.5svh;
  color: #5d8282;
  /* font-weight: 600; */
}

/*style biography section-------------------------*/
#biographie {
  display: flex;
  flex-direction: column;
  padding-top: 4.063rem;
  background-color: var(--second-color);
  width: 100%;
}

.tribute-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 30px 10px 50px;
}

.tribute-info img {
  width: 12.5rem;
  height: 12.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.tribute-info p {
  width: 50rem;
  line-height: 1.8;
  padding: 1.25rem;
  font-size: 1.125rem;
}

.light {
  color: var(--light);
}

.dark {
  color: var(--dark-main-color);
}

/*style Bestseller section-------------------------*/
.bestseller {
  background-color: var(--main-bg);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 4.063rem;
}

li {
  list-style-type: none;
  font-size: 1.125rem;
}

.books {
  display: grid;
  gap: 1.875rem;
  grid-template-columns: 1fr;
  margin-inline: auto;
  width: 100%;
  max-width: 1000px;
  padding: 1.875rem 1.875rem 5rem 1.875rem;
}

@media (min-width: 768px) {
  .books {
    grid-template-columns: repeat(2, 1fr);
  }
}

.books-poster {
  display: grid;
  gap: 1.563rem;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: start;
  margin-inline: auto;
  background-color: #f2f2f2;
  box-shadow: 0 10px 10px -6px rgb(0 0 0 / 0.2);
  border-radius: 0.625rem;
  padding: 1.563rem;
  width: 100%;
  max-width: 500px;
}

@media (min-width: 375px) {
  .books-poster {
    grid-template-columns: auto 1fr;
  }
}

.books-poster img {
  height: 150px;
  width: 110px;
  object-fit: contain;
}

.books-poster ul {
  list-style: none;
  padding-left: 0;
}

/*style award section-------------------------------*/

#preise {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 4.063rem;
  background-color: var(--second-color);
  width: 100%;
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.25rem auto;
  padding-bottom: 2.5rem;
  max-width: 1345px;
}

.award-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22rem;
  padding: 1.25rem;
  background-color: var(--main-bg);
  border-radius: 0.75rem;
  box-shadow: 0.313rem 0.625rem 0.875rem rgb(81, 82, 82, 0.4);
  margin: 2.188rem;
}

@media screen and (max-width: 500px) {
  .award-card {
    width: 100%;
    max-width: 290px;
    padding: 1.25rem;
    margin: 1.24rem 0.938rem;
  }
}

.award-card img {
  width: 9.375rem;
  height: 9.375rem;
  border-radius: 50%;
  border: 0.063rem solid #cccccc;
  object-fit: cover;
}

.award-card p {
  margin: 0.625rem 0;
  font-size: 1.125rem;
}

.award-card p:first-of-type {
  margin-top: 1.875rem;
}

/* style info section -----------------------------*/

#info {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 0;
}

.content-logos {
  display: flex;
  flex-direction: row;
  padding: 1.25rem 0;
}

.logo {
  margin: 0 0.938rem;
}

/* style footer ----------------------------------*/

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  position: relative;
  top: 3.063rem;
  background-color: var(--header-bg);
  color: var(--light);
  font-size: 0.875rem;
}

footer a {
  text-decoration: none;
  color: var(--light);
}

/* media queries for tablets with screens 768px-----------*/

@media screen and (max-width: 768px) {
  .navigation a {
    padding: 0.625rem 0.75rem;
    font-size: 1.125rem;
  }

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

  .img-div {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .tribute-info {
    flex-direction: column;
  }

  .tribute-info p {
    width: 100%;
    font-size: 1rem;
  }

  .tribute-info img {
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
    object-fit: cover;
  }

  .row {
    margin: 0 auto;
    padding: 2.5rem;
  }

  footer {
    gap: 1rem;
  }

  /* media queries for mobiles with screens 500px-----------*/
}

@media screen and (max-width: 500px) {
  header {
    justify-content: flex-end;
  }

  .img-div {
    width: 100%;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  /* style navigation bar for small devices -----*/

  .navigation {
    display: none;
  }

  .overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
  }

  .overlay-content {
    position: relative;
    top: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-top: 0.625rem;
    padding-left: 2.5rem;
  }

  .overlay-content a,
  .closebtn {
    text-decoration: none;
    font-family: "Kaushan Script", cursive;
    color: #d8d4d4;
    padding: 1.625rem 1.25rem;
    font-size: 1.875rem;
    font-weight: bold;
  }

  .overlay-content a:hover {
    color: var(--main-bg);
  }

  .closebtn {
    display: block;
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 3.75rem;
    cursor: pointer;
  }

  .openbtn {
    display: block;
    float: right;
    font-size: 2.188rem;
    padding: 10px 20px;
    color: var(--light);
    font-weight: bold;
    cursor: pointer;
  }

  /* improve hero image position ------------------*/

  .img-div {
    background-position: center right 40%;
  }

  .img-caption {
    font-size: 21.375rem;
    margin-top: 0px;
  }

  .tribute-info {
    padding: 30px 30px 50px;
  }

  .tribute-info p {
    width: 100%;
    padding: 20px 0;
  }

  .row {
    margin: 0 auto;
    padding: 40px 30px;
    max-width: 375px;
  }

  .award-card p {
    margin: 10px;
  }

  .award-card p:first-of-type {
    margin-top: 30px;
  }

  footer {
    gap: 1rem;
    padding-top: 2rem;
  }
}
