/* --------------------------
   Font imports
--------------------------- */
@font-face {
  font-family: "DS";
  src: url("wii assets/fonts/ds.ttf") format("truetype");
}
@font-face {
  font-family: "FOT";
  src: url("wii assets/Fonts/FOT-RodinNTLG Pro B.otf");
}

/* --------------------------
     Root variables
  --------------------------- */
:root {
  --glow: drop-shadow(0 0 4px rgb(0, 204, 255));
  --shadow: drop-shadow(5px 5px 2px rgba(0, 0, 0, 0.24));
  --primary-font-color: #525252;
  --transition-speed: 0.2s;
}

/* --------------------------
     Global resets & defaults
  --------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-image: url("wii assets/BG.jpg");
  background-color: #e0e0e0; /* Fallback color */
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Primary container for positioning */
.wii-menu-container {
  width: 1111px;
  height: 625px;
  position: relative;
}

/* --------------------------
     Channel grid
  --------------------------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 20px 60px;
  position: relative;
  z-index: 1;
}

/* Base channel styling */
.channel {
  border-radius: 15px;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: filter var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}

.channel:hover {
  z-index: 1;
  filter: var(--glow);
}

/* Image inside each channel */
.channel-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Empty channel blocks use a background image */
.channel--empty {
  background-image: url("wii assets/emptychannel.gif");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Common button styles */
.button-container {
  position: absolute;
  z-index: 2;
  transition: transform var(--transition-speed) ease;
}

.button-container:hover {
  transform: scale(1.05);
}

.button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
}

.button-image {
  display: block;
  filter: var(--shadow);
  transition: filter var(--transition-speed) ease;
}

.button-container:hover .button-image {
  filter: var(--shadow) var(--glow);
}

/* --------------------------
     Specific button placements
  --------------------------- */
.wii-button-container {
  bottom: 50px;
  left: 45px;
}

.message-button-container {
  bottom: 50px;
  right: 43px;
}

.sd-card-container {
  bottom: 55px;
  left: 204px;
}

.sd-card-image {
  width: 48px;
  height: 58px;
}

/* --------------------------
     Time & date
  --------------------------- */
.time-date-container {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-font-color);
}

.time {
  font-family: "DS";
  font-size: 60px;
  font-weight: normal;
  letter-spacing: 2px;
  color: #9b9b9b;
  margin-bottom: -13px;
}

.date {
  font-family: "FOT";
  font-weight: 10;
  font-size: 36px;
  margin-top: 0;
  color: #757677;
}

.am-pm {
  font-family: "FOT";
  font-size: 23px;
  font-weight: bold;
  vertical-align: baseline;
}

/* --------------------------
     Channel Name Display
  --------------------------- */
.channel-name-box {
  position: absolute;
  background-color: white;
  color: #626367;
  font-family: "FOT";
  font-size: 28px;
  font-weight: bold;
  padding: 8px 25px;
  border-radius: 100px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity var(--transition-speed) ease,
    visibility var(--transition-speed) ease,
    transform var(--transition-speed) ease;
  white-space: nowrap;
  pointer-events: none;
}

.channel-name-box.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* --------------------------
     Footer copyright
  --------------------------- */
.copyright-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: #808080;
  font-family: "FOT";
  text-align: center;
  z-index: 2;
}
