/* ============================================================
   GLOBAL STYLES
   ============================================================ */

html {
  font-family: "Times New Roman", Times, serif;
  overflow-x: hidden;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  border-radius: 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.clickable {
  cursor: pointer;
}

.divider {
  height: 6.5vh;
}

.inactive {
  display: none !important;
}

/* ============================================================
   MAIN PAGE LAYOUT
   ============================================================ */

#mainPage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
}

/* ============================================================
   INTRODUCTION SECTIONS (BASE STYLES)
   ============================================================ */

#marIntroduction,
#ourIntroduction,
#merIntroduction {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-size: cover;
  background-position: center;
  transition: height 1s ease-in;
}

#marIntroduction,
#merIntroduction {
  height: 35vh;
}

#ourIntroduction {
  height: 20vh;
}

#marIntroduction {
  background-image: url(Assets/Images/MarBackdrop.png);
}

#ourIntroduction {
  background-image: url(Assets/Images/OurBackdrop.png);
}

#merIntroduction {
  background-image: url(Assets/Images/MerBackdrop.png);
}

/* ============================================================
   IMAGE POSITIONING
   ============================================================ */

#marImage {
  pointer-events: none;
  position: absolute;
  bottom: 0px;
  right: 0%;
  height: 115%;
  width: auto;
  z-index: 10;
}

#ourImage {
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-17%);
  height: 150%;
  width: auto;
  z-index: 10;
}

#merImage {
  pointer-events: none;
  position: absolute;
  bottom: 0px;
  left: 0%;
  height: 115%;
  width: auto;
  z-index: 10;
}

/* ============================================================
   TEXT SLIDERS (BASE STYLES)
   ============================================================ */

#marTextSlider,
#merTextSlider {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 5%;
  align-items: center;
  width: 35%;
  z-index: 20;
  transition:
    transform 1s ease-in,
    opacity 1s ease-in;
  opacity: 0;
}

#ourTextSlider {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  align-items: center;
  width: 100%;
  z-index: 20;
  transition:
    transform 1s ease-in,
    opacity 1s ease-in;
  opacity: 0;
}

#marTextSlider {
  transform: translateY(-50%) translateX(-25vw);
}

#merTextSlider {
  transform: translateY(-50%) translateX(75vw);
}

#ourTextSlider {
  transform: translateY(calc(-50%)) translateX(-50%);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

#marName,
#ourName,
#merName {
  font-size: clamp(2rem, 7vh, 70vw);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#marAlias,
#ourAlias,
#merAlias {
  font-size: clamp(1rem, 4vh, 50vw);
  text-align: center;
  line-height: 1.5;
}

#websiteTitle {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

/* ============================================================
   HOVER STATES - MAR INTRODUCTION
   ============================================================ */

#marIntroduction:hover {
  height: 48vh;
  transition: height 1s ease-out;
}

#marIntroduction.shrink {
  height: 32vh;
  transition: height 1s ease-out;
}

#marIntroduction:hover #marTextSlider {
  transform: translateY(-50%) translateX(15vw);
  opacity: 1;
  transition:
    transform 1s ease-out,
    opacity 1s ease-out;
}

/* ============================================================
   HOVER STATES - OUR INTRODUCTION
   ============================================================ */

#ourIntroduction:hover {
  height: 25vh;
  transition: height 1s ease-out;
}

#ourIntroduction:hover #ourTextSlider {
  transform: translateY(-50%) translateX(-50%);
  opacity: 1;
  transition:
    transform 1s ease-out,
    opacity 1s ease-out;
}

#ourIntroduction.shrink {
  height: 10vh;
  transition: height 1s ease-out;
}

/* ============================================================
   HOVER STATES - MER INTRODUCTION
   ============================================================ */

#merIntroduction:hover {
  height: 48vh;
  transition: height 1s ease-out;
}

#merIntroduction.shrink {
  height: 32vh;
  transition: height 1s ease-out;
}

#merIntroduction:hover #merTextSlider {
  transform: translateY(-50%) translateX(40vw);
  opacity: 1;
  transition:
    transform 1s ease-out,
    opacity 1s ease-out;
}

/* ============================================================
   OVERLAY
   ============================================================ */

.overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-divider {
  position: absolute;
  top: 0;
  height: 100vh;
  width: 50vw;
  transition:
    transform 1s ease-in-out,
    opacity 1s ease-in;
}

.overlay-left {
  left: 0;
  transform: translateX(0);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.overlay-container.overlayHidden .overlay-left {
  transform: translateX(-50vw);
}

.overlay-container.overlayHidden .overlay-right {
  transform: translateX(50vw);
}

#overlayContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 1;
  transition: opacity 1s ease-out;
}

#overlayContainer img {
  width: clamp(50vh, 25vw, 80vw);
  max-width: 80vh;
  height: auto;
}

#overlayContainer p {
  font-size: 2vh;
}

.overlay-container.overlayHidden #overlayContainer {
  opacity: 0;
  pointer-events: none;
}

.overlayHidden {
  pointer-events: none;
}

/* ============================================================
   FOOTER & MUSIC
   ============================================================ */

footer {
  position: fixed;
  display: flex;
  justify-content: space-between;
  bottom: 0;
  width: 100vw;
  height: fit-content;
  text-align: center;
  padding: 5px;
  z-index: 100;
  backdrop-filter: blur(4px);
}

#musicContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
}

#infoContainer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.medIcon {
  height: 50px;
  padding: 5px;
  padding-right: 10px;
  padding-left: 10px;
}

.miniIcon {
  height: 30px;
  margin: 5px;
}

.tinyIcon {
  height: 25px;
  padding: 5px;
}

/* ============================================================
   SETTINGS PANELS
   ============================================================ */

.settings {
  position: fixed;
  backdrop-filter: blur(5px);
  opacity: 1;
  z-index: 70;
  bottom: 0;
  left: 0;
  transition:
    bottom 1s ease-out,
    opacity 1s ease-out;
}

.hidden {
  pointer-events: none;
  opacity: 0;
  bottom: -110vh;
  transition:
    bottom 1s ease-in,
    opacity 1s ease-in;
}

#generalSettings {
  margin-left: 2.5vw;
  margin-right: 2.5vw;
  margin-top: 2.5vh;
  margin-bottom: 2.5vh;
  height: 95vh;
  width: 95vw;
}

#musicSettings {
  display: flex;
  margin-left: 1.5vw;
  margin-right: 1.5vw;
  margin-top: 1.5vh;
  margin-bottom: clamp(60px, 4vh, 200px);
  height: fit-content;
  width: fit-content;
}

.audioSetting {
  display: flex;
  flex-direction: column;
}

.audioSlider {
  writing-mode: vertical-lr;
  direction: rtl;
}

/* ============================================================
   UNSORTED
   ============================================================ */

.homeButton {
  height: 10vh;
  width: 100vw;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  background-image: url(Assets/Images/OurBackdrop.png);
  background-size: cover;
  background-position: center;
}

#marHomeButton {
  background-image: url(Assets/Images/MarBackdrop.png);
}

#merHomeButton {
  background-image: url(Assets/Images/MerBackdrop.png);
}
