@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300&family=Poppins:wght@300&family=Roboto:wght@300&display=swap');

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  top: 20%;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --light: white;
  --grey: #494949;
  --dark: #3a3a3a;
  --gold: rgba(255, 187, 0, 0.828);
  --blue: #2eb1c2;
  --green: #04a126;
  --lakegreen: #01871e;
  --purple: #6416b3;
  --orange: #ed490e;
  --red: #e51106;
  --dark: black;

}

body {
  /* cursor: pointer; */
  background-image: url("../images/mathequations2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  -webkit-animation: delay 0.7s ease 0s 1 normal;
  -moz-animation: delay 0.7s ease 0s 1 normal;
  -ms-animation: delay 0.7s ease 0s 1 normal;
  animation: delay 0.7s ease 0s 1 normal;
}

html {
  position: relative;
  top: 14px;
}

#pencil {
  position: absolute;
  top: 2%;
  right: 2%;
}

/* Start of: Link Effects */

/* unvisited link */
a:link {
  color: rgb(236, 236, 236);
}

/* visited link */
a:visited {
  color: rgb(253, 253, 253);
}

/* mouse over link */
a:hover {
  color: rgb(225, 159, 5);
}

/* selected link */
a:active {
  color: rgb(45, 45, 45);
}


/* The Settings Link for the Calculator App */
#settings {
  font-family: "Orbitron", "Poppins", "Arial", sans-serif;
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 3px;
}

/* End of: Link Effects */

h1 {
  color: var(--dark);
  text-align: center;
  font-family: 'Poppins', 'Roboto', 'Oxygen', sans-serif;
  padding-bottom: 24px;
  letter-spacing: 2px;
  font-weight: 300;
}


/* h4:hover {
  -webkit-animation: reverseDelay 0.5s ease 0s 1 normal;
  -moz-animation: reverseDelay 0.5s ease 0s 1 normal;
  -ms-animation: reverseDelay 0.5s ease 0s 1 normal;
  animation: reverseDelay 0.5s ease 0s 1 normal;
} */

.hover-link {
  text-decoration: none;
  color: rgb(124, 194, 226);
  /* display: inline-block; */
  /* Ensures the icons align with the text */
}

.hover-link::before {
  display: inline-block;
  content: "straighten";
  /* Ruler icon */
  font-family: 'Material Icons';
  font-size: 20px;
  left: 0px;
  box-shadow: inset black;
  padding-right: 11px;
  /* Position it to the left of the link */
  opacity: 0;
  color: white;
  transition: opacity 0.3s ease;
}

.hover-link::after {
  display: inline-block;
  content: "edit";
  /* Pencil icon */
  font-family: 'Material Icons';
  font-size: 20px;
  right: 0px;
  box-shadow: inset black;
  color: rgb(248, 248, 248);
  padding-left: 11px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-link:hover::before,
.hover-link:hover::after {
  -webkit-animation: delay 0.2s ease 0s 1 normal;
  -moz-animation: delay 0.2s ease 0s 1 normal;
  -ms-animation: delay 0.2s ease 0s 1 normal;
  animation: delay 0.2s ease 0s 1 normal;
  opacity: 1;
  /* Show both icons on hover */
}

.scrolling {
  cursor: pointer;

}

/* Start of: Slide In Navigation Menu */
.navigation {
  cursor: grab;
  width: 250px;
  height: 800px;
  overflow-y: scroll;
  scroll-behavior: smooth;
  background-color: #f4f4f4;
  left: 20px;
  padding-top: 7px;
  margin-top: 7px;
  padding-bottom: 24px;
}

.navigation::-webkit-scrollbar {
  width: 10px;
  /* Width of the scrollbar */
}

.navigation::-webkit-scrollbar-track {
  border: 1px solid black;
  background: #ec823c;
}

.navigation::-webkit-scrollbar-thumb {
  background: #929191;
}

.navigation::-webkit-scrollbar-thumb:hover {
  background: #383838;
}

/* End of: Slide In Navigation Menu */


form {
  z-index: 1000;
  position: absolute;
  top: 110px;
}

table {
  z-index: 700;
  border: 24px solid rgb(61, 61, 61);
  margin-left: auto;
  margin-right: auto;
  padding: 11px 11px 24px;
  box-shadow: 3px 4px 7px #272727;
  box-shadow: 5px 5px 10px black;
}

input[type="button"] {
  z-index: 700;
  cursor: pointer;
  width: 100%;
  padding: 20px 40px;
  background-color: rgb(32, 32, 32);
  color: white;
  font-size: 24px;
  font-weight: bold;
  border: 1px solid #000;
  border-radius: 5px;
}

input[type="button"]:hover {
  cursor: pointer;
  color: #000;
  background-color: rgb(64, 64, 64);
  outline: none;
  box-shadow: 0 0 0 2px var(--colorShadeB),
    0 0.75em 0 0 var(--colorShadeA);
  transition: all 175ms cubic-bezier(0, 0, 1, 1);
}

/* box-shadow: none|h-offset v-offset blur spread color |inset|initial|inherit; */
input[type="button"]:active {
  box-shadow: inset 1px 1px 2px #babecc, inset -1px -1px 2px #fff;
  box-shadow: 3px 4px 7px #000;
  background-color: rgb(140, 140, 140);
}

input[type="text"] {
  padding: 20px 242px;
  font-size: 24px;
  font-weight: bold;
  border-radius: 5px;
  border: 1.5px solid black;
  text-align: left;
  box-shadow: inset 1px 1px 2px #babecc, inset -1px -1px 2px #fff;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

#display {
  position: static;
  margin-bottom: 7px;
  text-align: left;
}


/* Start of: Background Thumbnails */
.bgImageThumbnails {
  cursor: pointer;
  position: absolute;
  bottom: -550px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 200;
  text-align: center;
  left: 50%;
  transform: translate(-50%);
  padding: 7px;

}

#blank,
#mathequations1,
#mathequations2,
#mathequations3,
#mathequations4,
#unit_circle {
  z-index: 600;
  cursor: pointer;
  width: auto;
  height: 70px;
  border: 1px solid black;
  padding: 2px;
}


#mathequations1:hover {
  -webkit-filter: invert(100%);
  filter: invert(100%);
  border: 2px solid black;
  box-shadow: 1px 1px 3px inset;
}

#mathequations2:hover {
  -webkit-filter: invert(100%);
  filter: invert(100%);
  border: 2px solid black;
  box-shadow: 1px 1px 3px inset;
}

#mathequations3:hover {
  -webkit-filter: invert(100%);
  filter: invert(100%);
  border: 2px solid black;
  box-shadow: 1px 1px 3px inset;
}

#mathequations4:hover {
  -webkit-filter: invert(100%);
  filter: invert(100%);
  border: 2px solid black;
  box-shadow: 1px 1px 3px inset;
}

#unit_circle:hover {
  -webkit-filter: invert(100%);
  filter: invert(100%);
  border: 2px solid black;
  box-shadow: 1px 1px 3px inset;
}


#blank:hover {
  -webkit-filter: invert(100%);
  filter: invert(100%);
  border: 2px solid black;
  box-shadow: 1px 1px 3px inset black;
}

/* End of: Background Thumbnail  */

/* Start of: Music Animation and Music Components */
.music-note1 {
  width: 140px;
  position: absolute;
  -webkit-animation: newspaper 7s ease-in-out 0s infinite normal;
  -moz-animation: newspaper 7s ease-in-out 0s infinite normal;
  -ms-animation: newspaper 7s ease-in-out 0s infinite normal;
  animation: newspaper 7s ease-in-out 0s infinite normal;
}

#music-note1 {
  z-index: 100;
  top: 14%;
  left: 2%;

}

.music-pie-note {
  width: 170px;
  position: absolute;
  -webkit-animation: newspaper2 6s ease-in-out 0s infinite normal;
  -moz-animation: newspaper2 6s ease-in-out 0s infinite normal;
  -ms-animation: newspaper2 6s ease-in-out 0s infinite normal;
  animation: newspaper2 6s ease-in-out 0s infinite normal;
}

#music-pie-note {
  z-index: 200;
  top: 22%;
  right: 2%;

}

.music-note1,
.music-pie-note {
  /* animation-play-state: paused; */
  /* animation-fill-mode: forwards; */
  /* Maintain end state */
  transition: opacity 0.5s ease;
}

/* Start of: Unit Circle Image Link */

#unit_circle_link {
  cursor: pointer;
  position: absolute;
  top: 66%;
  right: 1%;
  border: 1px solid black;
  width: 100px;
  transition: all 0.5s ease
}

#unit_circle_link:hover {
  position: absolute;
  -webkit-filter: invert(100%);
  filter: invert(100%);
  border: 2px solid black;
  box-shadow: 1px 1px 3px inset;

}

/* End of: Unit Circle Image Link */

/* Start of: GalaxyFX Animation Button */
.galaxyFX {
  cursor: pointer;
  position: absolute;
  top: 85%;
  right: 1%;
  width: 125px;
  transition: 1s all ease;
}

.galaxyFXVisible {
  cursor: pointer;
  position: absolute;
  top: 78%;
  right: 1%;
  width: 125px;
  transition: 1s all ease;
}



.glow-on-hover {
  width: 125px;
  height: 50px;
  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  z-index: 0;
  border-radius: 10px;
}

.glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, #8800ff, #ff7300, #fffb00, #227402, #00ffd5, #5a69af, #7a00ff, #ff00c8, #ff7300);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.glow-on-hover:active {
  color: #000;
}

.glow-on-hover:active:after {
  background: transparent;
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* End of: GalaxyFX Animation Button */
.music_toggle {
  position: absolute;
  top: 93%;
  right: 6%;
}

#music {
  position: absolute;
  cursor: pointer;
  width: 100px;
}

#music:hover {
  -webkit-filter: invert(100%);
  filter: invert(100%);
}

/* End of: Music Components */

/* Start of: Animations */
/* Fade-In */
.fadeout {
  -webkit-animation: fadeout 0.5s;
  -ms-animation: fadeout 0.5s;
  animation: fadeout 0.5s;
}

.fadein {
  -webkit-animation: fadein 0.5s;
  -ms-animation: fadein 0.5s;
  animation: fadein 0.5s;
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-ms-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@-webkit-keyframes fadeout {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@-ms-keyframes fadeout {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@-webkit-keyframes musicNoteMove {
  0% {
    Right: -30px;
    top: 800px;
  }

  25% {
    Right: 1000px;
    top: 800px;
  }

  50% {
    Right: 1800px;
    top: 800px;
  }

  75% {
    Right: 1000px;
    top: 800px;
  }

  100% {
    Right: -30px;
    top: 800px;
  }

}

@keyframes musicNoteMove {
  0% {
    Right: -30px;
    top: 800px;
  }

  25% {
    Right: 1000px;
    top: 800px;
  }

  50% {
    Right: 1800px;
    top: 800px;
  }

  75% {
    Right: 1000px;
    top: 800px;
  }

  100% {
    Right: -30px;
    top: 800px;
  }
}

@-webkit-keyframes sk-scaleout {
  0% {
    -webkit-transform: scale(0);
  }

  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

@keyframes sk-scaleout {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  100% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    opacity: 0;
  }
}

/* End of: Animations */

/* Start of: Media Query Breakpoints */
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

  h1 {
    display: none;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 400px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}

/* End of: Media Query Breakpoints */