:root {
  --header-height: 2rem;
}


/* footer */
#footer {
  position: fixed;
  bottom: 0px;
  font-size: medium;
  width: 100%;
  z-index: 12;
  max-height: 1.5em;
  padding-top: 3px;
  padding-bottom: 3px;
  background-color: var(--panel-color);
  border-bottom: 1px solid var(--color);
}

#footerInner {
  display: flex;
  width: 90%;
  height: 100%;
  justify-content: space-between;
  margin-left: 1rem;
}

.footerLink {
  text-decoration: none;
  color: var(--link-text-color);

}


/* HEADER */

#subServiceTitle {
  margin-right: 2rem;
  margin-left: 0.5rem;
  font-size: 1.5rem;
  color: var(--logo-color);
  height: 100%;
  margin-bottom: calc(1.5rem * 0.25);

}


#glupusHeader {
  position: absolute;
  width: 100%;
  height: var(--header-height);
  background-color: var(--panel-color);
  color: var(--color);
  top: 0px;
  padding-inline: 5px;
  display: flex;
  align-items: center;
  box-shadow: 0px 0px 10px 0px var(--panel-color);
  box-sizing: border-box;
  z-index: 5;
}

#glupusAnchor {
  text-decoration: none;
  color: var(--color);
  font-size: calc(var(--header-height) * 0.75);
  background-repeat: no-repeat;
  height: 100%;
  margin-block: auto;
  margin-top: -1px;

}





#glupusHeaderLogo:hover {
  cursor: pointer;
}

#glupusAnchor {
  height: 75%;
  aspect-ratio: 459/162;
  margin-left: 1rem;
}

#headerUserInfoAvatar {
  height: 75%;
  aspect-ratio: 1/1;
  background-image: url('../img/default_avatar.svg');
  background-repeat: no-repeat;
  margin-top: auto;
  margin-bottom: auto;
}

#headerUserInfoName {
  margin-top: auto;
  margin-bottom: auto;
}

#loginOrSignup {
  font-size: calc(var(--header-height)* 0.75);
  font-weight: bolder;
  line-height: calc(var(--header-height)* 0.75);
  text-align: center;
  padding-right: inherit;
  user-select: none;
  cursor: pointer;
  background-color: transparent;
}



#loginOrSignup:hover {
  opacity: 0.5;
}

#headerUserInfo {
  margin-inline: auto;
  display: flex;
  height: 100%;
  justify-content: center;
}

.floatingLoginDiv{
  position: fixed;
  top: var(--header-height);
  right: 0;
  background-color: var(--bgcolor);
  z-index: 100;
  padding: 0.2rem;
  font-size: large;
  font-weight: bold;
  border-radius: var(--border-radius) 0px 0px var(--border-radius);
  border: 1px solid var(--color);
  

}

/* CHANGING THIS MIGHT MESS UP BUTTONS ON GLUPUSMATTE */
.dialogueLangImg{
  cursor: pointer;
}


:root {
  --scale: 0.5;
  /* Change this for scaling */
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: calc(4rem * var(--scale));
  height: calc(2rem * var(--scale));
  margin-left: 3rem;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;

}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;

}

.slider:before {
  position: absolute;
  content: "";
  height: calc(1.5rem * var(--scale));
  width: calc(1.5rem * var(--scale));
  left: calc(0.25rem * var(--scale));
  bottom: calc(0.25rem * var(--scale));
  background-color: blue;
  transition: .4s;
}

input:checked+.slider {
  background-color: #888;
}

input:focus+.slider {
  box-shadow: 0 0 calc(0.1rem * var(--scale)) #888;
}

input:checked+.slider:before {
  transform: translateX(calc(2rem * var(--scale)));
}

/* Rounded sliders */
.slider.round {
  border-radius: calc(2rem * var(--scale));
}

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









#darkModeToggle {

  cursor: pointer;

}


/* fullscreen */

#fullscreenButton {
  height: 90%;
  cursor: pointer;
  justify-content: center;
  background-color: transparent;
  border: none;
  padding: 0;
  margin-inline: 0.75rem;
  border-radius: 0;
  
}

#fullscreenButton:hover {
  background-color: var(--hover-bg-color);
  border-radius: 0;
}



#fullscreenButton> span {
  font-size: 1.5em;
  font-family: "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

#fullscreenButton>span>svg {
  width: 1em;
  height: 1em;
  display: flex;
}



/* Login and signup page */

.input-field {
  font-size: x-large;

  margin: 1px;
  padding: 0.2rem;
}

.input-label {
  font-size: large;
  margin: 1px;
  margin-top: 5px;

}

.main-button {
  font-size: xx-large;
  min-width: 30vw;
  margin: 10px;
  padding: 1rem;
}

.main-section {
  margin: 0 auto;
  height: 70vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.main-form {
  display: flex;
  flex-direction: column;
  min-width: 70%;
}

.logSignOptionsBtn {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: large;
  width: 100%;
  border: 1px solid var(--color);
  background-color: var(--panel-color);
  color: var(--color);
  cursor: pointer;
  

}

#selectActionDiv {
  display: flex;
  flex-direction: column;
  min-width: 70%;
}

.submitBtn {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: large;
  width: 100%;
  border: 1px solid var(--color);
  background-color: var(--panel-color);
  color: var(--color);
  cursor: pointer;
}

#selectActionDiv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loginSignupCloseBtn {
  top: calc(var(--header-height) + 1rem);
  right: 2rem;

  position: fixed;
  font-size: 2rem;
}

.loginSignupToTopBtn {
  top: calc(var(--header-height) + 1rem);

  /* right is parents width: -1 rem */
  margin-left: 1rem;
  position: fixed;
  font-size: 2rem;
}

#loginOrSignupBigDiv {
  position: absolute;
  max-height: 70vh;
  min-width: 50%;
  max-width: 1000px;
  z-index: 20;
  border: 1px solid var(--color);
  background-color: var(--bgcolor);
  overflow-y: auto;
  right: 0px;
  top: calc(var(--header-height) + 1px);
}


/* login for pilot */

#pilotLoginWrapper {
  min-width: 15rem;


  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;

  position: absolute;
  z-index: 103;

  top: calc(var(--header-height) + 1rem);
  right: 1rem;
  padding: 1rem;
  background-color: var(--bgcolor);

  border: 1px outset var(--color);
}

.pilotloginSignupCloseBtn {

  cursor: pointer;
}

#pilotLoginTopWrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-inline: 2rem;
  padding-bottom: 0.3rem;
}

#pilotLoginTopWrapper>h3 {
  margin: 0;
}

/* notfreebanner */

#saleBanner {
  position: fixed;
  margin-block: auto;
  z-index: 100;
  background-color: var(--bgcolor);
  width: 100%;

  height: 30vh;
  top: 35vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--color);
  border-bottom: 1px solid var(--color);
  padding: 1rem;
  gap: 2rem;
  box-shadow: 0px 0px 100px 100px var(--panel-color);

}

#saleBanner>* {
  max-height: 100%;
  font-size: xx-large;

  max-width: 30%;
}


#saleTextWrapper {
  display: flex;
  flex-direction: column;

}

.infoMainButton {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  width: fit-content;
  margin-left: 10%;
}

.mainFeedbackDiv {

  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 400px;
  max-width: 600px;
  z-index: 100;
  background-color: var(--bgcolor);
  border: 1px solid var(--color);
  padding: 2rem;


}

#feedbackTextArea{
  margin-block: 1rem;
  padding: 1em;
  font-size: large;
}

#feedbackButtonsWrapper{
  display: flex;
  justify-content: space-around;
}

#feedbackButtonsWrapper>button{
  min-width: 30%;
  font-size: large;
  padding: 0.5em;
}




@media screen and (max-width: 768px) {

  #headerUserInfo{
    visibility: hidden;
  }


  #footer{
    position: relative;
    max-height: none;
    overflow: visible;
  }


  #footerInner {
    flex-direction: column;
    align-items: center;
  }
  
}