@font-face {
  font-family: 'standard';
  src: url("src/default_font.woff");
  font-weight: lighter;
}
@font-face {
  font-family: 'bold';
  src: url("src/default_font_bold.woff");
  font-weight: bolder;
}

@font-face {
  font-family: 'boldest';
  src: url("src/default_font_boldest.otf");
  font-weight: bolder;
}

* {
  cursor: default;
  font-family: standard;
  font-size: 22px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  margin: 0 !important;
  overflow: auto;
  background-color: rgb(12, 18, 28);
  color: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  opacity: 0;
  transform: scale(0.8);
  transition: 0.8s;
}

t {
  font-family: bold;
  font-size: 24px;
  max-width: 1000px;
  text-align: center;
  line-height: 130%;
  color: rgba(250, 253, 255, 0.8);
}

.title {
  color: rgb(255, 255, 255);
  font-family: boldest;
  font-size: 34px;
  overflow-wrap: break-word;
  margin-bottom: 0px;
}

.button {
  font-family: boldest;
  background-color: rgb(190, 200, 210);
  color: #000000;
  padding-top: 14px;
  padding-bottom: 10px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 13px;
  font-size: 18px;
  transition: 0.3s;
  display: inline-block;
}
@media (pointer: fine) {
  .button:hover {
    transform: scale(1.03);
    background-color: rgb(255, 255, 255);
  }
  .button:active {
    transform: scale(0.9);
    opacity: 0.5;
  }
}
.buttonImage {
  margin-top: -4px;
  height: 17px;
}
#fileUploadButton {
  display: none;
}




#mainTitle {
  font-size: 47px;
  text-align: center;
  max-width: 770px;
  margin-top: 40px;
  padding: 20px;
  padding-bottom: 10px;
  padding-left: 30px;
  padding-right: 30px;
  border-radius: 18px;
  transition: 0.3s;
}
@media (pointer: fine) {
  #mainTitle:hover {
    background-color: rgb(22, 30, 42);
    transform: scale(1.05);
  }
  #mainTitle:active {
    transform: scale(0.97);
    opacity: 0.5;
  }
}


#yearSummaryContainer {
  display: flex;
  align-items: center;
  justify-content: center;
}
.summaryIcon {
  width: 20px;
  height: 20px;
  filter: invert(1);
  opacity: 0.3;
}
#summaryAmountIcon {
  margin-right: 10px;
}
#summaryDistanceIcon {
  margin-left: 20px;
  margin-right: 10px;
}
.summaryText {
  opacity: 0.4;
}



#listContainer {
  margin-top: 50px;
}

.listElement {
  background-color: rgb(22, 30, 42);
  padding: 10px;
  border-radius: 22px;
  transition: 0.3s;
  box-sizing: border-box;
  width: calc(100vw - 20px);
  max-width: 700px;
  margin-bottom: 20px;
  display: flex;
}
@media (pointer: fine) {
  .listElement:hover {
    transform: scale(1.01);
    background-color: rgb(32, 40, 52);
  }
  .listElement:active {
    transform: scale(0.97);
    opacity: 0.5;
  }
}

.listElementImage {
  width: 133px;
  height: 133px;
  object-fit: cover;
  border-radius: 14px;
  margin-right: 20px;
}

.elementDataContainer {
  display: flex;
  align-items: center;
  margin: 5px;
}

.elementIcon {
  float: left;
  width: 23px;
  filter: invert();
  margin-right: 10px;
  opacity: 0.3;
}

.elementTitle {
  color: rgb(255, 255, 255);
  font-family: bold;
  margin-top: 10px;
  margin-bottom: 7px;
  text-align: left;
}

.elementDistance, .elementDate {
  color: rgba(250, 253, 255, 0.3);
  text-align: left;
}




.dialogContainer {
  width: 100vw;
  min-height: 100vh;
  position: fixed;
  left: 0px;
  top: 0px;
  background-color: rgba(12, 18, 28, 0.7);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  transform: scale(0.8);
  opacity: 0;
  display: none;
}


#tourDialogInnerContainer {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  box-sizing: border-box;
}
#tourDialogTitle {
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  display: inline-block;
  margin-top: 0px;
  margin-bottom: 15px;
}
#tourDialogImageDropArea {
  width: 120px;
  height: 120px;
  background-color: rgb(255, 255, 255, 0.05);
  border-radius: 13px;
  transition: 0.3s;
  overflow: hidden;
}
@media (pointer: fine) {
  #tourDialogImageDropArea:hover {
    transform: scale(1.05);
    background-color: rgb(255, 255, 255, 0.1);
  }
}
#tourDialogImage {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.tourDialogText {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 5px;
}
#tourDialogSaveButton {
  margin-top: 40px;
}
#tourDialogDeleteButton {
  margin-top: 40px;
  margin-left: 10px;
  color: rgb(220, 40, 130);
}
.inputField {
  border: none;
  outline: none;
  text-decoration: none;
  user-select: auto;
  -webkit-user-select: auto;
  padding: 10px;
  padding-left: 15px;
  padding-right: 15px;
  background-color: rgba(62, 68, 78, 0.5);
  border-radius: 13px;
  color: rgb(255, 255, 255);
  font-family: bold;
  width: 100%;
  box-sizing: border-box;
}



#yearDialogYear {
  font-weight: bolder;
  font-size: 68px;
  margin: 0px;
  padding-top: 15px;
}
.yearDialogArrowButton {
  width: 50px;
  height: 50px;
  filter: invert(1);
  opacity: 0.2;
  transition: 0.3s;
}
@media (pointer: fine) {
  .yearDialogArrowButton:hover {
    opacity: 0.4;
    transform: scale(1.1);
  }
  .yearDialogArrowButton:active {
    opacity: 0.1;
    transform: scale(0.8);
  }
}
#yearDialogArrowButtonUp {
  margin-top: 100px;
}
#yearDialogAddButton {
  margin-top: 100px;
}



/* Mobile mode */
@media only screen and (max-width: 640px) {
  .dialogContainer {
    align-items: center;
    justify-content: flex-start;
  }
  .listElementImage {
    width: 110px;
    height: 110px;
    margin-right: 10px;
  }
  .elementTitle {
    margin-top: 5px;
    margin-bottom: 0px;
  }
  .elementIcon {
    width: 18px;
  }
  .elementDistance, .elementDate {
    font-size: 20px;
  }
}


/* Light mode*/
@media (prefers-color-scheme: light) {
  body {
    background-color: rgb(235, 240, 248);
    color: rgb(10, 20, 30);
  }
  @media (pointer: fine) {
    #mainTitle:hover {
      background-color: rgb(22, 30, 42, 0.1);
      transform: scale(1.05);
    }
  }
  .summaryText {
    color: inherit;
  }
  .summaryIcon {
    filter: none;
  }
  .listElement {
    background-color: rgb(255, 255, 255);
    margin-bottom: 10px;
  }
  @media (pointer: fine) {
    .listElement:hover {
      transform: scale(1.01);
      background-color: rgb(246, 249, 255);
    }
  }
  .elementTitle {
    color: inherit;
  }
  .elementIcon {
    filter: none;
  }
  .elementDistance, .elementDate {
    color: inherit;
    opacity: 0.3;
  }

  .dialogContainer {
    background-color: rgb(255, 255, 255, 0.3);
  }
  .title {
    color: inherit;
  }
  .tourDialogText {
    color: inherit;
    opacity: 0.5;
  }
  #tourDialogName, #tourDialogDate, #tourDialogDistance {
    color: inherit;
    background-color: rgb(100, 110, 130, 0.2);
  }
  #tourDialogImageDropArea {
    background-color: rgb(100, 110, 130, 0.2);
  }
  @media (pointer: fine) {
    #tourDialogImageDropArea:hover {
      background-color: rgb(140, 150, 180, 0.2);
    }
  }

  .yearDialogArrowButton {
    filter: none;
  }
}
