﻿:root,
.btn {
  --bs-btn-font-family: "Montserrat", sans-serif;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
/*
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/
html {
  position: relative;
  min-height: 100%;
}

/* Removed */
/* body {
  margin-bottom: 60px;
} */
/* Added */
/* Fix tema Tabulator Bootstrap */
.table-sm > :not(caption) > * > * {
  padding: unset;
}

.montserrat-600 {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.montserrat-100 {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.itim-regular {
  font-family: "Itim", cursive;
  font-weight: 400;
  font-style: normal;
}

/*

    76,175,80    #4caf50 verde
255,152,0    #ff9800 arancione
33,33,33      #212121 grigio

*/
/*nav.bg-white {
    background-color: #212121 !important;

}*/
body {
  /*background-color: #212121;*/
}

.h3 {
  /*color: #4caf50 !important;*/
}

nav {
  /*color: #4caf50 !important;*/
  font-weight: bold;
}

/* Custom Styles */
/* https://css-loaders.com/continuous/ */
/* HTML: <div class="loader"></div> */
.loader {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(farthest-side, #ff9800 94%, rgba(0, 0, 0, 0)), radial-gradient(farthest-side, #4caf50 94%, rgba(0, 0, 0, 0)), #ff9800;
  background-position: center;
  background-repeat: no-repeat;
  animation: l4 1.5s infinite;
}

@keyframes l4 {
  0% {
    background-size: 0 0, 0 0;
  }
  30%, 50% {
    background-size: 0 0, 120% 120%;
  }
  80%, 100% {
    background-size: 120% 120%, 120% 120%;
  }
}
/* Loader Personalizations */
.loader {
  position: fixed;
  top: 50vh;
  left: 46%;
}

.loader-container {
  z-index: 1051;
  background: black;
  opacity: 0.8;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
}

.loader2 {
  border-radius: 50%;
  animation: spin 4s linear infinite;
  position: fixed;
  width: 50px;
  height: 50px;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* */
body {
  /*background-color: #333333;*/
  /* Dark Gray background */
  /*color: white;*/
  /* Default text color */
}

.navbar-custom {
  /*background-color: --var($success)/*#4caf50*/
  /*;*/
  /* Dark Green for navbar */
}

.navbar-toggler {
  border: 0;
}

.footer-custom {
  background-color: #4caf50;
  /* Dark Green for footer */
  padding: 1rem 0;
  color: white;
}

.text-accent {
  color: #ff9800;
  /* Orange for accent */
}

.bg-accent {
  background-color: #ff9800;
  /* Orange for background accent */
}

.btn {
  font-weight: bold;
}

button[name=provider][value=Google2] {
  background-image: url(https://developers.google.com/identity/images/branding_guideline_sample_nt_rd_lg.svg);
  width: 177px;
  height: 42px;
  background-color: transparent;
  border: transparent;
  background-repeat: no-repeat;
  color: transparent;
}

button[name=provider][value=Apple] {
  background-image: url(https://appleid.cdn-apple.com/appleid/button?height=32&width=200&color=black&border=false&type=continue&border_radius=15&scale=4&locale=en_US);
  width: 262px;
  height: 42px;
  background-color: transparent;
  border: transparent;
  background-repeat: no-repeat;
  color: transparent;
  background-size: cover;
}

button[name=provider]:active {
  background-color: transparent !important;
  border: transparent !important;
  color: transparent !important;
}

.text-large {
  font-size: large;
}

.nav-item a i:hover {
  color: #ff9800;
  /* Bootstrap's warning color */
}

.stroke {
  -webkit-text-stroke: 1px;
}

/* Matches and stats */
.fixture-title img,
.group-title-container img {
  max-width: 4rem;
  max-height: 4rem;
  margin: 2px;
  object-fit: contain;
}

.fixture-title.country-logo img,
.fixture-title.competition-logo img,
.group-title-container img {
  /*width: 3rem;*/
  height: 3rem;
  object-fit: scale-down;
}

.group-title-container {
  top: 85px;
}

[data-bs-theme=dark] .fixture-title img,
.ts-dropdown img {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
}

.ts-dropdown img {
  padding: 5px;
}

.info-button {
  cursor: pointer;
}

/* General style */
html,
body {
  touch-action: manipulation;
  /* Disables double-tap to zoom */
}

html {
  overflow-y: scroll;
  scrollbar-width: thin;
  /* or 'auto' */
  scrollbar-gutter: stable;
}

body {
  padding-right: 0px !important;
}

body,
header {
  /*font-family: Arial, sans-serif;*/
  background-image: linear-gradient(to bottom, #14141f, #0a0a11);
  background-attachment: fixed;
}

header {
  /*


  position: fixed;*/
  height: 85px;
  width: 100%;
  z-index: 1;
}

@media (max-width: 767px) {
  header {
    height: 85px;
  }
}
/* Navbar/Offcanvas */
.navbar.glass,
footer.glass {
  background: rgba(76, 175, 80, 0.25) !important;
  box-shadow: 0 8px 32px 0 rgba(255, 153, 0, 0.062745098);
  /*border: 1px solid rgba(255, 255, 255, 0.18) !important;*/
  /*margin: 10px;*/
  margin: 0.5em;
  border-radius: 5px;
}

@media (max-width: 767px) {
  .offcanvas {
    margin: 10px;
    border-radius: 5px;
  }
  .offcanvas.glass {
    background: rgba(76, 175, 80, 0.35) !important;
    box-shadow: 0 8px 32px 0 rgba(255, 153, 0, 0.062745098);
    /*border: 1px solid rgba(255, 255, 255, 0.18) !important;*/
    margin: 10px;
    border-radius: 5px;
  }
  .offcanvas.glass {
    background: rgba(76, 175, 80, 0.35) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    box-shadow: 0 8px 32px 0 rgba(255, 153, 0, 0.062745098);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    /*border: 1px solid rgba(255, 255, 255, 0.18) !important;*/
  }
}
/* Fix Tabulator Bootstrap theme */
.table-sm > :not(caption) > * > * {
  padding: unset;
}

#list-container2 {
  max-height: 66svh;
  overflow: auto;
}

.match-item {
  background: rgba(28, 30, 33, 0.8);
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.team {
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-logo {
  width: 50px;
  height: 50px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.team-logo:hover {
  opacity: 1;
}

.match-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.date-time {
  font-size: 1.1em;
  margin-bottom: 0.5rem;
}

/* .d-flex {
      font-size: 0.9em;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
    } */
.details-logo {
  width: 20px;
  height: 20px;
}

.bg-glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767.98px) {
  .team-logo {
    width: 40px;
    height: 40px;
  }
  .date-time {
    font-size: 1em;
  }
}
#only-home-away-switch,
label[for=only-home-away-switch] {
  cursor: pointer;
}

#list-container,
.match-item,
#filters-div,
#pre-match-stats,
#pre-match-players-statistics-table,
[role=tablist] {
  user-select: none;
}

.group-title-container {
  z-index: 2;
  cursor: pointer;
}

/* TomSelect */
.ts-wrapper.multi .ts-control > div.clear-button {
  color: #efefef !important;
}

.ts-control,
.ts-control input,
.ts-dropdown {
  color: white !important;
}

.player-name {
  word-break: break-word;
}

.form-control:focus {
  box-shadow: none;
}

.match-item.sticky-top:not(.bg-glass) .heart-icon,
.match-item.sticky-top:not(.bg-glass) .star-icon,
.match-item.sticky-top:not(.bg-glass) img.team-logo {
  display: none;
}

@media (max-width: 767px) {
  #general-nav,
  #general-tab-content,
  #pre-match-statistics-table,
  #pre-match-plus-statistics-table,
  .match-item {
    font-size: 12px;
  }
}
[tabulator-field=playerName] img,
[tabulator-field=playerPhoto] img {
  border-radius: 10px;
}

.ts-wrapper img.tiny-flag {
  width: 30px;
}

.navbar-brand, .wiki-title {
  font-family: "Libre Franklin", serif;
}

.hidden-select-container .ts-wrapper {
  min-height: unset;
}

.blurred-cell {
  filter: blur(4px);
}
