/* @import url('https://fonts.googleapis.com/css?family=Noto+Serif|Lobster');
@import url('https://fonts.googleapis.com/css?family=Merriweather'); */
@import url('https://fonts.googleapis.com/css?family=Lobster|Marck+Script|Alegreya');

html, body {
  font-family: 'Lobster', cursive;
  margin: 0;
  padding: 0;
  font-size: 16px;
  scroll-behavior: smooth;
}

h1 {
  font-size: 2em;
  text-shadow: 2px 2px 0px brown;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.17em;
}

/*------------------ NAVIGATION -----------------*/

.navigation {
  background-color: rgba(54, 0, 0, 0.4);
  border-bottom: 1px solid white;
  transition: 0.5s;
  font-size: 20px;
  z-index: 999 !important;
  position: fixed;
  top: 0;
  display: flex;
  width: 100%;
}

#daily_before {
  transition: 0.2s;
}

.title {
  margin-left: 10%;
  text-shadow: 2px 2px 0px brown;
}

.title p a {
  text-decoration: none;
  color: white;
}

.title p {
  margin: 0px;
  font-size: 34px;
}

nav {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  padding: 12px;
  text-decoration: none;
  transition: 0.3s;
  opacity: 0.8;
  font-size: 18px;
}

nav ul li a:hover, #dropB.active {
  color: white;
  opacity: 1;
  transition: 0.3s;
  text-decoration: none;
}

.sub-menu li a:hover > img, .sub-menu li a.active > img {
    transition: 0.3s;
    opacity: 1;
}

.sub-menu li a:hover, .sub-menu li a.active {
    transition: 0.3s;
    opacity: 1;
    background-color: #fcfcf4;
    /* background-image: linear-gradient(rgba(54, 0, 0, 1), #fcfcf4); */
    color: black;
}

.nav ul li a:after {
    background: white !important;
}

.sub-menu ul li {
    border-right: 1px solid #360000;
}

.sub-menu ul li a {
    display: grid;
    padding: 7px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
    font-size: 15px;
    transition: 0.3s;
}

/* -------- SEARCH FIELD -------- */
#search-container {
    margin: auto;
    margin-right: 10%;
}

#search {
  height: 35px;
  font-size: 20px;
  display: inline-block;
  font-family: "Lato";
  font-weight: 100;
  outline: none;
  color: black !important;
  padding-left: 10px;
  width: 300px;
  position: relative;
  background-color: #fcfcf4;
  cursor: text;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border: 1px solid white;
  border-right: none;
  box-shadow: inset 5px 5px 10px -5px grey;
}

#search:focus {
  box-shadow: inset 5px 5px 10px -3px grey;
  background-color: #fcfcf4;
}

#search:hover {
    background-color: #fcfcf4;
}

#search-submit {
    border: 1px solid white;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  height: 35px;
  width: 50px;
  float: right;
  /* background-color: #8e1404; */
  background-image: linear-gradient(brown, #9a5858);
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

#search-submit:hover {
    /* background-color: #8e140491; */
    background-image: linear-gradient(#9a5858, brown);
}

/* ------------ END SEARCH ----------- */

.sub-menu {
  display: flex;
  visibility: hidden; /* hides sub-menu */
  opacity: 0;
  position: absolute;
  top: 100%;
  width: 100%;
  left: 0;
  transform: translateY(-2em);
  z-index: -1;
  transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
  /* background-color: grey; */
  background-color:#8e1404;
}

.sub-menu ul {
  margin: auto;
}

.sub-menu-parent:focus .sub-menu,
.sub-menu-parent:focus-within .sub-menu,
.sub-menu-parent:hover .sub-menu,
.sub-menu.active {
  visibility: visible; /* shows sub-menu */
  opacity: 1;
  z-index: 1;
  transform: translateY(1px);
  transition-delay: 0s, 0s, 0.3s; /* this removes the transition delay so the menu will be visible while the other styles transition */
}

/* -------------------- FRONT COVER ----------------- */

.landing-page {
    background-color: #fcfcf4;
}

.cover {
  background-image: url(../images/art.jpg);
  background-position: center;
  height: 500px;
  background-size: cover;
  /* -webkit-clip-path: polygon(100% 0, 100% 79%, 69% 91%, 60% 76%, 14% 92%, 0 78%, 0 0); */
  /* -webkit-clip-path: polygon(0 0, 100% 0, 100% 73%, 83% 80%, 76% 67%, 34% 85%, 22% 73%, 0 80%); */
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 98%, 78% 89%, 66% 92%, 35% 78%, 23% 81%, 0 69%);
  clip-path: polygon(0 0, 100% 0, 100% 98%, 78% 89%, 66% 92%, 35% 78%, 23% 81%, 0 69%);
}
/*
.cover:nth-child(2) {
  display: none;
  background-image: url(../images/k2.jpg);
  background-position: left;
}

.cover:nth-child(3) {
  display: none;
  background-image: url(../images/k3.jpg);
  background-position: right;
}

.cover:nth-child(4) {
  display: none;
  background-image: url(../images/k4.jpg);
  background-position: left;
}

.cover:nth-child(5) {
  display: none;
  background-image: url(../images/k5.jpg);
  background-position: center;
}

.cover:nth-child(6) {
  display: none;
  background-image: url(../images/k6.jpg);
  background-position: center;
}

.cover:nth-child(7) {
  display: none;
  background-image: url(../images/k8.jpg);
  background-position: center;
} */

#daily-before {
  text-align: left;
}

.daily-quote {
  word-wrap: break-word;
  font-family: 'Alegreya', serif;
  z-index: 100;
  display: table;
  position: absolute;
  top: 0;
  left: 0;
  margin-top: 50px;
  height: 360px;
  /* 450px */
  width: 100%;
}

#daily-quote {
    overflow: auto;
}

.dqmiddle {
  display: table-cell;
  vertical-align: middle;
}

.dqinner {
  text-shadow: 2px 2px 2px black;
  color: white;
  font-size: 1.8vw;
  font-style: italic;
  cursor: default;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  /*whatever width you want*/
}

#autor {
    font-size: 20px;
    font-family: 'Lobster', cursive;
}
/*
#previous {
    position: absolute;
    z-index: 200;
    top: 200px;
    width: 21%;
    display: flex;
    background-image: linear-gradient(to right, #8e1404, rgba(255,255,255,0));
}

#previous p {
    color: white;
    display: grid;
    padding: 10px;
    margin: 0;
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    cursor: default;
    text-shadow: 2px 2px 0px black;
    transition: 0.3s;
    margin-left: auto;
} */
/*
#previous p:hover #img, #img.active {
    transition: 0.3s;
    transform: translateX(-15px) rotate(-90deg);
}

#previous p:hover, #previous p.active {
    transition: 0.3s;
    transform: translateY(-5px);
}

#img, #img.inactive {
    transition: 0.3s;
    transform: rotate(-90deg) translateX(0px);
}

#previous p.inactive {
    transition: 0.3s;
    transform: translateY(0px);
} */

.copy-dq-wrapper {
    width: 100%;
    color: black;
    position: absolute;
    top: 470px;
    display: grid;
    letter-spacing: 5px;
}

.copy-dq-button {
    background-color: rgba(0,0,0,0);
    color: black;
    border: 1px solid black;
    transition: 0.3s;
    font-size: 16px;
    margin: auto;
    padding: 3px;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    display: inline-block;
    cursor: pointer;
}

.copy-dq-button:hover {
    background-color: black;
    border: 1px solid black;
    color: white;
    transition: 0.3s;
}

/* -------------------- MAIN BODY ----------------- */

.genre-title {
    letter-spacing: 12px;
    text-align: center;
    font-size: 1.8vw;
    padding-top: 35px;
    padding-bottom: 25px;
}

.line {
    background: black;
    width: 50px;
    height: 3px;
    margin: auto;
}

.genre {
    margin-top: 50px;
    box-shadow: 0px 0px 12px -6px darkgrey;
    background-color: #fcfcf4;
}

.sector {
  padding-top: 20px;
  box-shadow: 0px 21px 40px -38px black;
  background-color: #fcfcf4;
}

.random-quote {
  width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.random-quote p {
  user-select: none;
  transition: 0.3s;
  border-radius: 50px;
  text-align: center;
  width: 100%;
  margin: 0;
  font-size: 50px;
  border: 2px solid #fcfcf4;
  background-color: rgb(242, 242, 190);
  color: black;
  cursor: default;
}

.random-quote p:hover, .random-quote p.active {
  background-color: rgb(233, 233, 140);
  transition: 0.3s;
  border: 2px solid brown;
  box-shadow: 4px -3px 0px brown;
}

/* ------------------ SECOND SECTOR -------------- */

#up {
    position: fixed;
    z-index: 1000;
    bottom: 30px;
    right: 50px;
    width: 40px;
    opacity:0.2;
    transition: 0.4s;
}

#up:hover {
    opacity: 1;
    transform: translateY(-5px);
    transition: 0.4s;
}

.upload {
    background-color: #8e1404;
  width: 100%;
  display: grid;
  border-top: 1px solid white;
}

.upload-form div {
  margin: 5px;
}

.upload-form {
  display: flex;
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

.upload-form div h3 {
  text-align: center;
}

.upload input {
  outline: none;
  padding: 5px;
  border: 1px solid rgb(202,202,202);
  box-shadow: inset 0 0 3px grey;
  color: grey;
  border-radius: 3px;
}

input:focus, .upload textarea:focus, select:focus, button:focus {
  outline: 1px solid rgba(54, 0, 0, 1);
  border: 1px solid black;
  box-shadow: inset 0 0 8px grey;
}

.upload textarea {
  padding: 5px;
  border: 1px solid rgb(202,202,202);
  box-shadow: inset 0 0 3px grey;
  border-radius: 3px;
}

.upload select {
  background-color: white;
  outline: none;
  height: 36px;
  padding: 5px;
  border-radius: 3px;
}

.upload button {
  outline: none;
  font-size: 17px;
  transition: 0.3s;
  margin-top: 30px;
  height: 36px;
  width: 100px;
  padding: 0;
  background-color: rgb(77, 55, 55);
  color: white;
  border: none;
  border-radius: 3px;
}

.upload button:hover {
  transition: 0.3s;
  background-color: rgb(0, 0, 0);
  cursor: pointer;
}

.sector h2 {
  border-radius: 3px;
  background-color: black;
  color: white;
  /* width: 83%; */
  margin: auto;
  padding: 4px;
  padding-left: 15px;
}

.header-arr {
  float: right;
  width: 32px;
  transform: rotate(270deg);
  transition: 0.4s;
  margin-right: 10px;
  cursor: pointer;
}

.sector div table {
  border-collapse: collapse;
  padding: 20px;
}

.sector div table td {
  padding: 5px;
  width: 33%;
}

.no-results {
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
}

.quotes {
  margin-left: auto;
  margin-right: auto;
  max-height: 0;
  padding-bottom: 10px;
  overflow: hidden;
  transition:  max-height 0.6s ease-out;
  font-family: 'Alegreya', serif;
  /* width: 84%; */
  /* border-bottom: 1px solid rgb(202,202,202); */
}

.highlight {
  border-bottom: 1px solid grey;
  padding: 10px;
}

.copy-icon {
    transition: 0.1s;
    width: 30px;
    height: 30px;
    float: right;
    cursor: pointer;
    opacity: 0.7;
}

.copy-icon:hover {
    transition: 0.1s;
    opacity: 8;
}

.copy-icon.active {
    transition: 0.3s;
    opacity: 1;
}

.copy-alert {
    position: fixed;
    z-index: -1;
    bottom: 0;
    background-color: rgba(0,0,0,1);
    color: white;
    opacity: 0;
    transition: 0.5s;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    font-style: oblique;
}

.copy-alert p {
    text-align: center;
    margin: 0;
}

.header {
  margin-bottom: 10px;
  display: grid;
}

.icons {
  width: 60px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  margin-bottom: 30px;
}

.icons-nav {
    height: 30px;
    transition: 0.3s;
    opacity: 0.5;
    margin: auto;
}

.more-quotes {
  transition: 0.3s;
  font-size: 16px;
  color: white;
  margin: auto;
  padding: 3px;
  padding-left: 10px;
  padding-right: 10px;
  display: inline-block;
  border: 1px solid black;
  border-radius: 5px;
  background-color: black;
  cursor: pointer;
  margin-top: 20px;
}

.more-quotes-active:hover {
  transition: 0.3s;
  color: black;
  background: none;
}

.more-quotes-inactive {
  color: rgb(174,174,174) !important;
  background-color: rgb(221,221,221) !important;
  border-color: rgb(221,221,221) !important;
  cursor: default !important;
  user-select: none !important;
}

.show_more_wrapper{
  text-align: center;
}

/* -------------------------- CONTACTS ------------------------ */

.contacts {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

.contacts p {
  font-size: 15px;
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid rgba(202,202,202,0.5);
}

.contacts p a {
  color: white;
  text-decoration: none;
}
