/*==== Custom Fonts ====*/
@font-face {
    font-family: 'darkwomanregular';
    src: url('./fonts/darkwoman-webfont.woff2') format('woff2'),
         url('./fonts/darkwoman-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    /* Credits: Made by tudy1311 on 1001fonts.com */
}
@font-face {
    font-family: 'pistararegular';
    src: url('./fonts/pistara-webfont.woff2') format('woff2'),
         url('./fonts/pistara-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    /* Credits: Made by skomii on 1001fonts.com */
}
@font-face {
    font-family: 'libre_caslon_displayregular';
    src: url('./fonts/librecaslondisplay-regular-webfont.woff2') format('woff2'),
         url('./fonts/librecaslondisplay-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    /* Credits: Made by Impallari Type on 1001fonts.com */
}
@font-face {
    font-family: 'nimbus_monoregular';
    src: url('./fonts/nimbusmono-regular-webfont.woff2') format('woff2'),
         url('./fonts/nimbusmono-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    /* Credits: Made by URW++ on 1001fonts.com */
}
@font-face {
    font-family: 'montezregular';
    src: url('./fonts/montez-regular-webfont.woff2') format('woff2'),
         url('./fonts/montez-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    /* Credits: Made by Astigmatic One Eye Typographic Institute on 1001fonts.com */
}




/* BASE */

html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}
input[type=text],
input[type=password],
input[type=email],
input[type=number] {
  border: 0.1em solid #303030;
  padding:  1.5em 2em;
  margin: 0.8em 0;
  display: inline-block;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  font-weight: bold;
}

/* LAYOUT */
#header {
  width: 100%;
  text-align: center;
  margin: 2em auto;
}
#navbar {
  width: 100%;
  margin-bottom: 2em;
  background-color: #A2CDC3;
}
#article {
  padding: 3em;

}
.l-footer {
  width: 100%;
  padding: 2em;
  position: fixed;
  bottom: 0;
  right: 0;
  background-color: #A2CDC3;
}
#navpanel {
  float: left;
  padding: 0.5em;
  padding-top: 4em;
  min-width: 180px;
}
#sidebar {
  padding: 0.5em;
  padding-top: 4em;
  min-width: 250px;
}
.l-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

/* MODULES */
.home-header {
  margin: 0.8em auto;
  font-size: 6em;
  font-family: "montezregular", cursive;
  text-decoration: underline;
  color: #3E3236;
}



.home-navbar-list-items {
  display: flex;
  justify-content: center;
  padding: 1.4em;

}
.home-navbar-list-item {
  padding: 0.3em;
  font-size: 1.7em;
  display: inline-block;
  cursor: pointer;
}
.home-navbar-list-item#open-demo {
  border: 0.1em solid #384f61;
  background-color: #648C82;
  color: white;
}

.home-footer-contact-box {
  text-align: center;
}

.home-footer-contact-btns {
  margin-top: 1em;
}
.home-footer-contact-btn {
  display: inline-flex;
  flex-flow: row nowrap;
  justify-content: center;
  padding: 0.4em;
  border: 0.1em solid black;
  background-color: #648C82;
  width: 8%;
}
.footer-svg {
  height: 12%;
  width: 12%;
  margin-right: 0.4em;
  fill: white;
}
.footer-link {
  padding: 0.2em;
  color: white;
}

.content-box {
  height: 60vh;
  width: 75%;
  margin: 0 auto;
  text-align: center;
}
.content-header {
  font-size: 2em;
}
.content-header:nth-of-type(2) {
  margin-top: 2em;
}
.content-paragraph {
  font-size: 1.2em;
  margin-bottom: 1em;
}



.login-modal-box {
  position: absolute;
  height: 60%;
  width: 50%;
  top: 10%;
  left: 25%;
}
.login-modal-content {
  background-color: #A2CDC3;
  display: flex;
  flex-flow: column;
  padding: 2em;

}
.signup-modal-content {
  background-color: #ffd6cc;
  display: flex;
  flex-flow: column;
  padding: 2em;
}

.login-header {
  margin: 1.2em auto;
  font-size: 32px;
}
.login-photo {
  height: 20%;
  width: 30%;
  border-radius: 50%;
  margin: 0 auto;
}
.login-fieldname {
  display: block;
}
.login-field {
  width: 100%;
}
.login-btn {
  width: 100%;
  padding: 1em;
  margin-bottom: 1.3em;
  font-weight: bold;
  font-size: 0.9em;
}
.login-btn.login {
  background-color: #242421;
  color: white;
  text-transform: uppercase;
}
.login-btn.signup {
  background-color: #3E3236;
  color: white;
  text-transform: uppercase;
}
.no-login {
  text-align: center;
  font-style: italic;
  font-weight: bold;
  font-size: 1em;
}
.no-signup {
  text-align: center;
  font-style: italic;
  font-weight: bold;
  font-size: 1em;
}
.login-checkbox {
border: 0.1em solid black;
padding: 0.4em;
}
.login-checkbox-label {
  margin-left: 0.4em;
}
.login-fieldset {
  margin: 1.6em auto;
}
.login-cancel-btn {
  width: 20%;
  padding: 1em;
  margin-left: 10%;
  background-color: #ffad99;
  font-weight: bold;
}
.login-forgot-psw-text {
  margin-left: 45%;
}
#login {
  display:none;
}




/* Demo Module */
.demo-modal-box {
  display: block;
  margin: 0 auto;
  width: 100vw;
  height: 100vh;
  background-color: lightblue;
  z-index: 3;
  top: 0;
  left: 0;
  position: fixed;
}
.navpanel-items {
  text-align: center;
  font-size: 1.2em;
}
.navpanel-header {
  font-family: "libre_caslon_displayregular";
  margin-bottom: 1.2em;
}
.navpanel-link {
  display: block;
  margin: 0.4em auto;
}
.navpanel-btn {
  padding: 0.8em;
  margin: 1em auto;
  font-weight: bold;
}
.demo-content {
  display: flex;
  justify-content: center;
  padding: 8px;
  position: absolute;
  top: 200px;
  left: 550px;
}
.demo-resizable-div {
  padding: 10px;
  cursor: move;
}
.resizable {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: transparent;
  z-index: 3;
}
.resizable.nw {
  top: 16px;
  left: 208px;
  cursor: nwse-resize;
}
.resizable.ne {
  top: 16px;
  right: 301px;
  cursor: nesw-resize;
}
.resizable.sw {
  bottom: 120px;
  left: 208px;
  cursor: nesw-resize;
}
.resizable.se {
  bottom: 120px;
  right: 301px;
  cursor: nwse-resize;
}
.demo-textarea {
  padding: 20px;
  background-color: transparent;
  font-family: "libre_caslon_displayregular";
  resize: none;
  min-width: 850px;
  min-height: 600px;
  max-height: 90vh;
  max-width: 1800px;
}
.demo-word-counter-items {
  display: flex;
  align-items: center;
  flex-flow: column;
}
.demo-word-counter-item {
  padding: 1em;
  margin: 2% auto;
}
.demo-word-counter-btn {
  background-color: transparent;
  width: 10%;
  padding: 0.3em;
}
#characterCount, #hide-console {
  display: none;
}
.demo-sidebar input[type=button] {
  border-radius: 50%;
  height: 30px;
  width: 30px;
  margin: 0.3em auto;
  font-size: 0.6em;
}
.demo-font-option, .demo-font-size-option, .demo-music-option {
  border: none;
}
.demo-music-control, #pause {
  display: none;
}

/* Demo Font Options */
#ltr1 {font-family: "libre_caslon_displayregular", "Times New Roman", serif;}
#ltr2 {font-family: "pistararegular", arial, sans-serif;}
#ltr3 {font-family: "nimbus_monoregular", monospace;}
#ltr4 {font-family: "montezregular", cursive;}
#ltr5 {font-family: "darkwomanregular", fantasy;}

/* Demo Background Options */
#bg1 {background: url('../img/fog.jpg') center/cover no-repeat;}
#bg2 {background: url('../img/ocean.jpg') center/cover no-repeat;}
#bg3 {background: url('../img/sunset.jpg') center/cover no-repeat;}
#bg4 {background: url('../img/night.jpg') center/cover no-repeat;}
#bg5 {background: url('../img/wood.jpg') center/cover no-repeat;}


.demo-timer {
  margin: 2em auto;
}
.demo-countdown {
  font-size: 1.3em;
  font-weight: bold;
  font-family: "libre_caslon_displayregular";
  margin: 0 3em;
}
.timer-btn {
  padding: 0.6em;
  width: 38%;
  font-weight: bold;
}
#timerResumeBtn, #timerPauseBtn, #timer-sound {
  display: none;
}
.demo-save-btns {
  margin-bottom: 1em;
}
.demo-save-btn {
  padding: 0.5em;
  font-weight: bold;
}
.demo-share-btns {
  margin-top: 1em;
}
.demo-share-btn {
  padding: 0.5em;
  font-weight: bold;

}
.demo-close-btn {
  position: fixed;
  top: 15px;
  right: 35px;
  padding: 8px 10px;
  border-radius: 20%;
}
.demo-note {
  position: fixed;
  bottom: 15px;
  right: 25px;
  height: 40px;
  border-radius: 15%;
  padding: 0.5em 1em;
}
.save-tooltip-text {
  margin-top: 0.5em;
}
.share-tooltip-text {
  margin-top: 0.5em;
}
.tooltip-text {
  position: absolute;
  width: 170px;
  font-size: 1em;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  z-index: 102;
}
.tooltip-text::before {
  content: " ";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
}

/* STATES */
.home-navbar-list-item:hover,
.home-navbar-list-item:focus {
  font-weight: bold;
  text-decoration: underline;
}

.home-navbar-list-item#open-demo:hover,
.home-navbar-list-item#open-demo:focus-within {
  box-shadow: 5px 5px 5px grey;
}

.home-footer-contact-btn:hover,
.home-footer-contact-btn:focus-within {
  background-color: #252E2C;
  box-shadow: 5px 5px 5px grey;
}



.tooltip-text,
.tooltip-text::before,
.share-tooltip-text,
.save-tooltip-text {
  opacity: 0;
}
.navpanel-items:hover
.tooltip-text,
.tooltip-text::before {
  opacity: 1;
}
.demo-save-btns:hover .save-tooltip-text {
  opacity: 1;
}
.demo-share-btns:hover
.share-tooltip-text {
  opacity: 1;
}

.demo-note {
  opacity: 0.2;
}
.demo-note:hover {
  opacity: 1;
}

.demo-close-btn:hover {
  cursor: pointer;
}

.demo-font-option + .demo-font-option {
  opacity: 0;
}
.demo-font-options:hover
.demo-font-option + .demo-font-option {
  opacity: 0.5;
}
.demo-font-options:hover
.demo-font-option + .demo-font-option:hover {
  opacity: 1;
}



.demo-font-size-option + .demo-font-size-option {
  opacity: 0;
}
.demo-font-size-options:hover
.demo-font-size-option + .demo-font-size-option {
  opacity: 0.5;
}
.demo-font-size-options:hover
.demo-font-size-option + .demo-font-size-option:hover {
  opacity: 1;
}




.demo-background-option + .demo-background-option {
    opacity: 0;
}
.demo-background-options:hover
.demo-background-option + .demo-background-option {
  opacity: 0.5;
}
.demo-background-options:hover
.demo-background-option + .demo-background-option:hover {
  opacity: 1
}



.demo-music-option:nth-child(n+3) {
  opacity: 0;
}
.demo-music-options:hover
.demo-music-option:nth-child(n+3) {
  opacity: 0.5;
}
.demo-music-options:hover
.demo-music-option:nth-child(n+3):hover {
  opacity: 1;
}

/* Media Queries */
@media screen and (max-width: 360px) {
  .home-header {
    font-size: 4em;
  }
  .home-navbar-list-items {
    font-size: 0.8em;
  }
  .content-box {
    width: 100%;
    height: 100%;
  }
  .content-header {
    font-size: 1.6em;
  }
  .l-footer {
    width: 100%;
    padding: 2em;
    position: static;
  }
  .home-footer-contact-btns {
    display: block;
    margin: 1em auto;
  }
  .home-footer-contact-btn {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
  }
  .login-modal-content {
    height: 700px;
    width: 340px;
    transform: translate(-80px, -60px);
  }
  .signup-modal-content {
    height: 700px;
    width: 340px;
    transform: translate(-80px, -60px);
  }
  .login-header {
    text-align: center;
  }
  .login-photo {
    height: 50%;
    width: 50%;
  }
  .login-cancel-btn {
    width: 40%;
  }
  .login-forgot-psw-text {
    margin-left: 5%;
  }
  .no-login {
    margin: 0.8em auto;
  }
}
@media screen and (min-width: 361px) and (max-width: 460px) {
  .home-header {
    font-size: 4em;
  }
  .home-navbar-list-items {
    font-size: 0.8em;
  }
  .content-box {
    width: 100%;
    height: 100%;
  }
  .content-header {
    font-size: 1.6em;
  }
  .l-footer {
    width: 100%;
    padding: 2em;
    position: static;
  }
  .home-footer-contact-btns {
    display: block;
    margin: 1em auto;
  }
  .home-footer-contact-btn {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
  }
  .login-modal-content {
    height: 700px;
    width: 340px;
    transform: translate(-80px, -60px);
  }
  .signup-modal-content {
    height: 700px;
    width: 340px;
    transform: translate(-80px, -60px);
  }
  .login-header {
    text-align: center;
  }
  .login-photo {
    height: 50%;
    width: 50%;
  }
  .login-cancel-btn {
    width: 40%;
  }
  .login-forgot-psw-text {
    margin-left: 5%;
  }
  .no-login {
    margin: 0.8em auto;
  }
}
@media screen and (min-width: 600px) and (max-width: 800px) {
  .l-footer {
    position: static;
    margin-top: 1em;
  }
  .home-footer-contact-btn {
    width: 30%;
  }
  .login-photo {
    height: 50%;
    width: 50%;
  }
  .login-cancel-btn {
    width: 40%;
    margin-left: 2%;
  }
  .login-forgot-psw-text {
    margin-left: 10%;
  }
  .no-login {
    margin: 1.5em auto;
  }
  .no-signup {
    margin: 1.5em auto;
  }
}
