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%;
}

body {
  margin-bottom: 60px;
}

.card {
  position: relative;
  overflow: hidden;
}

.cropped-image {
  position: absolute;
  width: 300px;
  height: auto;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  object-fit: cover;
  object-position: top;
}

.left-bg {
  mask-image: linear-gradient(to left, rgba(0,0,0,0), rgb(0, 0, 0), rgb(0, 0, 0));
  bottom: -40px;
  left: -20px;
  height: 400px;
}

.right-bg {
  mask-image: linear-gradient(to right, rgba(0,0,0,0), rgb(0, 0, 0), rgb(0, 0, 0));
  bottom: 0;
  right: -20px;
  height: 400px;
}

.medal-row {
  position: absolute;
  top: 20px;
  right: 0;
  transform: translateX(0%) translateY(-50%);
  display: flex;
  align-items: flex-end;
  gap: 5px;
  z-index: 5;
  pointer-events: none;
}

.medal-img {
  height: 60px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.medal-img[src="/res/img/D.png"] {
    width: 0px;
}

.medal-featured {
  margin-bottom: -40px;
  height: 100px;
  z-index: 6;
  opacity: 1;
}
.card {
  background-image: url('../res/img/kc-paper-texture.png');
  background-repeat: repeat;
  background-size: auto; 
  background-color: #f2eadf !important;  
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 700px) {
  .cropped-image {
      position: absolute;
      width: 200px;
      height: auto;
      opacity: 0.2;
      pointer-events: none;
      transition: opacity 0.3s ease-in-out;
      object-fit: cover;
      object-position: top;
  }
}

.background-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('images/texture.png');
  background-repeat: repeat;
  background-size: auto;
  z-index: 0;
}

.commentary {
  align-items: center;
  text-align: justify;
  font-size: 1.2rem;
}

.commentary-init {
  text-align: justify;
  font-size: 1.2rem;
}

.custom-input-group {
  border: 3px solid #064d3b;
  border-radius: 0.5rem;
  overflow: hidden;
}

.hover-text {
  position: relative;
  cursor: pointer;
  border-bottom: 2px solid #111;
}

.hover-text .tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 4px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.hover-text:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 300px;
}

.chart-wrapper canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
  z-index: -0;
}

body {
  background: linear-gradient(#3d5386, #4b649d);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}
