﻿body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  margin: 0;
  height: 100vh;
  background-color: rgb(246 247 248);
}


a {
  color: #29abe2;
  text-decoration: none;
}


a:hover {
  color: #15556e;
}


li {
  list-style: none;
}


.d-none {
  display: none !important;
}


.d-flex {
  display: flex !important;
}


.d-block {
  display: block !important;
}


.main {
  display: grid;
  grid-template-columns: 200px 1fr;
}


.content {
  /* Hier bitte nichts mehr anfassen an die Höhe vom Content. Bitte nicht Igor!!!!!!!! 
  Alles, wo was irgendwo nicht passt, müssen wir extra auf jede Seite einstellen. Hier ist also Standardhöhe.*/
  height: calc(100vh - 80px);
  margin-top: 80px;
  box-sizing: border-box;
  overflow: auto !important;
  background-color: rgb(246 247 248);
  max-width: 1200px;
}


.content::-webkit-scrollbar {
  display: none;
}


.light-grey-bg {
  background-color: rgb(246 247 248);
}


.included-page-div {
  width: 100%;
}


input {
  border: unset;
  font-size: 16px;
}


input:focus {
  outline: none;
  border: 1px solid rgb(41, 171, 226);
}


input[type="date"] {
  text-indent: 8px;
}


input[type="text"] {
  text-indent: 16px;
}


textarea {
  text-indent: 16px;
  font-size: 16px;
}


textarea:focus {
  border: 1px solid rgb(41, 171, 226);
  outline: none;
}


textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
}


button {
  border: unset;
  outline: none;
  cursor: pointer;
}


p {
  margin: 0;
}


input[type="date"] {
  opacity: 0.5;
  /* 50% visible by default */
}


input[type="date"]:valid {
  opacity: 1;
}


#sidebarContainer {
  z-index: 700;
}


#headerContainer {
  position: relative;
  z-index: 888;
}


.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  /* darkened background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 7777;
}


.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }


  100% {
    transform: rotate(360deg);
  }


}


#greetingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 2rem;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}


#greetingOverlay.fade-out {
  opacity: 0;
  visibility: hidden;
}


#greetingOverlay.hidden {
  display: none;
}


#logedInUser {
  color: rgb(41, 171, 226);
  font-size: clamp(47px, 6vw, 64px);
  font-weight: 700;
}


#logedInGreeting {
  font-size: clamp(36px, 6vw, 47px);
  margin-bottom: 0;
  font-weight: 400;
}


.login-input-wrapper {
  position: relative;
}


.login-icons {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-45%);
  cursor: pointer;
}


@media (max-width: 1000px) {
  .content {
    width: 100vw;
    overflow-y: auto;
  }


}


@media screen and (orientation: landscape) and (max-width: 800px) {
  #landscapeWarning {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    color: black;
    font-size: 20px;
    font-weight: bold;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
  }


  main,
  footer,
  .log-in-main,
  .log-in-footer {
    display: none !important;
  }


}


.color-white {
  color: white;
}


.hidden {
  display: none;
}


.warning-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


.warning-overlay.show {
  display: flex;
}


.warning-dialog {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  font-size: clamp(14px, 2vw, 20px);
  width: clamp(260px, 40vw, 500px);
  height: auto;
  background-color: #ff4d4f;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border-left: 6px solid #b30000;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.75s ease, opacity 0.75s ease;
}


.warning-dialog.show {
  transform: translateX(0);
  opacity: 1;
}


.error-warning {
  position: relative;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.countdown {
  position: absolute;
  top: 5px;
  right: 0px;

}


.grey-txt {
  color: #d1d1d1;
}

.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}