/* CSS RESET START v */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* CSS RESET END ^ */


/* FONTS START v */

.im-fell-english-regular {
  font-family: "IM Fell English", serif;
  font-weight: 400;
  font-style: normal;
}

.im-fell-english-regular-italic {
  font-family: "IM Fell English", serif;
  font-weight: 400;
  font-style: italic;
}

/* FONTS END ^ */


/* NAV ELEMENTS v */

h1 {
    text-align: center;
    font-size: 40px;
}

.settings {
  position: absolute;
  top: 50px;
  left: 80px;
  width: 50px;
  height: 50px;
  transition: ease;
  z-index: 2;
}

.settings-wrapper {
  position: relative;
  z-index: 3;
}

.settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.settings-wrapper .settings {
  position: static;
}

.settings-menu {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 180px;
  padding: 10px;
  color: white;
  font-family: "IM Fell English", serif;
  background: rgb(23, 23, 23);
  border: 2px solid black;
}

.settings-menu[hidden] {
  display: none;
}

#reset-tint,
#reset-color,
#reset-background {
  grid-column: 1 / -1;
  padding: 4px 8px;
  cursor: pointer;
}

.EYES {
  position: relative;
  left: -145px;
  width: 255px;
  height: 138px;
  margin-left: 24px;
  border: solid rgb(36, 4, 4) 5px;
}

.NAV1 {
  position: relative;
  background-image: url("./images/NOTE-BG.jpeg");
  display: grid;
  grid-template-columns: repeat(4,1fr);
  align-items: center;
  justify-items: center;
  width: 95%;
  min-height: 90px;
  padding: 5px;
  opacity: 90%;
  border: solid rgb(36, 4, 4) 5px;
}

.NOTE {
  position: relative;
  top: 2px;
  right: 150px;
  height: 150px;
  width: 270px;
  border: solid rgb(28, 27, 27) 2px;
}

.APPLE {
  position: relative;
  height: 138px;
  width: 255px;
  right: 120px;
  border: solid rgb(36, 4, 4) 5px;
}

/* NAV ELEMENTS ^ */


/* Paragraphs & Paragraph style start v */

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

p {
  font-family: "IM Fell English", serif;
    color:white;
    text-align: center;
    font-size: 20px;
    background-color: rgb(23, 23, 23);
    opacity: 75%;
}

.background-tint {
  position: fixed;
  inset: 0;
  background: rgba(10, 1, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

.NOTE-BG {
  background-image: url("./images/NOTE-BG.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  border: 5px solid black;
  margin: auto;
  width: 80%;
  position: relative;
  z-index: 1;
}

body {
    position: relative;
    background-color: black;
    background-image: url("./images/ALTBACKGROUND.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

body > * {
  position: relative;
  z-index: 1;
}

footer {
  background-image: url("./images/NOTE-BG.jpeg");
  font-size: 18px;
  width: 99.5%;
  height: 50px;
  text-align: center;
  text-decoration: underline;
  color: rgb(253, 250, 250);
  font-family: "IM Fell English", serif;
  background-color: rgb(26, 2, 2);
  border: solid rgb(0, 0, 0) 5px;
  opacity: 80%;
}

/* Paragraphs & Paragraph style end ^ */


/* GRID FOR AUDIO PLAYER START v */

img {
  height: 200px;
  width: 200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.container {
  display: grid;
  margin: auto;
  width: 80%;
  padding: 10px;
  grid-template-columns: auto auto auto auto;
  background-color: rgb(18, 1, 1);
  padding: 10px;
  margin-right: auto;
  margin-left: auto;
  opacity: 92.7%;
}

.container div {
  background-image: url("./images/BACKGROUND.jpeg");
  padding: 10px;
  border: groove 2px rgb(2, 1, 1);
  font-size: 30px;
  text-align: center;
  color: rgb(85, 176, 255);
}


/* GRID FOR AUDIO PLAYER END ^ */


/* ANIMATIONS START v */

@keyframes audioPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.container div img {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.container div.playing img {
  filter: grayscale(0%);
  opacity: 1;
  animation: audioPulse 1.2s ease-in-out infinite;
}

.container img:hover {
  opacity: 0.3;
  transition: .5s ease-in;
}

.settings:hover {
  opacity: 0.3;
  transition: .5s ease-in;
}

.settings:active {
  opacity: 1;
  transition: .5s ease-in;
  transition: 180ms ease;
}

/* ANIMATIONS END ^ */


/* MEDIA QUERIES START v */

/* FOR TABLET SCREEN */

@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  .NAV1 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
    padding: 12px;
  }

  .settings {
    position: static;
    width: min(115.2px, 50px);
    height: auto;
  }

  .EYES,
  .APPLE {
    position: static;
    width: min(384px, 220px);
    max-width: 100%;
    height: auto;
    margin: 0;
  }

  .NOTE {
    position: static;
    width: min(480px, 270px);
    max-width: 100%;
    height: auto;
  }

  .NOTE-BG,
  .container {
    width: min(92%, 900px);
  }

  .NOTE-BG p {
    padding: 10px;
    font-size: 18px;
    line-height: 1.3;
  }

  .container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .container div {
    padding: 8px;
  }

  .container img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
  }

  footer {
    width: 100%;
    height: auto;
    min-height: 50px;
    padding: 8px;
  }
}

/* FOR MOBILE SCREEN */

@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  .NAV1 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    padding: 8px;
  }

  .settings {
    position: static;
    width: 36px;
    height: 36px;
  }

  .EYES,
  .APPLE {
    position: static;
    width: min(806.4px, 170px);
    height: auto;
    margin: 0;
  }

  .NOTE {
    position: static;
    width: min(806.4px, 180px);
    height: auto;
  }

  .NOTE-BG,
  .container {
    width: calc(100% - 20px);
  }

  .NOTE-BG p {
    padding: 8px;
    font-size: 16px;
    line-height: 1.25;
  }

  .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
  }

  .container div {
    padding: 6px;
  }

  .container img {
    width: 100%;
    height: auto;
  }

  footer {
    width: 100%;
    height: auto;
    min-height: 50px;
    padding: 8px;
    font-size: 15px;
  }
}

/* MEDIA QUERIES END ^ */