:root {
  --default-fontsize: 24px;
  --default-fontsize-h1: 48px;
  --bg-color1: white;
  --bg-color2: #f0f0f0;
  --bg-color3: #ebebeb;
  --bg-color4: #f7f7f7;
  --nav-text-color: black;
  --text-color: black;
  --text-color2: rgb(0, 150, 0);
  --text-color3: #00295c;
  --text-hover-color: #2a6328;
  --link-color: #318adf;
  --glow-color: rgba(0, 0, 0, 0.5);
  --text-shadow-color: 2px 2px 4px rgba(0, 0, 0, 0.5);
  --fill-color: rgb(185, 185, 185);
  --svg-invert-value: 1;
  --svg-invert-bg-value: rgb(36, 36, 36);
  --opacity-filter: opacity(.1);
  --overlay-color: rgba(255, 255, 255, 0.521);
  --header-footer-color: white;
  --header-height: 80px;
}

@font-face {
  font-family: 'LiberationSans';
  src: url('static/fonts/LiberationSans.ttf') format('truetype');
}

.dark-mode {
  --bg-color1: black;
  --bg-color2: black;
  --bg-color3: #1a1a1a;
  --bg-color4: #1a1a1a;
  --nav-text-color: white;
  --text-color: #eee;
  --text-color2: #4aa32d;
  --text-color3: #02448b;
  --link-color: #599cd9;
  --glow-color: rgb(255, 255, 255, 0.5);
  --text-shadow-color: 2px 2px 4px rgba(128, 128, 128, 0.418);
  --fill-color: rgb(32, 32, 32);
  --svg-invert-value: 0;
  --svg-invert-bg-value: rgb(94, 94, 94);
  --opacity-filter: opacity(.2);
  --overlay-color: rgba(0, 0, 0, 0.329);
  --header-footer-color: black;
}

html, body {
  max-width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: LiberationSans, sans-serif;
  font-size: var(--default-fontsize);
  color: var(--text-color);
  background-color: var(--bg-color1);

  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--header-footer-color);
  display: flex;
  align-items: center;
  height: var(--header-height);
}

nav {
  display: grid;
  grid-template-columns: 1fr;
}

footer {
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 100px;
  background-color: var(--header-footer-color);
}

video {
  margin: 0 auto;
}

video, img {
  pointer-events: none;
}

#news-placeholder img {
  pointer-events: auto;
}

h1 {
  color: var(--text-color2);
  font-size: max(24px, min(calc((1vw + 1vh) * 1.5), var(--default-fontsize-h1)));
  text-align: center;
}

h2 {
  color: var(--text-color2);
  font-size: max(20px, min(calc((1vw + 1vh) * 1.1), var(--default-fontsize-h1)));
  text-align: left;
}

h3 {
  color: var(--text-color2);
  font-size: max(20px, min(calc((1vw + 1vh) * 1), calc(var(--default-fontsize))));
  text-align: left;
}

h4 {
  font-size: max(12px, min(calc((1vw + 1vh) * 0.6), calc(var(--default-fontsize) - 4px)));
  font-weight: normal;
  text-align: left;
}

h5 {
  color: var(--nav-text-color);
  margin-top: 5px;
  font-size: 11px;
}

p {
  line-height: min(calc((1vw + 1vh) * 3), 45px);
  font-size: max(16px, min(calc((1vw + 1vh) * 0.9), var(--default-fontsize)));
  text-wrap: wrap;
}

p.p2 {
  font-size: max(12px, min(calc((1vw + 1vh) * 0.9), calc(var(--default-fontsize) - 4px)));
  font-weight: normal;
}

p.p3 {
  margin: 0;
  font-size: max(10px, min(calc((1vw + 1vh) * 0.9), calc(var(--default-fontsize) - 8px)));
  font-weight: normal;
  line-height: normal;
}

p.no-margin {
  margin: 0;
  line-height: normal;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

label {
  text-align: center;
}

/* ########################################### */
/* COMMONS */
/* ########################################### */
.center {
  display: block; 
  margin-left: auto; 
  margin-right: auto;
}

.svg {
  filter: invert(var(--svg-invert-value));
}

.glow {
  /*rgba(0, 0, 0, 0.5);*/
  box-shadow: 0px 0px 10px var(--glow-color);
}

.border {
  box-shadow: 0px 0px 10px rgba(145, 145, 145, 0.336);
}

/* ########################################### */
/* SPECIFICS */
/* ########################################### */
.discord-link {
  font-size: max(12px, min(calc((1vw + 1vh) * 0.9), calc(var(--default-fontsize) - 4px)));
  font-style: italic;
  font-weight: bold;
}

#logo {
  max-width: 350px;
}

#logo > img {
  width: 90%;
  margin: 0 25px;
  object-fit: contain;
  min-width: 200px;
  cursor: pointer;
  padding-bottom: 5px;
}

#section-body, #article-body {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
}

#sidebar > img {
  pointer-events: none;
}

#background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('static/images/gray.webp');
  filter: var(--opacity-filter);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

@keyframes bounceForward {
  0% { transform: translateX(0); }
  50% { transform: translateX(10px); }
  100% { transform: translateX(5px); }
}

/* ########################################### */
/* HEADER */
/* ########################################### */

#navbar-menu {
  display: flex;
}

#nav-placeholder {
  height: var(--header-height);
}

.navbar-text {
  font-size: min(60% + .7vw);
  color: var(--nav-text-color);
  text-decoration: underline transparent;
  transition: 0.3s ease;
  margin: 0 30px;
}

.navbar-text:hover {
  text-decoration: underline;
}

#sidebar, #sidebar-menu, .sidebar-text {
  display: none;
}

/* ########################################### */
/* SLIDER */
/* ########################################### */

.switch-container {
  position: absolute;
  top: 20px;
  right: 30px;
} 

.switch {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 25px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: .4s;
  transition: .4s;
  box-shadow: 0px 0px 10px var(--nav-text-color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  right: 4px;
  bottom: 2px;
  background-color: var(--nav-text-color);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--shadow-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(-26px);
  -ms-transform: translateX(-26px);
  transform: translateX(-26px);
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ########################################### */
/* VIDEO */
/* ########################################### */

#hero-video {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

#blur-hero-video {
  width: 100%;
  filter: blur(15px);
}

#blur-hero-video-container {
  position: absolute;
  z-index: -1;
  background-color: black;
  overflow: hidden;
  max-height: 590px;
  width: 100%;
}

/* ########################################### */
/* LATEST NEWS */
/* ########################################### */

#latest-news-section {
  margin: 40px 0;
}

.badge-wrapper {
  display: flex;
  gap: 5vw;
  text-align: center;
}

.mobile-badge {
  display: flex;
  flex: 1;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.mobile-badge > img {
  max-width: 300px !important;
  max-height: 100%;
  /* height: 100%; */
  width: 100%;
}

.news-article, .news-article-reverse {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 10px;
  width: calc(100% - 20px);
  margin: 0 auto 30px auto;
}

#news-container {
  width: 100%;
}

.news-article-reverse {
  display: flex;
  flex-direction: row-reverse;
}

.news-content {
  flex-grow: 1;
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end;
  margin: 0 20px;
}

.news-content h1 {
  margin: 0;
  text-align: left;
}

.news-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-info > p {
  margin: 0;
  font-weight: bold;
}

#news-title-placeholder h1, #news-placeholder h1, 
.news-info p, .news-link {
  color: var(--text-color2);
}

.news-link, #news-title-placeholder h1 {
  text-decoration: none;
  transition: 0.3s ease;
}

.news-link:hover, #news-title-placeholder h1:hover {
  color: var(--text-hover-color);
}

#article-placeholder, #news-placeholder {
  margin: 20px;
}

#article-placeholder a, #news-placeholder a  {
  color: var(--link-color);
}

#news-placeholder img {
  max-width: 100%;
}

.news-img-container, .news-content {
  max-width: 520px;
  max-height: 520px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.news-img-container img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: cover; 
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
}

#pagination-container {
  display: flex;
  justify-content: space-between;
  margin: 0px 20px 0px 20px;
}

#pagination-container button {
  color: red;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
  font-size: max(16px, min(calc((1vw + 1vh) * 0.9), var(--default-fontsize)));
}

#pagination-container button:hover {
  animation: bounceForward 0.3 ease;
}

#pagination-container .prev-button {
  margin-right: auto;
  margin-top: 100px;
}

#pagination-container .next-button {
  margin-left: auto;
  margin-top: 100px;
}

#pagination-container .prev-button:hover {
  transform: translateX(-5px);
}

#pagination-container .next-button:hover {
  transform: translateX(5px);
}

/* ########################################### */
/* HERO-SECTION */
/* ########################################### */

#hero-section {
  overflow: hidden;
  position: relative;
  background-color: black;
}

#hero-section > img {
  width: 100%;
  height: auto;
}

.color-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--overlay-color);
  z-index: 1;
}

/* ########################################### */
/* ABOUT ME PAGE */
/* ########################################### */
.about-title {
  display: flex;
  align-items: center;
  font-size: max(100% + 3vw);
  white-space: nowrap;
  font-weight: bold;
}

#about-top-img {
  width: 100%;
}

.about-text-title {
  color: var(--text-color2);
  font-size: max(26px, min(calc((1vw + 1vh) * 0.9), var(--default-fontsize)));
  font-weight: bold;
  text-align: center;
  margin-top: 55px;
  background-color: var(--bg-color4);
  border-radius: 10px;
  padding: 10px 0;
}

.about-text {
  text-align: center;
  margin: 30px 30px;
}

/* ########################################### */
/* CONTACT ME PAGE */
/* ########################################### */
#intro-text-section {
  text-align: center;
  margin: 20px;
}

#intro-text-section h1 {
  color: red;
  text-shadow: var(--text-shadow-color);
  font-style: italic;
  margin-top: 120px;
  margin-bottom: 0;
}

#intro-text-section span {
  color: red;
  margin: 0;
}

.contact-section {
  display: flex;
  margin: 55px 0; 
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.contact-container > ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-container .tooltip-container {
  transform: scale(1.6);
  margin: 30px 40px; 
}

.contact-container .tooltip-text {
  font-size: 10px;
  color: var(--link-color);
}

.contact-container h1 {
  color: var(--text-color2);
  margin: 30px 20px 0 20px;
}

.contact-container .icon {
  background-color: var(--svg-invert-bg-value);
}

/* ########################################### */
/* CONTACT ME PAGE -FAQ SECTION*/
/* ########################################### */

#FAQ-section {
  background-color: var(--bg-color1);
  padding: 20px;
  box-shadow: 0px 0px 10px var(--glow-color);
}

.FAQ-question {
  margin: 50px 0px;
  padding: 15px;
  background-color: var(--bg-color1);
  border-radius: 10px;
}

#FAQ-link {
  color: red;
  text-decoration: underline transparent;
  transition: 0.3s ease;
}

#FAQ-link:hover {
  text-decoration: underline;
}

.FAQ-toggle {
  background-color: var(--bg-color1);
  color: var(--text-color);
  cursor: pointer;
  padding: 0;
  padding-right: 20px;
  width: 100%;
  padding-bottom: 10px;
  font-size: max(20px, min(calc((1vw + 1vh) * 1.3), var(--default-fontsize)));
  font-weight: bold;
  text-align: left;
  border: none;
  outline: none;
  position: relative;
}

.FAQ-answer {
  font-size: max(16px, min(calc((.7vw + .8vh) * 1), var(--default-fontsize)));
  background-color: var(--bg-color1);
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.FAQ-toggle:after {
  position: absolute;
  content: '\0002B';
  color: var(--text-color);
  transform: translate(-50%, 30%) scale(1.4);
  top: -7px;
  right: -5px;
}

.active:after {
  content: "\0002D";
  top: -7px;
  right: 2px;
}

/* ########################################### */
/* FOOTER*/
/* ########################################### */
.social-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 15px 20px;
}

.social-container > div:nth-child(1),
.social-container > div:nth-child(4) {
  width: 33.33%;
  display: flex;
  justify-content: flex-start;
}

.social-container > div:nth-child(2),
.social-container > div:nth-child(5) {
  width: 33.33%;
  display: flex;
  justify-content: center;
}

.social-container > div:nth-child(3),
.social-container > div:nth-child(6) {
  width: 33.33%;
  display: flex;
  justify-content: flex-end;
}

.social-container > div:nth-child(1) {
  order: 0;
}

.social-container > div:nth-child(2),
.social-container > div:nth-child(3),
.social-container > div:nth-child(4),
.social-container > div:nth-child(5),
.social-container > div:nth-child(6) {
  order: 2;
}

.social-container ul, .document-container {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
}

.social-container .tooltip-container {
  transform: scale(.8);
}

.social-container .tooltip-container:hover {
  transform: scale(.9);
}

#footer-logo-wrapper .copyright.p2 {
  margin: 0;
  
}

.doc-text > p {
  line-height: normal;
  color: var(--nav-text-color);
  margin: 0;
}

.doc-text > a {
  color: var(--nav-text-color);
  text-decoration: underline transparent;
  transition: 0.3s ease;
  white-space: nowrap;
  font-size: max(12px, min(calc((1vw + 1vh) * 0.9), calc(var(--default-fontsize) - 4px)));
  cursor: pointer;
  text-align: center;
}

.doc-text a:hover {
  text-decoration: underline;
}

.doc-text {
  display: flex;
}

#footer-logo-wrapper img {
  max-width: 200px;
}

/* ########################################### */
/* ICON BUBBLES*/
/* ########################################### */

.tooltip-container {
  position: relative;
  display: flex; 
}

.icon {
  width: 40px;
  height: 40px; 
  padding: 6px;
  border-radius: 50%;
  object-fit: fill;
  cursor: pointer;
  transition: background-color 0.5s ease;
}

.tooltip-container:hover .icon {
  transform: scale(1.1);
}

.tooltip-text {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
}

.tooltip-container:hover .tooltip-text {
  opacity: 1;
}

/* ########################################### */
/* CREDITS */
/* ########################################### */
.credit .grid-container {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.credit .grid-container > div {
  margin-bottom: 50px;
}

.credit .grid-music {
  grid-template-columns: repeat(2, 1fr);
}

.credit .grid-sfx {
  grid-template-columns: repeat(3, 1fr);
}

.credit-section {
  color: var(--text-color2);
  font-size: max(26px, min(calc((1vw + 1vh) * 0.9), var(--default-fontsize)));
  font-weight: bold;
  text-align: center;
  margin-top: 55px;
  border-radius: 10px;
  padding: 10px 0;
}

div.credit-musician {
  display: inline-block;
  padding: 15px 30px;
  margin-bottom: 20px;
}

/* ########################################### */
/* MEDIA QUERY WHEN SCREEN IS LESS THAN 768PX  */
/* ########################################### */

@media screen and (max-width: 768px) {
  nav {
    display: none;
  }
  
  .credit .grid-music {
    grid-template-columns: repeat(1, 1fr);
  }

  #sidebar {
    display: block;
    background-color: transparent;
    border: none;
    position: absolute;
    right: 10px;
    cursor: pointer;
  }

  #sidebar-menu {
    display: block;
    position: absolute;
    width: 100%;
    height: fit-content;
    padding-bottom: 40px;
    top: 0px;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: var(--header-footer-color);
    list-style-type: none;
    overflow-x: hidden;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    overflow: hidden;
    z-index: 5;
  }
  
  #sidebar-menu.show {
    transform: translateY(70px);
  }
  
  #sidebar-menu.show {
    display: block;
  }
  
  .sidebar-text {
    display: block;
    text-align: left;
    margin: 20px;
    color: var(--nav-text-color);
    text-decoration: underline transparent;
    transition: 0.3s ease;
    width: 100%;
    font-size: calc((1vw + 1vh) * 2.2);
  }

  .sidebar-text:hover {
    cursor: pointer;
    text-decoration: underline;
  }

  .sidebar-switch-container {
    width: 100%;
    text-align: end;
    transform: scale(.96);
  }

  #logo > img {
    transform: scale(.8);
    transform-origin: left;
    margin: 0 0 0 10px;
  }

  .body-no-scroll {
    overflow: hidden;
  }

  .contact-container .tooltip-container {
    transform: scale(1.2);
    margin: 20px 40px; 
  }

  .social-container {
    flex-direction: column;
  }

  .social-container > div:nth-child(3) {
    order: 1;
  }

  .social-container > div {
    justify-content: center !important;
    width: 100% !important;
  }

  .social-container p {
    line-height: 18px;
  }

  .social-container .tooltip-container {
    transform: scale(.6);
    margin: 0px -5px;
  }

  .social-container .tooltip-container:hover {
    transform: scale(.7);
  }

  .news-image {
    width: 100%;
    height: auto;
  }

  .news-article, .news-article-reverse {
    flex-direction: column;
    padding: 0 10px;
    width: calc(100% - 20px);
    margin: 0 auto;
  }
  .news-img-container {
    margin: 0;
    width: 100%;
  }
  .news-content {
    padding-left: 0;
  }
    
  #footer-logo-wrapper {
    text-align: center;
  }
}