:root {
  --white: #e7e7e7;
  --black: #212121;
  --lilac: #C765FF;
  --purple: #9217d9;
  --indigo: #50007F;
  --lilac-transparent: rgba(199, 101, 255, 0.5);
  --select-color: rgba(146, 23, 217, 0.5);

  --displayLoginArrow: none;
  --displayRegisterArrow: none;
}

body, html {
  height: 100vh;
  width: 100vw;
  margin: 0;
  background-color: var(--black);
}

ul {
  list-style-type: none;
}

* {
  text-decoration: none;
  font-family: Figtree;
}

#calendar{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  /*justify-content: center;*/
  align-items: stretch;
  gap: 1vw;
  
  margin: auto;
  height: 65vh;
  width: 80vw;

  overflow-x: hidden;

  /* make it central on screen at some point */
}

.day {
  order: 0;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  transition: 0.5s ease;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;

  /*background-color: var(--lilac);*/
  font-family: figtree;
  color: var(--black);
  border-radius: 6px;
}

.arrow {
  color: var(--white);
  display: none;
  position: relative;
  cursor: pointer;
  font-size: 5vh;
  z-index: 2;
}

#arrow-left{
  float: left;
  padding: 2vw;
  margin-right: 2vw;
}

#arrow-right{
  float: right;
  padding: 2vw;
  margin-right: 2vw;
}

@media screen and (max-aspect-ratio: 1/1), screen and (max-width: 800px){
    .day {
      min-width: calc(100%);
    }
    .arrow {
      display: block;
    }
}

@media screen and (min-aspect-ratio: 1/1) and (min-width: 801px){
  .day {
    transform: translateX(0px) !important;
    transition: 0s ease;
  }
}

.defaultBtn{
  height: auto;
  width: auto;

  background-color: var(--indigo);
  color: var(--white);
  border: none;
  font-size: 25px;
  font-family: Figtree;

  padding: 10px;

  cursor: pointer;
  float: right;
}
.defaultBtn:hover{
  background-color: var(--purple);
}

#bookingForm{
  margin: 2vh 10vw 0 2vh;
  position: absolute;
  right: 0;
  display: flex;
  flex-direction: column;
  color: whitesmoke;

}

#tsandcs {
  display: flex;
  flex-direction:row;
  padding: 5px;
  text-align: right;
}
#tsandcs a {
  text-decoration: underline;
  color: #00b3ff;
}

#loginBtn, #registerBtn{
  position: relative;
}

#registerBtn::after{
  display: var(--displayRegisterArrow);
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - 6px);
  border-width: 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  transform: rotate(180deg);
}

#loginBtn::after{
  display: var(--displayLoginArrow);
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - 6px);
  border-width: 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  transform: rotate(180deg);
}

#loginControls{
  margin: 0 10vw 2vh 10vw;
  padding-top: 1vh;
  text-align: right;
  width: 80vw;
}

.popup {
  display: none;
  width: auto;
  background-color: #ffffff;
  color: var(--black);
  text-align: left;
  border-radius: 6px;
  padding: 2vh 2vw;
  z-index: 10;
  position: absolute;
  top: calc(6vh + 6px);
  right: 10vw;
}

.show {
  display: inline;
}

.popupInput {
  width: 10vw;
  border: none;
  border-radius: 5px;
  color: var(--black);
  height: 3vh;
  line-height: 3vh;
  min-width: 220px;
  border: 1px var(--black) solid;
  padding: 0.5vh 0.5vw;
  display: block;
}

.popupText{
  font-family: figtree;
}

#submitLoginPopup, #submitRegisterPopup{
  width: 10vw;
  min-width: calc(220px + 1vw);
}

#cpasswordRegisterPopup{
  margin-bottom: 16px;
}

.dayHeader{
  background-color: var(--white);
  width: 100%;
  padding: 1vh 0;
  text-align: center;
  color: var(--black);
  font-family: figtree;
  font-weight: bold;
  border-radius: 6px 6px 0 0;

  order: 0;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
}
.bookingSlot {
  order: 0;
  flex-grow: 4;
  flex-shrink: 4;
  flex-basis: 0;
  padding: 5px;
  width: calc(100% - 10px);
  height: 100%;
  color: var(--white);
  cursor: pointer;
  border-bottom: 1px solid var(--white);
  position: relative;
  font-weight: bold;
  line-height: 14px;
  word-wrap: break-word;
  font-size: 14px;
}

.bookingSlot:hover{
  background-color: var(--lilac-transparent);
}
.bookingSlot:active{
  background-color: var(--select-color);
}

.bookingTime {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 15px;
  line-height: 15px;
  z-index: 3;
  font-weight: normal;
  margin: 0;
}

.dayHeaderText{
  margin: auto;

}

.bookedSlot {
  /*border-left: ;
  background-color: ;*/
  cursor: not-allowed;
  color: var(--white);
  width: calc(100% - 15px);
}

.selectedSlot {
  background-color: var(--select-color);
}

/* Header and Nav Bar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  color: white;
  border-bottom: 1px solid var(--white);
  background-color: var(--indigo);
}

header ul .logo-menu {
  width: 70px;
  height: 70px;
}
.headerLogo{
  height: 70px;
  margin-left: -50px;
}
.menu-button{
  height: 60px;
  width: 60px;
  margin-left: -50px;
}
.menu-button{
  display: none;
}
.nav {
  position: absolute;
  margin-left: 80px;
}
.nav ul {
  width: 100%;
}
.nav li {
  display: inline-block;
  padding-left: 10px;
  border-left: 2px solid var(--white);
}
.nav li:first-child {
  border-left: none;
}
.nav a {
  text-decoration: none;
  font-size: 30px;
}
.loginBtns li {
  display: inline-block;
  padding-left: 10px;
}

.sideNavbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;

  background-color: var(--indigo);
  border-right: 1px solid var(--white);
  box-shadow: 10px 0 10px rgba(0, 0, 0, 0.1);

  display: none;
  flex-direction:column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 0;
  margin-top: 0;
}
.sideNavbar li {
  width: 100%;
}
.sideNavbar li:first-child {
  height: 80px;
}
.sideNavbar li:hover {
  background-color: var(--purple);
}
.sideNavbar a {
  display: inline-block;
  width: 100%;
  color: var(--white);
  font-size: 30px;
  padding: 10px 0;
}
.sideNavbar svg:first-child {
  height: 50px;
  width: 50px;
}

@media(max-width: 850px) {
  .hideOnMobile{
    display: none;
  }
  .menu-button {
    display: flex;
  }
  @media(max-width: 400px){
    .sidebar {
      width: 100%;
    }
  }
}

.welcome-section {
  padding: 20px 0;
  display: flex;
  justify-content: space-around;
  color: var(--white);
  border-bottom: 1px solid var(--white);
}
.welcome-text p {
  width: 40vw;
}
.welcome-text ul {
  display: flex;
  justify-content: left;
  font-size: 25px;
}
.socials ul li {
  padding: 10px 10%;
  margin-left: -40px;
}
.welcome-section a {
  color: var(--white);
}

.profileBtn {
  display: none;
}
.loginBtn {
  display: none;
}
#modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

#modal-content {
  background-color: var(--black);
  margin: 15% auto;
  padding: 20px;
  border: 2px solid var(--purple);
  max-width: 80%;
  color: var(--white);
}

#close {
  color: var(--white);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

#close:hover,
#close:focus {
  color: var(--lilac);
  text-decoration: none;
  cursor: pointer;
}

#submitPaymentButton {
  padding: 1vh 1vw;
  border-radius: 5%;
  background-color: var(--indigo);
  color: var(--white);
  margin: 3vh 0;
  border: 0;
  transition: ease-in-out 0.2s;
}

#submitPaymentButton:hover,
#submitPaymentButton:focus {
  background-color: var(--purple);
  transition: ease-in-out 0.2s;
  cursor: pointer;
}