/**********************/
/*      VARIABLES     */
/**********************/

:root {
  /*~~~~~~~~~~*/
  /* Default */
  /*~~~~~~~~~*/

  /* Colors */
  --white: #fff;
  --darkBckg: #212529;
  --pageBckg: #f9f9f9;

  --primaryColor: #212529;
  --primaryLighterColor: #43474B;
  --primaryDarkerColor: #0F030E;

  --secondaryColor: #086EBA;
  --secondaryLighterColor: #2A80DC;
  --secondaryDarkerColor: #064C98;

  --hoverLinkColor: #e8f3ff; /*chengable*/
  --textColor: #585865;
  --fadeText: #585865b7;
  --bordersColor: #d7d7d7;
  --inputBackgroundColor: #EBF7F7;
  --inputBorderColor: #CAE4E6;
  --buttonPressed: #005961; /*chengable*/
  --alertColor: #dc3545;
  --bckColor: #ebebeb;
  --approved-text: #75bba0;
  --approved-background: #08b108;
  --ratingColorLowest: #8f1d04;
  --ratingColorLow: #f5340e;
  --ratingColorNeutre: #f58d0e;
  --ratingColorGood: rgb(45, 245, 14);
  --ratingColorExcellent: #17980d;
  --canceledText: #deb1b4;
  --scheduled-color: #cefce4;
  --additionalBtnBkgColor: #10985B;
  --additionalBtn: rgb(10, 124, 73);
  --additionalBtnRGB: #0a7c49;
  --additionalBtnBkgHovColor: #60d4a0;
  --transparentColor: rgba(255, 255, 255, 0);

  /* Typography */
  /* MONT */
  
}

:root .card {
  --bs-card-cap-bg: rgba(0, 0, 0, 0);
}


/**********************/
/*      BASE CSS      */
/**********************/

html,
body {
  background-color: var(--pageBackgroundColor) !important;
  margin: 0;
  padding: 0;
}

* {
  color: var(--textColor);
  margin: 0;
  padding: 0;
  font: inherit;
}

a {
  text-decoration: none;
  color: var(--secondaryColor);
}

picture {
  display: block;
}

.no-decoration {
  text-decoration: none;
  color: var(--white);
}

.smaller-text {
  font-size: 0.8em;
}

.small-text {
  padding: 0 0.5rem;
  text-align: center;
  font-size: 0.6em;
}

.medium-text {
  font-size: 0.8em;
}

.large-text {
  font-size: 1.5em;
}

.emph-text {
  font-weight: 600;
}

a.btn {
  color: var(--white)!important;
}

.delete-item .bi {
  color: var(--alertColor)!important;
}

.mybtn{
  display: inline-block!important;
  background-color: var(--secondaryColor)!important;
  color: var(--white)!important;
  
}
.mybtn:hover{ 
  background-color: var(--secondaryLighterColor)!important; 
  color: var(--white)!important;
}
.mybtn:active{
  background-color: var(--secondaryDarkerColor)!important; 
  color: var(--white)!important;
}
.link-to-website {
  color: white;
  text-align: center;
}
.currency-add::after {
  content: " €";
}

.currency-small::after {
  font-size: 0.4em;
}


/*~~~~~~~~*/
/* LogIn */
/*~~~~~~~*/

.login-page {
  background-color: var(--primaryColor);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
}

.login-page h3, 
.login-page h1 span {
  color: var(--white);
}

.login-page img {
  width: 150px;
  height: 150px;
}

.login-page form {
  display: flex;
  flex-direction: column;
}

/*~~~~~~~~~*/
/* Header */
/*~~~~~~~~*/

nav .navbar-toggler {
  background-color: white;
}

.principal-nav {
  background-color: var(--primaryColor);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.principal-nav * {
  color: white !important;
}

.principal-nav * span {
  color: white !important;
}

.top-banner {
  height: 4rem;
  width: 100%;
  background-color: var(--primaryColor);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.top-banner .business-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}
  
.top-banner .business-logo picture {
  height: 4rem;
  width: 4rem;
}

.top-banner .business-logo img {
  height: 100%;
  width: 100%;
}

.top-banner .business-logo .business-name {
  color: var(--white);
  font-size: 0.9em;
  font-weight: 600;
}

.top-banner .business-logo .business-undertext {
  color: var(--white);
  font-size: 0.7em;
}

.top-banner .user-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.top-banner .user-picture picture {
  height: 3rem;
  width: 3rem;
}

.top-banner .user-picture img {
  height: 100%;
  width: 100%;
}

.top-banner .user-data {
  text-align: start;
}

.top-banner .name,
.top-banner .user-role,
.top-banner .event,
.top-banner .category {
  color: var(--white);
  font-size: 0.8em;
}
  
aside {
  position: fixed;
  top: 4rem;
  left: 0;
  bottom: 0;
  width: 15rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  background-color: var(--primaryColor);
}

aside a {
  color: var(--white);
}

aside .links-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

aside .menu-links a {
  display: flex;
  width: calc(100% - 1rem);
  height: 3rem;
  background-color: var(--primaryColor);
  margin-left: 1rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  line-height: 40px;
  border-radius: 50px 0 0 50px;
}

aside .menu-links a i, 
aside .menu-links a span {
  color: var(--white);
}

aside .menu-links a i {
  font-size: 1.5em;
}

aside .menu-links a span {
  font-size: 1.2em;
}

aside .menu-links a:hover i,
aside .menu-links a:hover span {
  color: var(--secondaryColor);
}

aside .menu-links a.active {
  background-color: var(--white);
  position: relative;
}

aside .menu-links a.active i, 
aside .menu-links a.active span {
  color: var(--secondaryColor);
}

aside .menu-links a.active::before,
aside .menu-links a:hover::before {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 5px 5px 0 5px var(--white);
  background: transparent;
}

aside .menu-links a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  border-top-right-radius: 20px;
  box-shadow: 5px -5px 0px 5px var(--white);
  background-color: transparent;
}

.body {
  width: 100%;
  margin: 4rem 0 5rem 0;
  padding: 0 0.5rem;
}

.body a {
  display: flex;
  color: var(--secondaryColor);
  gap: 1rem;
}

.body a .bi {
  color: var(--secondaryColor);
}

.body .success-add {
  width: 100%;
  background: var(--secondaryColor);
  color: white;
  font-weight: 600;
  padding: 1rem;
  position: fixed;
  top: 4rem;
  left: 0; 
  z-index: 200;
  text-align: center;
  border-radius: 0 0 50px 50px;
}

.body .error-text {
  color: var(--alertColor);
  font-size: 0.9em;
}

.body > div {
  position: relative;
}

.body .go-back-arrow {
  position: fixed;
  margin: 0;
  top: 4rem;
  left: 0;
  background-color: var(--white);
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 100;
}

.body .go-back-arrow i {
  font-size: 2em;
}

.body nav {
  position: sticky;
}

.body nav a {
  justify-content: center;
  align-items: center;
}

.body nav .bi {
  font-size: 2em;
}

.body nav .link-box {
  position: relative;
  margin: 20px;
  height: 150px;
  width: 150px;
  max-width: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--secondaryLighterColor);
  border-radius: 20px;
}

.body nav .link-box::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  top: -10px;
  left: -10px;
  border-radius: inherit;
  background: var(--secondaryLighterColor);
  transition: all 1s ease;
}

.body nav .link-box:hover,
.body nav .link-box:active,
.body nav .link-box:focus {
  background-color: var(--secondaryColor);
}

.body nav .link-box:hover i, 
.body nav .link-box:hover span,
.body nav .link-box:active i, 
.body nav .link-box:active span,
.body nav .link-box:focus i, 
.body nav .link-box:focus span {
  color: var(--white);
}

.body nav .link-box:hover::before,
.body nav .link-box:active::before,
.body nav .link-box:focus::before {
  width: 100%;
  height: 100%;
  top: 5px;
  left: 5px;
  background-color: var(--secondaryDarkerColor);
}

.body nav .link-box span {
  color: var(--secondaryColor);
}
  
.body .ads-slideshow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.body .ads-slideshow img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
}

.body .ads-slideshow img:first-child {
  visibility: visible; /* Show the first image initially */
  opacity: 1; /* Make the first image visible */
}

.body .ads-slide-aside {
  position: relative;
  width: 15rem;
  height: 6rem;
  overflow: hidden;
}

.body .ads-slide-aside img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.body .ads-slide-aside img.active {
  opacity: 1;
}

.event-sponsor-banner {
  position: relative;
  width: 100%;
  min-height: 8rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f5f7;
}

.event-sponsor-banner__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.event-sponsor-banner__item.active {
  opacity: 1;
}

.event-sponsor-banner__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-sponsor-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.event-sponsor-strip__card {
  background: #fff;
  border: 1px solid var(--secondaryLighterColor);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.event-sponsor-strip__card img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.body .long-table {
  overflow-x: auto;
}

.body .long-table table {
  width:auto;
}

/* MyEvents */

.body .events-nav {
  position: sticky;
  background: white;
  z-index: 200;
  top: 4rem;
}

.body .item-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--secondaryLighterColor);
  border-radius: 5px;
}

.body .accordion {
  padding-right: 0.5rem;
}

.body .accordion-event-box {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--secondaryLighterColor);
}  

.body .input-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------------- */
/*    SEARCH PAGE   */
/* ---------------- */

.body .grids {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, 300px);
  grid-auto-rows: 200px;
  position: relative;
}

.body .grids p {
  opacity: 0.8;
  max-width: 55ch;
  margin: 0;
}
  
.body .grids h2 {
  font-weight: 600;
  font-size: 1.4em;
}

.body .cards {
  position: relative;
  background: var(--white);
  padding: 1rem;
  box-shadow: 1px 1px 4px -1px var(--textColor);
}

.body .cards > div > i {
  font-size: 55px;
}

.body .cards:hover,
.body .cards:active,
.body .cards:focus {
  background-attachment: fixed;
  background-image: radial-gradient(
    circle at var(--x, 0) var(--y, 0),
    #1091987a,
    #1091981e 8rem
  );
  cursor: pointer;
}

.body .cards:focus-visible {
  outline: var(--primaryColor) solid 2px;
}

.body .cards::after {
  content: "";
  position: absolute;
  inset: -2px;
  background-attachment: fixed;
  background-image: radial-gradient(
    circle at var(--x, 0) var(--y, 0),
    #109198,
    transparent 5rem
  );
  pointer-events: none;
  z-index: -1;
}

.body .grid-containers {
  margin-block-start: 3rem;
  display: grid;
  grid-template-areas: "a";
}

.body .grid-containers > * {
  grid-area: a;
}

/* Judging */
.body .jury-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.body .judge-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Settings */
.body .user-settings {
  margin-top: 4rem;
}

.body picture {
  width: 5rem;
  height: 5rem;
}

.body img {
  width: 100%;
  height: 100%;
}

.body .user-data .--container {
  display: flex;
  flex-direction: column;
}

.body .user-data .--title {
  font-size: 1.2em;
  font-weight: 600;
}
  
.body .primary-color {
  width: 50px;
  height: 25px;
  background-color: var(--primaryColor);
}
.body .secondary-color {
  width: 50px;
  height: 25px;
  background-color: var(--secondaryColor);
}


/*~~~~~~~~~~~~~~*/
/* Subscrption */
/*~~~~~~~~~~~~*/

.card-header h2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-name {
  font-size: 0.7em;
  color: var(--fadeText);
}

.prices .range-area {
  position: inherit;
}

.prices .slider {
  position: inherit;
  top: 0;
  left: 0;
  transform: none;
  height: auto;
  padding: 0;
}

.prices .slider label {
  width: 80px;
}

.prices .slider::after {
  content: "";
}

.prices .bi-check-circle {
  color: var(--approved-background) !important;
}

.prices .bi-x-circle {
  color: var(--alertColor) !important;
}

.slider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  height: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  /* box-shadow: 0px 15px 40px #7E6D5766; */
}
.slider label {
  width: 60px;
  padding-left: 5px;
}

.slider label span {
  font-size: var(--fs-text);
  font-weight: 600;
  color: var(--primaryColor);
}

.slider span::after {
  content: ' km';
}

.slider input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 5px;
  background: var(--primaryColor);
  border: none;
  outline: none;
}
.slider input[type="range"]::-webkit-slider-thumb {
   -webkit-appearance: none !important;
   appearance: none !important;
  width: 25px;
  height: 25px;
  background: var(--primaryColor);
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--secondaryColor);
} 
.slider input[type="range"]:hover {
  background: var(--secondaryColor);
}

.prices .small-text {
  text-align: start;
  font-size: 0.8em;
  padding: 0;
}

.prices .small-price {
  padding-left: calc(var(--bs-gutter-x)* .5);
}

.plan-price {
  font-size: 0.9em;
  font-weight: 600;
  margin: 0;
}

.brand-logo {
  height: 2rem;
  width: 2rem;
}

footer {
  position: fixed;
  height: 4rem;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primaryColor);
}

footer .footer-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 2rem;
  width: 100%;
  padding: 0.5rem;
}

footer .footer-menu a {
  padding-top: 0.5rem;
}

footer .footer-menu i {
  color: var(--white);
  font-size: 2em;
}

.home-footer {
  position: relative;
}


@media (max-width: 900px) {
  .body .ads-slideshow {
      position: fixed;
      bottom: 3rem;
      height: 150px;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 1000;
      background: black;
      padding: 10px;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
  }
  aside {
    display: none;
  }
}

@media (min-width: 350px) {
  .body .business-name {
    font-size: 1.2em;
  }

  .body .business-undertext {
    font-size: 0.8em;
  }
}

@media (min-width: 900px) {
  .body {
    margin-left: 15.5rem;
    margin-bottom: 0;
  }

  .body .go-back-arrow {
    left: 15rem;
  }

  footer {
    display: none;
  }

  .home-footer {
    display: flex;
  }

  .brand-logo {
    height: 4rem;
    width: 4rem;
    margin-right: 1rem;
  }
}
