/* Universal Selector */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fonts */
@font-face {
  font-family: "Alagard";
  src: url("../assets/fonts/alagard.ttf");
}

@font-face {
  font-family: "PxSansNouveaux";
  src: url("../assets/fonts/px_sans_nouveaux.ttf");
}

/* H1 */
h1 {
  font-size: 3em;
  margin: 15% 1%;
}

/* H2 */
h2 {
  font-size: 1em;
  display: flex;
  justify-content: center;
}

/* H3 */
h3 {
  font-size: 0.5em;
  display: flex;
justify-content: center;
}

/* Paragraphs */
p {
  margin: 3%;
}

/* Images */
img {
  margin-top: 9%;
}

/* Body */
body {
  font-size: 32px;
  color: lavender;
  font-family: "PxSansNouveaux";
  background: url("../assets/images/SiteBGBlue2.png") no-repeat fixed center;
  background-size: cover;
  
}

/* Links */
a {
  text-decoration: none;
}

a:link {
  color: lavender;
}

a:visited {
  color: lavender;
}

a:hover {
  color: #d3bf7a;
}

a:active {
  color: lavender;
}

/* All <nav> */
nav {
  background-color: rgba(18, 16, 43, .7);
  text-transform: uppercase;
  font-size: 12px;
  border: lavender;
  border-width: 5px;
  border-style: double;
  /* "Centers" text */
  display: flex;
  justify-content: center;
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
}

nav a:link {
  color: lavender;
  padding: 1% 2%;
  /* Removes link underline */
  text-decoration: none;
}

nav a:visited {
  color: lavender;
}

nav a:hover {
  color: #d3bf7a;
  background-color: #12102b;
  border: #d3bf7a;
  border-width: 3px;
  border-style: solid;
}

nav a.active {
  color: lavender;
  background-color: #12102b;
  border: lavender;
  border-width: 2px;
  border-style: solid;
}

/* Navigation Boxes */

.navigationBox {
  /* Look */
  background-color: #12102b;
  border: lavender;
  border-style: solid;
  border-width: thin;
  color: lavender;
  font-size: 18px;
  width: 30%;
  /* Position */
  padding: 1%;
  margin: 2% 35%;
  z-index: 3;
  /* Flex Display */
  display: flex;
  justify-content: center;
}

/* Textboxes */
.textBox ul {
  /* Look */
  background-color: #12102b;
  border: lavender;
  border-style: solid;
  border-width: thin;
  color: lavender;
  font-size: 18px;
  /* Position */
  padding: 3%;
  margin: 2% 15%;
  line-height: 3;
}

.textBox li {
  list-style-type: square;
}

.textBox a {
  text-decoration: underline;
}

/* Page Title */
.pageTitle {
  display: flex;
  justify-content: center;
  font-family: "Alagard";
  margin-top: 7%;
  margin-bottom: 5%;
}

/* Header Description */
.headerDescription {

  margin: 1%;
}

/* Logo Image */
.logoImage {
  display: flex;
  justify-content: center;
  margin: 5% auto;
}


/* Project main */

.mainHeader {
  margin: 5%;
}

.mainSection {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: wrap;
}

.mainArticle {
  width: 60%;
  padding: 2%;
  margin: 1%;
  text-align: center;
  line-height: 2;
  background: #12102b;
  border: 2px solid lavender;
  font-size: 1.5vmax;

}

.mainArticle ul {
  text-align: start;
  margin-left: 1%;
}

.mainArticle img {
  width: 100%;
  height: 100%;
  margin-top: 2%;
  margin-bottom: 2%;
}

.readingText {
  text-align: start;
  line-height: 2.5;
  font-size: 18px;
}

/* Exercises */
.exerciseArticle {
  font-size: 18px;
  width: 30%;
  border-width: thin;
}

/* Intro */
.introArticle {
  width: 60%;
  padding: 2%;
  margin: 1%;
  text-align: center;
  line-height: 2;
  font-size: 1.5vmax;
}

.introArticle p {
  margin-top: 10%;
}

.introImageSection {
  margin: 1.5vmin;
  display: grid;
  grid-template-columns: repeat(4, 2fr);
  grid-gap: 10%;
}

.introImageSection img {
  width: 50%;
  height: auto;
}

/* Code from W3Schools */
/* https://www.w3schools.com/howto/howto_css_fullscreen_video.asp */
video.introVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -2;
}

/* Explore */
.exploreBody {
  background-image: url("../assets/images/SiteBGBW.png");
  /* transition: all .5s; */
}

/* Setting the textbox aesthetics */
#textbox {
  /* Textbox color */
  background-color: #12102b;
  /* Border */
  border: double lavender;
  border-width: 5px;
  /* Size */
  width: 750px;
  height: auto;
  /* Position */
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5%;
  padding: 5%;
  /* Font */
  font-family: sans-serif;
  color: lavender;
  padding: 0.5em;
  font-size: 18px;
  text-align: left;
  font-family: "PxSansNouveaux";
}

#submit-button {
  font-family: "PxSansNouveaux";
  text-align: center;
  color: lavender;
  background-color: #12102b;
  padding: 2%;
  margin: 2%;
  width: 50%;
  height: auto;
  margin-left: 25%;
}

.exploreImage {
  opacity: 1;
}

#text-parser {
  background-color: #01000f;
  border: lavender;
  border-width: 2px;
  border-style: solid;
  padding: 2%;
  margin: 2%;
  font-size: 20px;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Placeholder code by Fatos Bediu*/
/* https://answerly.io/blog/add-a-placeholder-to-a-contenteditable-div-with-css/ */
[contentEditable=true]:empty:before {
  content: attr(placeholder);
  opacity: 0.6;
}


/* Modal code from W3Schools  */
/* https://www.w3schools.com/howto/howto_css_modals.asp */

#myBtn {
    padding: 2%;
    position: fixed;
    top: 30%;
    z-index: 1;
    font-family: "PxSansNouveaux";
    text-align: center;
    color: lavender;
    background-color: #12102b;
    font-size: 12px;
}

#myNoteBtn {
  padding: 2%;
    position: fixed;
    top: 30%;
    z-index: 1;
    font-family: "PxSansNouveaux";
    text-align: center;
    color: lavender;
    background-color: #12102b;
    font-size: 12px;
}

.instructionsButton {
  margin: 1%;
  margin-left: 2%;
    width: 15%;
    height: auto;
}

.notificationButton {
  margin: 1%;
  margin-left: 85%;
    width: 10%;
    height: auto;
}

/* Modal code from W3Schools */
/* https://www.w3schools.com/howto/howto_css_modals.asp */
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 5; /* Sit on top */
  padding-top: 150px; /* Moves the window south */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  top: 0;
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #d3bf7a;
  text-decoration: none;
  cursor: pointer;
}

.noteClose {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.noteClose:hover,
.noteClose:focus {
  color: #d3bf7a;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Header */
.modal-header {
  padding: 2px 16px;
  background-color: #12102b;
  color: white;
  border-bottom: #888 double 1px;
}

/* Modal Body */
.modal-body {padding: 2px 16px;}

/* Modal Footer */
.modal-footer {
  padding: 2px 16px;
  background-color: #12102b;
  color: white;
  border-top: #888 double 1px;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #12102b;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

/* Notes */
/* From the CART 211 Tutorials */
.note {
  width:250px;
  min-height: 300px;
  height: auto;
  background: #F7D9A6;
  color: black;
  border: #994F00 solid 5px;
  font-size: 16px;
  margin:2%;
  margin-top: 30%;
  padding: 20px;
  box-shadow: 2px 2px 10px #333;
  transition:all .5s;
  cursor: pointer;
  overflow-wrap: break-word;
  white-space: normal;
}

.zoom {
  position:absolute;
  left:50%;
  transform: translate(-50%, -90%) scale(2, 2);
}

.noteSection {
  margin: 5vmin;
  display: grid;
  grid-template-columns: repeat(4, 2fr);
  grid-template-rows: 2fr;
  grid-gap: 2vmin;
}

.deleteButton {
  font-family: "PxSansNouveaux";
  text-align: center;
  color: lavender;
  background-color: #12102b;
  padding: 2%;
  margin: 2%;
  margin-top: 5%;
  width: 50%;
  height: auto;
  margin-left: 25%;
  font-size: 24px;
}

#dialog {
  font-family: "PxSansNouveaux";
  text-align: center;
  color: lavender;
  background-color: #12102b;
  
  /* Hiding the dialog so that it can be displayed later */
  display: none;
}

.ui-draggable .ui-dialog-titlebar {
  font-family: "PxSansNouveaux";
  text-align: center;
  color: lavender;
  background-color: #12102b;
}

.ui-icon {
  background-color: lavender;
}

/* Profile */
.profileSection {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: wrap;
}

.profileArticle {
  padding: 1%;
  background-color: #12102b;;
  border: 1px solid lavender;
  margin: 2% 1%;
  width: 30%;
  height: auto;
}

.profileArticle p {
  width: 100%;
  font-size: 20px;
}

.profileArticle #textbox {
 width: 100%;
 height: auto; 
}

.profileImageArticle {
  width: 30%;
  padding-bottom: .5%;
  float: left;
}

/* Centering image */
/* https://www.w3schools.com/howto/howto_css_image_center.asp */
.profileFigure img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
  height: auto;
}

.profileButton {
  font-family: "PxSansNouveaux";
  text-align: center;
  color: lavender;
  background-color: #12102b;
  padding: 2%;
  margin: 2%;
  margin-top: 5%;
  width: 50%;
  height: auto;
  margin-left: 25%;
  font-size: 12px;
}

.profileSubmitButton {
  font-family: "PxSansNouveaux";
  text-align: center;
  color: lavender;
  background-color: #12102b;
  padding: 2%;
  margin: 2%;
  margin-top: 5%;
  width: 50%;
  height: auto;
  margin-left: 25%;
  font-size: 12px;
}

