@import url("https://fonts.googleapis.com/css2?family=Metrophobic&family=Montserrat:wght@300;400;500;700&display=swap");

/* VARIABLES */
:root {
  --side-padding: 0.5rem;
  --main-font: "Metrophobic", sans-serif;
}
::-webkit-scrollbar {
  width:0.8rem;

}
::-webkit-scrollbar-track {
  background:#182021;
}
::-webkit-scrollbar-thumb{
  background:#182021;
  border:solid 1px #f4f4f4;
  width:0.6rem;
}
::-webkit-scrollbar-thumb:hover{
  background:#012F35;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* MOBILE STYLING*/
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  font-family: var(--main-font);
  background-color: #182021;
  color: #f4f4f4;
}

header {
  height: 7rem;
  background: #182021;
  padding: 0;
  z-index: 2;
}

header .menu li a{
  margin-bottom:1rem;
} 

main {
  grid-column: 2;
}

footer {
  color: #f4f4f4;
  background: rgb(24, 32, 33);
  background: -moz-linear-gradient(
    180deg,
    rgba(24, 32, 33, 1) 0%,
    rgba(1, 47, 53, 1) 100%
  );
  background: -webkit-linear-gradient(
    180deg,
    rgba(24, 32, 33, 1) 0%,
    rgba(1, 47, 53, 1) 100%
  );
  background: linear-gradient(
    180deg,
    rgba(24, 32, 33, 1) 0%,
    rgba(1, 47, 53, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#182021",endColorstr="#012f35",GradientType=1);
  padding: 1rem 0 0 0;

  margin-top:5rem;
}

a {
  text-decoration: none;
  color: #f4f4f4;
}


nav {
  background: #182021;
  padding-top: 1.1rem;
}


h1 {
  font-family: "Montserrat", sans-serif;
  font-size:3rem;
  margin-top:1rem;
  letter-spacing: 0.2rem;
}

h1::after {
  content:'';
  display: block;
  width: 70vw;
  height:3px;
  background-color:#f4f4f4;
  margin-top:0.5rem;
}


h2 {
  font-family: "Montserrat", sans-serif;

}
h3 {
  font-size: 2rem;
  margin-top: 1rem;
  color: #f4f4f4;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  letter-spacing: 0.3rem;
}


p {
  font-size:1.1rem;
}

em {
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1rem;
}

/* GRIDS */
.grid {
  display: grid;
}

.grid-wrapper {
  grid-template-columns: var(--side-padding) auto var(--side-padding);
}
.grid-2-col {
  grid-template-columns: 1fr;
}

.grid-3-col {
  grid-template-columns: 1fr;
}
.grid-4-col {
  grid-template-columns: 1fr;
}

.grid-6-col {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr;
}

.grid-2-3-col {
  grid-template-columns: 1fr;
}

.grid-nav {
  grid-template-columns: 1fr 11fr;
}

.full-grid-width {
  grid-column: 1 / 4;
}

.middle-grid {
  grid-column: 2;
}

/* ITEM CLASSES */

.mainpage-logo {
  opacity: 0;
}
.mainpage-logo a {
  cursor: default;
  pointer-events: none;
}
.mainpage-about {
  margin: 1rem var(--side-padding);
}
.active-page::after {
  content: "";
  display: block;
  width: 100%;
}

.mainpage-links {
  padding: 2rem 0;
}

.mainpage-buttons {
  padding:0 var(--side-padding);
}
.mainpage-buttons a{
  display:block;
  color:#f4f4f4;
  padding:2rem 1.5rem;
  text-align: center;
  border:solid 1px #f4f4f4;
  margin:1.5rem 0;
  letter-spacing: 0.2rem;
  transition:0.5s;
}
.mainpage-buttons a:hover {
  background-color:rgb(0,183,152);
  border:solid 1px rgb(0,183,152);
  letter-spacing: 0.3rem;
  font-size:1rem;
}

/* CARD STYLING */

.card {
  width: 100%;
  background: #182021;
  margin: 2rem 0;
  text-align: center;
  color:#f4f4f4;
}

.card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  width: 100%;
  color: #f4f4f4;
  letter-spacing: 0.2rem;
}

.card p {
  padding: 2rem;
  font-size: 1.1rem;
  border-bottom: solid 1px;
    border-left: solid 1px;
    border-right: solid 1px;
    border-top:solid 1px;
}

.card .heading-background {
  width: 100%;
  height: fit-content;
  background: rgb(0,183,152);
  background: -moz-linear-gradient(0deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  background: -webkit-linear-gradient(0deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  background: linear-gradient(0deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00b798",endColorstr="#004a54",GradientType=1);
  padding: 3rem 2rem;
}

/* ABOUT PANEL */

.mainpage-about h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}
.mainpage-about div {
  padding: 2rem 0;
}

.mainpage-about p {
  font-size: 1.1rem;
  padding: 0;
}


.about-image {
  background: url(../files/img/about-background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 200px;
}

/* HERO PANEL */
.hero-logo {
  width: 13rem;
}

#hero {
  height: calc(100vh - 7rem);
  background: #c4e4c4;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 3.5rem;
  background: rgb(0,183,152);
  background: -moz-linear-gradient(45deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  background: -webkit-linear-gradient(45deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  background: linear-gradient(45deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00b798",endColorstr="#004a54",GradientType=1);
  /* background: url(../files/img/landing-background.jpg);
  background-size: cover;
  background-repeat: no-repeat; */
}

#hero a i{
  z-index: 1;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  margin-left: -1.2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}
.hero-gradient {
  background: rgb(86, 237, 208);
  background: -moz-linear-gradient(
    0deg,
    rgba(86, 237, 208, 1) 0%,
    rgba(86, 237, 208, 0) 60%
  );
  background: -webkit-linear-gradient(
    0deg,
    rgba(86, 237, 208, 1) 0%,
    rgba(86, 237, 208, 0) 60%
  );
  background: linear-gradient(
    0deg,
    rgba(86, 237, 208, 1) 0%,
    rgba(86, 237, 208, 0) 60%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#8EFFE9",endColorstr="#8EFFE9",GradientType=1);
  opacity: 1;
}

.hero-gradient-2 {
  background: rgb(1, 47, 53);
  background: -moz-linear-gradient(
    0deg,
    rgba(1, 47, 53, 0) 20%,
    rgba(24, 32, 33, 1) 85%
  );
  background: -webkit-linear-gradient(
    0deg,
    rgba(1, 47, 53, 0) 20%,
    rgba(24, 32, 33, 1) 85%
  );
  background: linear-gradient(
    0deg,
    rgba(1, 47, 53, 0) 20%,
    rgba(24, 32, 33, 1) 85%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#012f35",endColorstr="#182021",GradientType=1);
  opacity: 1;
}

.hero-content {
  z-index: 1;
  margin-top: 9rem;
}

/* AUTHOR PAGE */

.author-heading {
  margin: 0rem -1rem;
}

.author-heading h1 {
  margin-left: 1rem;
}

.author-wrapper {
  grid-column:1/6;
  grid-row:1;
  padding:2rem 0;
}
.author-picture {
  height:auto;
  background:#182021;
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border:solid 1rem #182021;
  max-height: 40vh;
}

.author-background {
  grid-column:2/7;
  grid-row:1;
  z-index: -1;
  height: 100%;
  width:100%;
  background: rgb(0,183,152);
  background: -moz-linear-gradient(45deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  background: -webkit-linear-gradient(45deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  background: linear-gradient(45deg, rgba(0,183,152,1) 0%, rgba(0,74,84,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00b798",endColorstr="#004a54",GradientType=1);
}

.author-text-block{
  margin:8rem 0;
}

/* AUTHORS */
.lovecraft {
  background-image:url(../files/img/authors/lovecraft/hp-lovecraft.jpg);
}
.howard {
  background-image:url(../files/img/authors/howard/re-howard.jpg)
}
.derleth {
  background-image:url(../files/img/authors/derleth/A-derleth.jpg)
}

.books {
  margin: 3rem 0;
}
.books div {
  display:flex;
  margin:0;

}
.books div figure {
  position:relative;
}

.books div figure img {
  width:100%;
  margin-bottom:2rem;
}

.books figcaption {
  font-size:1.2em;
  text-align: center;
  margin-bottom:2rem;
}
.books h2 {
  margin-bottom:1rem;
  padding:0 3rem;
}
.books i {
  display:none;
  font-size:3rem;
}

.text-wrapper {
  padding: 1rem 0;
}
.text-wrapper p {
  margin:0 0 0.5rem 0;
}
.text-wrapper h2 {
  margin: 1rem 0 1rem 0;
}

/* MEDIA CLASSES */

.media-about{
  align-items: center;
  margin:4rem 0;
}

.media-about div {
  position:relative;
  
}
.media-image{
  width:100%;
}
.media-about .media-text {
  padding:2rem;
}

.media-text h2 {
  margin-bottom:1rem;
}




/* FOOTER STYLING */

.footer-logo {
  width: 5rem;
  margin: auto;
  margin-top: 0;
}
.footer-menu {
  text-align: left;
}
.footer-socials {
  display:flex;
  text-align: center;
  padding: 1rem 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size:1rem;
}
.footer-socials a {
  transition:0.5s;
  margin:0.3rem 0;
}
.footer-socials a:hover{
  color:#8EFFE9;
}
.copyright {
  text-align: center;
  border-top: solid 1px #8EFFE9;
  padding: 0.5rem;
}

/* MENU */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.menu,
.submenu {
  list-style-type: none;
}


.menu li a {
  display: block;
  margin: 0 0.5rem 0rem 0.5rem;
  transition: 0.5s;
}

.menu li.subitem a {
  padding: 1rem;
  transition:0.5s;
}

.menu li.subitem {
  background:rgba(24, 32, 33, 0);
  transition:0.5s;
}
.menu li.subitem:hover{
  background:rgba(24, 32, 33, 1);
}
.menu li.subitem:hover a{
  color: #8EFFE9;
}

.toggle {
  order: 1;
  font-size: 2rem;
  margin: 1rem;
  text-align: center;
  margin-top:1rem;
}
.toggle a {
  margin:0;
}
.item {
  order: 2;
  padding: 0.5rem 0;
  width: 100%;
  text-align: center;
  display: none;
  margin-top: 0.35rem;
}
.logo img {
  height: 4rem;
}

.active .item {
  display: block;
}
.submenu {
  display: none;
  height: 0;
  transition: 3s;
}


.submenu-active .submenu {
  display: block; /* display submenu */
  height: auto;
  background: rgb(1, 47, 53);
  background: -moz-linear-gradient(
    0deg,
    rgba(1, 47, 53, 1) 0%,
    rgba(1, 47, 53, 0) 100%
  );
  background: -webkit-linear-gradient(
    0deg,
    rgba(1, 47, 53, 1) 0%,
    rgba(1, 47, 53, 0) 100%
  );
  background: linear-gradient(
    0deg,
    rgba(1, 47, 53, 1) 0%,
    rgba(1, 47, 53, 0) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#012f35",endColorstr="#012f35",GradientType=1);
  border-top: solid 1px #8EFFE9;
}

.has-submenu {
  cursor: pointer;
}


.has-submenu > a::after {
  font-family: "Font Awesome 5 Free"; 
  font-size: 0.8rem;
  line-height: 1rem;
  font-weight: 900; 
  content: "\f078"; /* arrows next to dropdowns */
  color: #f4f4f4;
  padding-left: 0.5rem;
  text-decoration: none;
}

.subitem a {
  padding: 0.5rem 1rem;
}

.has-submenu i {
  font-size: 1rem;
}

footer .menu {
  flex-direction: column; 
  background: none;
}

footer .logo {
  order: 0;
}

footer .item {
  order: 1;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0.8rem 0;
}
footer.submenu-active {
  background: none;
}

footer .submenu-active .submenu {
  display: block;
  left: 0;
  top: 3rem;
  background: none;
  margin-top: 1rem;
}
footer .toggle {
  display: none; /* hide toggle in footer*/
}
footer .submenu-active {
  border-radius: 0;
}
footer nav {
  background: none;
}
footer .grid-3-col {
  margin-bottom: 1rem;
}
footer .subitem {
  background:rgba(24, 32, 33, 0.5);
}
.logo li a {
  margin:0;

}

#logo {
  margin:0;
  margin-left:1rem;
}
/* MEDIA QUERIES */
/* Bigger phones */
@media only screen and (min-width: 480px) {
  :root {
    --side-padding: 1rem;
  }
  .copyright {
    margin: 0;
  }
}
/* Portrait tablets */
@media only screen and (min-width: 786px) {
  :root {
    --side-padding: 2.5rem;
  }
  footer {
    padding: 1rem var(--side-padding) 0 var(--side-padding);
  }

  .grid-2-3-col {
    grid-template-columns: 2fr 3fr;
  }

  .mainpage-about {
    margin: 6rem 0;
  }

  .copyright {
    margin: 0 -2.5rem;
  }
  footer .grid-3-col {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    grid-column-gap: 1rem;
  }
  .footer-menu {
    order: 1;
    font-size: 0.7rem;
  }
  .footer-logo {
    order: 2;
    width: 8rem;
  }
  .footer-socials {
    order: 2;
    text-align: right;
  }
  footer .menu {
    align-items: flex-start;
  }
  footer li a {
    margin: 1rem 0;
  }
  footer .item {
    width: auto;
    text-align: left;
  }
  .mainpage-about div {
    padding: 2rem;
  }
  h1::after {
    width: 40vw;
  }
  .footer-socials {
    padding: 1rem 0;
    align-items: flex-end;
    justify-content: flex-start;
    flex-direction: column;
    font-size:0.8rem;
  }
}
/* Landscape tablets */
@media only screen and (min-width: 1024px) {
  :root {
    --side-padding: 5rem;
  }
  .copyright {
    margin: 0 -5rem;
  }
}
/* Desktops and laptops */
@media only screen and (min-width: 1165px) {

  header {
    padding: 0 var(--side-padding);
    }
    header .menu li a{
      margin-bottom:0;
    } 
  nav {
      display:grid;
      padding-top:0;
    }
  #mainpage-header{
    padding: 0 calc(var(--side-padding) + 10rem);
  }
  .grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3-col {
    grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
    grid-column-gap: 1rem;
  }
  .grid-4-col {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    grid-column-gap: 1rem;
  }
  .footer-logo {
    width: 10rem;
  }

  .mainpage-logo {
    display: none;
  }
  .mainpage-about div {
    padding-left: 2.5rem;
  }

  .mainpage-about p {
    padding-right: 10rem;
  }

  /* Desktop menu */
  .menu {
    flex-wrap: nowrap;
    background: none;
    justify-content: space-between;
  }
  .logo {
    order: 0;
  }
  
  .item {
    order: 1;
    position: relative;
    display: block;
    width: auto;
  }
  .button {
    order: 2;
  }
  .submenu-active .submenu {
    display: block;
    position: absolute;
    left: 0;
    top: 4.72rem;
  }
  .toggle {
    display: none;
  }
  .submenu-active {
    border-radius: 0;
  }
  footer .menu {
    align-items: flex-start;
  }
  footer li a {
    margin: 1rem 0;
  }
  footer .submenu-active .submenu {
    position: initial;
    display: block;
    left: 0;
    top: 3rem;
  }

  footer .subitem {
    background:none;
  }

  
  footer .menu li a {
    margin:0;
  }
  footer .menu li a:hover {
    color:#8EFFE9;
  }

  header .menu .item::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #f4f4f4;
    transition: width 0.3s;
    margin: auto;
    margin-top: 0.35rem;
  }
  header .menu .item:hover::after {
    content: "";
    display: block;
    width: 92%;
  }


  /* ITEM STYLES */
  .active-page::after {
    content: "";
    display: block;
    width: 92% !important;
  }
  .mainpage-content .card p {
    height: 25rem;
  }
  .card .heading-background {
    height: 10rem;
    display: flex;
    align-items: center;
  }
  .card p {
    display:flex;
    align-items: center;
  }

  .author-background {
    grid-column:2/7;
  }
  .logo a {
    margin-left:0!important;
  }
  h1::after {
    width: 20vw;
  }
.book-description{
  position:relative;
  top:0;
  display: flex;
    flex-direction: column;
    justify-content: center;

}
.books div figure img {
  width:100%;
  margin-bottom:0rem;
}

.book-description {
  position:absolute;
  top:0;
  width:100%;
  padding:2rem;
  background:rgba(24, 32, 33, 0.8);
  height:100%;
  transition:0.5s;
  opacity:0;
}

book-description p {
  font-size:0.8rem;
}

.books figure:hover .book-description {
  opacity:1;
}

.books i {
  display:block;
  position:absolute;
  top:1rem;
  left:1rem;
}

.books .fa-eye-slash {
  opacity:1;
  transition:0.4s;
  left:0.83rem;
}
.books .fa-eye {
  opacity:0;
  transition:0.4s;
}
.books figure:hover .fa-eye-slash {
  opacity:0;
}
.books figure:hover .fa-eye {
  opacity:1;
  z-index:2;
}
.media .card p {
  height: 26rem;
}

}
@media only screen and (min-width: 1535px) {
  :root {
    --side-padding: 5rem;
  }
  .mainpage-content .card p {
    height: 16rem;
  }
  .media .card p {
    height: 18rem;
  }
}
