:root {
  --black: #161616;
  --blue: #1fa8c7;
  --green: #1e975d;
}

@font-face {
  font-family: "Lexend";
  src: url("../fonts/Lexend.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: "LexendExa";
  src: url("../fonts/LexendExa.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "LexendPeta";
  src: url("../fonts/LexendPeta.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

body {
  color: #ffffff;
  background-color: var(--black);
  font-family: Lexend, sans-serif;
  font-weight: 400;
  position: relative;
  min-height: 100vh;
}

a {
  color: white;
  text-decoration: none;
}

label {
  cursor: pointer;
}

html {
  position: relative;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent
}

img,
button,
input,
form {
  user-select: none;
}

button {
  cursor: pointer;

}

:focus {
  outline: none !important;
}

button,
input,
image {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

@media screen and (min-width: 1024px) {
  .hidden-on-desktop {
    display: none;
  }

  .tablet-only {
    display: none;
  }
}

@media screen and (min-width: 640px) and (max-width: 1023px) {
  .tablet-only {
    display: block !important;
  }
}

@media screen and (max-width: 1023px) {
  .hidden-on-mobile {
    display: none;
  }

  .tablet-only {
    display: none;
  }

  .scroll {
    overflow: visible;
  }

  .scroll.off {
    overflow: hidden !important;
  }

  .overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 10;
    pointer-events: none;
  }

  .overlay.active {
    opacity: 1;
    transition: all 0.4s ease-in-out;
    pointer-events: auto;
  }
}






/* FORM SUCCESS & ERROR */
.form-msg {
  display: none;
  text-align: center;
}

.formSuccess {
  color: var(--green);
}

.formError {
  color: red;
}

.msg-sent {
  outline: 0.0625rem solid var(--green);
}

.msg-not-sent {
  outline: 0.0625rem solid red;
}

.no-line-break {
  display: inline;
}

/* Form Error */
form .row {
  position: relative;
}

.parsley-errors-list {
  font-size: 14px;
  list-style-type: none;
  position: absolute;
  bottom: -30px;
  left: 50%;
  padding: 10px;
  margin: 0;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  color: #721c24;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  white-space: nowrap;
  display: none;
}

.parsley-errors-list.visible {
  display: block;
}

.parsley-errors-list::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 10px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #f8d7da transparent;
}

.parsley-error {
  border-color: red !important;
}

/* Style for the error icon */
.parsley-error-item::before {
  content: "⚠️";
  display: inline-block;
  margin-right: 6px;
  color: red; /* Color of the icon */
  font-size: 16px; /* Size of the icon */
}

@media (min-width: 1440px) {
  .parsley-errors-list {
    left: 70%;
  }
}

@media (max-width: 1023px) {
  .parsley-errors-list {
    left: 70%;
  }
}

@media (max-width: 767px) {
  .parsley-errors-list {
    left: 60%;
  }
}

@media (max-width: 639px) {
  .parsley-errors-list {
    left: 50%;
  }
}




/* LOADER */
.loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: fixed; /* Cover the whole viewport */
  top: 0;
  left: 0;
  z-index: 1000; /* Ensure it's above the content */
  background-color: var(--black); /* Optional: background color for the loading screen */
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--black) calc(50% - 0.5em), white 0 calc(50% + 0.5em), var(--black) 0) right/300% 100%;
  animation: l22 2s infinite;
  margin: auto;
  opacity: 1;
  transition: opacity 0.5s ease-in-out; /* Add smooth fade-out */
}

.loader::before {
  content: "DAVOND - SOFTVÉROVÁ AGENTÚRA";
  font-family: LexendPeta, sans-serif;
  color: white;
  padding: 0 5px;
  background: inherit;
  background-image: linear-gradient(135deg, #fff calc(50% - 0.5em), #fff 0 calc(50% + 0.5em), #fff 0);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 200;
}

@keyframes l22 {
  100% {
    background-position: left;
  }
}

.content {
  opacity: 0;
  z-index: -99;
  transition: opacity 1s ease-in-out, z-index 0s cubic-bezier(0.5, 0, 0.1, 1) 2s;
  /* cubic-bezier: slow start, fast end */
}


.content.show-content {
  opacity: 1;
  z-index: 1; /* Bring it to the front after the loader fades out */
}
