@font-face {
  font-family: Beaufort;
  src: url(fonts/beaufortforlol-bold.otf);
}

@font-face {
  font-family: SpiegelBold;
  src: url(fonts/Spiegel-Bold.otf);
}

@font-face {
  font-family: Spiegel;
  src: url(fonts/Spiegel-Regular.otf);
}

@font-face {
  font-family: BeaufortMedium;
  src: url(fonts/BeaufortforLOL-Medium.ttf);
}

@property --var1 {
  syntax: "<color>";
  inherits: true;
  initial-value: #785a28;
}

/* General styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Spiegel;
  background-color: #01070e;
  color: #939b82; /* Light text color */
  font-size: 0.8rem;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: baseline;
  align-items: center;
  height: 100svh;
  background-image: url(images/art/bg.png);
  background-size: cover;
  animation: fadeInAnimation ease 1s;
  animation-fill-mode: forwards;
  font-size: 1rem;
}

/* Tags redefinition */
a {
  color: #c1b38a;
  transition: 0.15s;
}
a:hover {
  color: #efe5d1;
}

label {
  /* Light text color for input and button */
  border: none;
  padding: 0.5rem;
  margin: 5px;
}

button {
  background-color: #1b2931; /* Dark input background color */
  color: #a3c7c7; /* Light text color for input and button */
  border: 2px solid #0596aa;
  padding: 0.5rem;
  margin: 5px;
  transition: 0.2s;
  position: relative;
}

#button:hover {
  color: #e9e6d2;
  border: 2px solid #8de8e1;
  background-image: linear-gradient(#1b2931 0%, #133748 100%);
}

/* Dividers */
.divider {
  border: 0.5px solid #434741a8;
  width: 100%;
}

/* Sections */

header {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
}

.headerup {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  padding: 20px clamp(20px, 10vw, 60px);
}

/* Site name in the header */

#name {
  color: #cdbe91;
  font-family: Beaufort;
}
#desc {
  color: #f0e6d2;
  font-size: 1.3125rem;
  font-family: BeaufortMedium;
}

/* Modes navigation menu */

.navmenu {
  margin-top: 10px;
  margin-left: clamp(20px, 10vw, 60px);
  margin-right: clamp(20px, 10vw, 60px);
  position: relative;
}

.navmenu > * {
  margin-right: 1%;
}

.navmenu > :last-child {
  margin-right: 0px;
}

.mode-container {
  position: relative;
  display: inline;
}

.mode {
  font-family: SpiegelBold;
  color: #a7be91;
  transition: 0.3s, color 0.5s;
  cursor: pointer;
}

.mode:hover {
  color: #f0e6d2;
}

.mode:active {
  color: #a7be91;
}

/* Highlight the mode when hovered */

.highlighter {
  background-image: url("images/dividerline.png");
  background-size: contain; /* This property makes the image cover the entire container */
  background-position: center; /*Center the image within the container */
  background-repeat: no-repeat; /*Prevent the image from repeating */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  transition: width 0.3s ease;
}

.mode:hover + .highlighter,
.highlighter:hover {
  width: 100%;
}

/* Buttons and version */

.butver {
  display: flex;
  align-items: center;
}

.butver > * {
  margin-left: 3px;
  margin-right: 3px;
}

.lolbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1e2328; /* Button background color */
  color: #cdbe91; /* Button text color */
  border: 1px solid transparent;
  border-image: linear-gradient(#c3a464, #6b5028) 1;
  cursor: pointer;
  transition: 0.3s;
  width: 2.1875rem;
  padding: 0.1875rem;
}

.lolbutton:hover {
  background-color: #2a3540; /* Button background color on hover */
  border-image: linear-gradient(#fff868, #b3761c) 1;
  color: #ffffc8;
}

.version {
  color: #3c3c41;
  padding: 5px;
  z-index: 1;
}

.icon {
  width: 1.5625rem;
  height: 1.5625rem;
  opacity: 0.7;
  transition: 0.15s;
}

.lolbutton:hover .icon {
  opacity: 1;
}

/* Shuffler window */

#quickcontainer {
  text-align: center;
  align-items: center;
  justify-content: center;
  align-content: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 50%;
  transition: 0.3s;
}

.input-players {
  display: flex;
  flex-direction: column;
  width: 60%;
  height: clamp(60vh, 65vh, 100vh);
  align-items: center;
}

textarea {
  text-align: center;
  outline: none;
  position: static;
  background: linear-gradient(#060f19, #161e25);
  background-size: 1px 150%;
  width: 100%; /* Adjust the width as needed */
  height: 100%;
  color: #e5dbc9; /* Light text color for input and button */
  padding: 8px;
  margin: 5px;
  resize: none; /* Disable textarea resizing */
  transition: 0.3s; /* Add a transition for smooth color change */
  border-image: linear-gradient(#9f9a8b, #3d3d42) 1;
  transition: --var1 0.3s, all 0.3s;
}

textarea:hover {
  border-image: linear-gradient(#9f9a8b, #9f9a8b) 1;
  background-position: 10px;
  --var1: #cdbe91;
}

textarea:focus {
  border-image: linear-gradient(#c7a96d, #7a5c29) 1;
  background-position: 100px;
}

textarea::-webkit-scrollbar {
  background: none;
  width: 15px;
}

textarea::-webkit-scrollbar-thumb {
  border: 5px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
  border-radius: 10px;
  transition: 5s;
  background-color: var(--var1);
}

.teamscontainer {
  display: none;
  opacity: 0;
  flex-direction: column;
  width: 100%;
  transition: opacity 0.15s, display 0.15s;
  align-items: center;
}

.teamplayers {
  white-space: pre-line;
  color: #7f9b8c;
  opacity: 0;
  transition: opacity 0.15s, display 0.15s;
}
.teamname {
  margin-bottom: 10px;
  transition: opacity 0.15s, display 0.15s;
}
#redside {
  color: #ff2345;
  text-align: left;
}

#blueside {
  color: #09bdd6;
  text-align: right;
}

.teams {
  display: flex;
  position: relative;
  justify-content: space-between;
  width: 100%;
}
.buttonswrapper {
  display: grid;
  grid-template-columns: 0.5fr;
  grid-template-rows: 1fr 1fr;
  margin-top: 20px;
  width: 70%;
  justify-content: center;
  align-items: center;
}

.riot-tags {
  color: #a7be91;
}

.blueplayer {
  color: #09bdd6;
}

.redplayer {
  color: #ff2345;
}

#team1,
#team2 {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  font-weight: bold;
  width: 45%;
}

#team1players {
  text-align: right;
}

#team2players {
  text-align: left;
}

.player {
  padding: 10px 0px;
}

.showing {
  opacity: 1;
}
.showingdisplay {
  opacity: 1;
  display: inline;
}

.hiding {
  opacity: 0;
  display: none;
}

.showingdisplayflex {
  opacity: 1;
  display: flex;
}

footer {
  color: #928e81;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  bottom: 0;
  padding: 15px clamp(20px, 10vw, 60px);
}

#tooltip {
  text-align: left;
  visibility: hidden;
  transition: visibility 0.3s, opacity 0.3s;
  opacity: 0;
  padding: 10px;
  background-color: #010a13;
  color: #928f82;
  /* Position the tooltip */
  position: absolute;

  z-index: 1;
  border: 1px solid #775a28;
}

@starting-style {
  .showing {
    opacity: 0;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
