/* 1. Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Root defaults */
html {
  font-size: 100%; /* 16px default */
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  color: #111;
  background-color: #4d3636;
}

/* 3. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  margin-bottom: 1rem;
  padding: 0;
}

p {
  margin-bottom: 1rem;
}

/* 4. Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* 5. Images */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Forms */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Layout helper */
.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: center;
}
#header {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 60px;
  background-color: #860101;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}
#header-left {
  display: flex;
  width: 33%;
  height: 55px;
  align-items: center;
  justify-content: left;
  padding-left: 20px;
  gap: 20px;
}
.header-logo {
  display: block;
  width: 120px;
  height: 36px;
}
/*--DROPDOWN MENU--------------------------*/
.header-dropdown {
  display: block;
  width: 32px;
  height: 34px;
  cursor: pointer;
}
.header-dropdown-menu {
  position: absolute;
  display: flex;
  flex-direction: row;
  top: 60px;
  left: 28px;
  width: 97%;
  background: #242424;
  padding: 0;
  margin: 0;
  list-style: none;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  transition: 0.25s ease;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 5000;
}
.header-dropdown-column {
  display: flex;
  flex-direction: column;
  width: 267px;
  height: auto;
  padding: 20px;
  padding-left: 30px;
  border-right: 1px solid #3b3b3b;
}
.header-dropdown-author {
  display: flex;
  flex-direction: column;
  width: 50px;
  height: auto;
  color: #ffffff;
  padding: 20px;
  border-right: 1px solid #3b3b3b;
}
.header-dropdown-menu.show {
  transform: scaleY(1);
  opacity: 1;
}
.header-dropdown-menu a {
  display: block;
  padding: 10px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.header-dropdown-menu a:hover {
  background: blue;
}
/*--END DROPDOWN MENU----------------------*/
#header-mid {
  display: flex;
  width: 34%;
  height: 55px;
}
#header-right {
  display: flex;
  width: 33%;
  height: 55px;
  align-items: center;
  gap: 10px;
  padding-left: 200px;
}
#header-search {
  display: flex;
  width: 150px;
  height: 34px;
  align-items: center;
  background-color: #ffffff;
  border-radius: 30px;
  padding-left: 8px;
}
.search {
  display: block;
  width: 20px;
  height: 20px;
}
.login {
  display: flex;
  width: 150px;
  height: 34px;
  background-color: #c80000;
  color: #ffffff;
  font-weight: 500;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
}
.login:hover {
  background-color: red;
  cursor: pointer;
}
.username {
  width: 200px;
  height: 34px;
  background: none;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
  color: #ffffff;
}
#body-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  justify-content: center;
}
#body-main-genre {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  align-items: end;
  margin-bottom: 100px;
  margin-right: 50px;
}
/*--GENRE------------------------------------*/
#genre-wrap-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  align-items: end;
  justify-content: right;
  margin-top: 50px;
}
#genre-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin-top: 40px;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
#genre-wrap-genrePage {
  display: flex;
  flex-direction: column;
  width: 75%;
  height: auto;
  margin-top: 40px;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.genre-title {
  display: flex;
  width: 85%;
  height: 24px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}
#genre-row {
  display: flex;
  flex-direction: row;
  width: 85%;
  height: auto;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.genre {
  display: flex;
  width: 242px;
  height: 321px;
  overflow: hidden;
  margin-right: 10px;
  transition: 0.5s;
}
.genre:hover {
  transform: scale(1.1);
  cursor: pointer;
}
#genre-display {
  position: absolute;
  top: 61px;
  left: 0;
  width: 500px;
  height: 125%;
  overflow: hidden;
  margin-bottom: 20px;
  padding-left: 45px;
  padding-top: 45px;
  background-color: #0d0d0d;
}
#genre-display-img {
  width: 400px;
  height: auto;
  object-fit: contain;
}
#genre-info {
  width: 400px;
  font-size: 15px;
  line-height: 1.4;
  color: #ffffff;
  padding: 10px;
  background: none;
  padding-top: 26px;
}
/*--GENRE END---------------------------------*/
#footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 350px;
  background-color: #242424;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
  color: #969696;
  position: relative;
  z-index: 10;
}
#footer a {
  color: #969696;
}
#footer a:hover {
  color: red;
  text-decoration: underline;
}
#footer-top {
  display: flex;
  width: 85%;
  height: 240px;
  justify-content: center;
  border-bottom: 1px solid #3b3b3b;
}
#footer-top-header {
  display: flex;
  width: 85%;
  height: auto;
  padding-top: 30px;
}
#footer-top-header-left {
  display: flex;
  flex-direction: column;
  width: 15%;
  height: auto;
  justify-content: left;
}
#footer-top-header-mid {
  display: flex;
  flex-direction: column;
  width: 15%;
  height: auto;
  justify-content: left;
}
#footer-top-header-right {
  display: flex;
  flex-direction: column;
  width: 70%;
  height: auto;
}
#footer-top-header-right-links {
  display: flex;
  width: 100%;
  height: auto;
}
.links {
  display: flex;
  width: 25%;
  height: auto;
  padding-left: 20px;
  border-left: 1px solid #3b3b3b;
}
#footer-mid {
  display: flex;
  width: 85%;
  height: 60px;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #3b3b3b;
}
#footer-mid-center {
  display: flex;
  width: 50%;
  height: auto;
  justify-content: center;
  align-items: center;
}
#footer-bottom {
  display: flex;
  width: 80%;
  height: 60px;
  justify-content: center;
  align-items: center;
}
#footer-bottom-left {
  display: flex;
  width: 33%;
  height: 30px;
  align-items: center;
}
#footer-bottom-mid {
  display: flex;
  width: 34%;
  height: 30px;
  align-items: center;
}
#footer-bottom-right {
  display: flex;
  width: 33%;
  height: 30px;
  justify-content: right;
  align-items: center;
}

/*--MOBILE DEVICES------------------------------------------------------*/
@media (max-width: 768px) {
  #header {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 60px;
    background-color: #860101;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
  }
  #header-left {
    display: flex;
    width: 250px;
    height: 55px;
    align-items: center;
    justify-content: left;
    padding-left: 10px;
    gap: 20px;
  }
  @supports (-moz-appearance: none) {
    #header-left {
      display: flex;
      width: 350px;
      height: 55px;
      align-items: center;
      justify-content: left;
      padding-left: 10px;
      gap: 20px;
    }
  }

  .header-logo {
    display: block;
    width: 120px;
    height: 36px;
  }
  /*--DROPDOWN MENU--------------------------*/
  .header-dropdown {
    display: block;
    width: 32px;
    height: 34px;
    cursor: pointer;
  }
  .header-dropdown-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 60px;
    left: 0;
    width: 100%;
    background: #242424;
    padding: 0;
    margin: 0;
    list-style: none;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: 0.25s ease;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 5000;
  }
  .header-dropdown-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    align-items: center;
    padding: 20px;
    padding-left: 30px;
    border-right: 1px solid #3b3b3b;
  }
  .header-dropdown-author {
    display: none;
  }
  .header-dropdown-menu.show {
    transform: scaleY(1);
    opacity: 1;
  }
  .header-dropdown-menu a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
  }
  .header-dropdown-menu a:hover {
    background: blue;
  }
  /*--END DROPDOWN MENU----------------------*/
  #header-mid {
    display: none;
  }
  #header-right {
    display: flex;
    width: 300px;
    height: 55px;
    align-items: center;
    justify-content: right;
    gap: 10px;
    padding-left: 0;
    padding-right: 10px;
  }
  #header-search {
    display: none;
    width: 160px;
    height: 34px;
    align-items: center;
    background-color: #ffffff;
    border-radius: 30px;
    padding-left: 8px;
  }
  .search {
    display: block;
    width: 20px;
    height: 20px;
  }
  .login {
    display: flex;
    width: 100px;
    height: 34px;
    background-color: #c80000;
    color: #ffffff;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
  }
  .login:hover {
    background-color: red;
    cursor: pointer;
  }
  .username {
    display: none;
    width: 200px;
    height: 34px;
    background: none;
    justify-content: center;
    align-items: center;
    padding-top: 4px;
    color: #ffffff;
  }
  #body-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: center;
  }
  #body-main-genre {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    align-items: end;
    margin-bottom: 100px;
    margin-right: 50px;
  }
  /*--GENRE------------------------------------*/
  #genre-wrap-container {
    display: flex;
    width: 100%;
    height: auto;
    margin-top: 1050px;
  }
  #genre-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin-top: 40px;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }
  #genre-wrap-genrePage {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin-top: 0;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
  }
  .genre-title {
    display: flex;
    width: 75%;
    height: 24px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    justify-content: center;
  }
  #genre-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .genre {
    display: flex;
    width: 350px;
    height: auto;
    overflow: hidden;
    margin-right: 0;
    transition: 0.5s;
  }
  @supports (-moz-appearance: none) {
    .genre {
      width: 280px;
    }
  }
  .genre:hover {
    transform: scale(1);
    cursor: pointer;
  }
  #genre-display {
    position: absolute;
    top: 61px;
    left: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 45px;
    padding-bottom: 30px;
    background-color: #0d0d0d;
  }
  #genre-display-img {
    width: 400px;
    height: auto;
    object-fit: contain;
  }
  #genre-info {
    width: 400px;
    font-size: 15px;
    line-height: 1.4;
    color: #ffffff;
    padding-right: 50px;
    padding-left: 10px;
    padding-top: 0;
    padding-bottom: 0;
    background: none;
    padding-top: 26px;
  }
  @supports (-moz-appearance: none) {
    #genre-info {
      padding-right: 120px;
    }
  }
  /*--GENRE END---------------------------------*/
  #footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 200px;
    background-color: #242424;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    color: #969696;
    position: relative;
    z-index: 10;
  }
  #footer a {
    color: #969696;
  }
  #footer a:hover {
    color: red;
    text-decoration: underline;
  }
  #footer-top {
    display: none;
  }
  #footer-top-header {
    display: flex;
    width: 85%;
    height: auto;
    padding-top: 30px;
  }
  #footer-top-header-left {
    display: flex;
    flex-direction: column;
    width: 15%;
    height: auto;
    justify-content: left;
  }
  #footer-top-header-mid {
    display: flex;
    flex-direction: column;
    width: 15%;
    height: auto;
    justify-content: left;
  }
  #footer-top-header-right {
    display: flex;
    flex-direction: column;
    width: 70%;
    height: auto;
  }
  #footer-top-header-right-links {
    display: flex;
    width: 100%;
    height: auto;
  }
  .links {
    display: flex;
    width: 25%;
    height: auto;
    padding-left: 20px;
    border-left: 1px solid #3b3b3b;
  }
  #footer-mid {
    display: flex;
    width: 85%;
    height: 60px;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #3b3b3b;
  }
  #footer-mid-center {
    display: flex;
    width: 50%;
    height: auto;
    justify-content: center;
    align-items: center;
  }
  #footer-bottom {
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 60px;
    justify-content: center;
    align-items: center;
  }
  @supports (-moz-appearance: none) {
    #footer-bottom {
      width: 95%;
      height: 60px;
      justify-content: center;
      align-items: center;
      font-size: 12px;
    }
  }
  #footer-bottom-left {
    display: flex;
    width: 90%;
    height: 30px;
    align-items: center;
    justify-content: center;
  }
  #footer-bottom-mid {
    display: none;
  }
  #footer-bottom-right {
    display: flex;
    width: 90%;
    height: 30px;
    justify-content: center;
    align-items: center;
  }
}
