@font-face {
  font-family: "Christmas Jewelry";
  src: url("fonts/christmas-jewelry/Christmas Jewelry TTF Demo.ttf")
    format("truetype");
}

@font-face {
  font-family: "Rush Driver Italic";
  src: url("fonts/rush-driver/RushDriver-Italic.otf") format("opentype");
}

body {
  background-image: url("img/bg1.jpg");
  background-repeat: repeat;
  color: rgb(51, 71, 91);
  font-family: "Helvetica", "sans-serif";
  font-size: 1vh;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100hw;
  margin: 0;
}

.links {
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  opacity: 0;
}
.links:hover {
  opacity: 1;
}
.links a:hover {
  color: #ff0000;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0 2em;
}

.container > * {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.top {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

.top .heading {
  font-family: "Christmas Jewelry", sans-serif;
  color: #ff0000;
  text-shadow: 2px 2px 4px #000000;
  font-size: 3em;
  line-height: 1.2em;
  margin-bottom: 0.3em;
  margin-top: 0.75em;
  text-align: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  height: 20vh;
}

.team {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 1s, transform 1s;
}

.team.active {
  opacity: 1;
  transform: translateX(0);
}

.team.exit {
  opacity: 0;
  transform: translateX(-100%);
}

#score-team0-top .team-name {
  font-size: 0.8em;
}

#score-team0-top .points-desc .team-img {
  top: -1vh;
  position: relative;
}

#score-team2-top .team-name {
  font-size: 0.9em;
}

.position-name {
  font-family: "Rush Driver Italic", sans-serif;
  font-size: 2em;
  letter-spacing: 0.2em;
  margin-bottom: 0.5em;
  display: flex;
}

.points-desc {
  display: flex;
  flex-direction: row;
}

.team-points {
  font-family: "Rush Driver Italic", sans-serif;
  font-size: 1.3em;
  flex: 1;
  color: #ff0000;
  text-shadow: 2px 2px 4px #000000;
  white-space: nowrap;
  padding: 0 0.5em;
  text-align: end;
}

.team-img {
  height: 12vh;
}
.team-img img {
  max-width: 100%;
  max-height: 100%;
}

.team-desc {
  flex: 3;
  font-style: italic;
  font-weight: bold;
  font-size: 1.85em;
  padding-left: 2em;
}
.position-name .position {
  opacity: 0.8;
  margin-right: 0.4em;
}

.bottom {
  flex: 5;
  padding: 1em 0.25em;
  box-sizing: border-box;
  font-family: "Rush Driver Italic", sans-serif;
  padding-bottom: 3em;
}

#placeholder {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 29vh;
  height: 18vh;
  font-family: "Christmas Jewelry", sans-serif;
  text-align: center;
}
:root {
  --img-width: 19vh;
  --img-height: calc(var(--img-width) * (4.5 / 6));
}
#placeholder .rotatis {
  position: absolute;
  top: calc(50% - var(--img-height) / 2);
  left: calc(50% - var(--img-width) / 2);
  transform-origin: top left;
}

#placeholder img {
  width: var(--img-width);
  filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.4));
}

#placeholder .text {
  color: #ff0000;
  position: relative;
  text-shadow: 4px 4px 8px #000000;
  font-size: 3em;
}

.games-page {
  overflow-y: auto;
  padding-top: 1em;
  padding-bottom: 3em;
}

.game-rules {
  font-weight: bold;
  font-size: 1.3em;
}

#games-list {
  padding-bottom: 2em;
}

.game-item h3 {
  font-family: "Rush Driver Italic", sans-serif;
  font-size: 1.5em;
  letter-spacing: 0.2em;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

.game-points {
  font-size: 1.3em;
  flex: 1;
  color: #ff0000;
  text-shadow: 2px 2px 4px #000000;
}

.game-desc {
  font-style: italic;
  font-weight: bold;
  font-size: 1.3em;
  padding-left: 1em;
}

.game-url {
  font-family: "Christmas Jewelry", sans-serif;
  color: #00ff00;
  text-shadow: 2px 2px 4px #000000;
  display: inline-block;
  transition: transform 0.3s ease;
  text-decoration: none;
  margin: 0.5em;
  display: inline-block;
  transform: rotate(11deg);
  font-size: 0.7em;
}

.game-url:hover {
  color: #ff0000;
}

.schedule {
  overflow-y: auto;
  height: 100%;
}
.schedule-table {
  font-size: 2.4em;
  max-width: 30em;
  margin-top: 2em;
}
.schedule-table td {
  padding: 0.25em;
}
.schedule-table td:first-child {
  font-weight: bold;
  font-size: 1.3em;
  font-style: italic;
}
.schedule-table td:not(:first-child) {
  font-family: "Christmas Jewelry", sans-serif;
  color: #ff0000;
  text-shadow: 2px 2px 4px #000000;
}
.schedule-table td.tomorrow {
  color: #4caf50;
}

#score-table {
  font-size: 2vw;
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  margin-top: 2em;
  background-color: white;
}

#score-table thead {
  font-family: "Christmas Jewelry", sans-serif;
  color: #ff0000;
}

.score-table-container {
  height: 100vh;
  overflow-y: auto;
}

#score-table th,
#score-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: right;
  font-weight: bold;
}

#score-table th {
  font-weight: bold;
}

score-table {
  overflow-y: auto;
}

.highest-score {
  color: #4caf50;
  font-size: 1.3em;
}
