/* Importing the Spot Mono Font */
@font-face {
  font-family: "Spot Mono";
  src: url("../fonts/Spot\ Mono\ Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Spot Mono";
  src: url("../fonts/Spot\ Mono\ Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Spot Mono";
  src: url("../fonts/Spot\ Mono\ Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Spot Mono";
  src: url("../fonts/Spot\ Mono\ Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

/* Text Styles */

/* Heading 1 */
h1 {
  font-family: "Spot Mono";
  font-size: 60px;
  font-style: normal;
  font-weight: 500;
  line-height: 120px; /* 200% */
  margin: 0;
  padding: 0;
}
/* Body Large */
.large {
  font-family: "Spot Mono";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0;
  padding: 0;
}
/* Body Large Inactive */
.inactive {
  font-family: "Spot Mono";
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin: 0;
  padding: 0;
  color: var(--neon);
}

/* Body */
.bodymain {
  font-family: "Spot Mono";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  padding: 0;
}

/* Body tiny */
.tiny {
  font-family: "Spot Mono";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
  padding: 0;
}

/* Color Variables */
:root {
  --neon: #0093e6;
  --background: #002940;
  --bg-menu: #003553;
  --blue-gray: #1d5e82;
  --text-color: #ffe4e4;
}

body {
  background-color: var(--background);
  color: var(--text-color);
  display: flex;
  width: 100%;
  min-height: 100vh;
  padding: 40px 0px 20px 0px;
  gap: 200px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: 0 0;
  overflow: auto;
}

p{
  padding: 0;
  margin: 0;
}
/* Media Queries for Responsiveness */

/* @media (max-width: 768px) {
  nav.navbar.shrink {
    width: 80%; 
    margin: 0 auto;
  }

  nav.navbar {
    width: 80%;
  }
} */

/* For screens larger than 768px */
/* @media (min-width: 769px) {
  nav.navbar.shrink {
    width: 50%; 
    margin: 0 auto;
  }
} */

/* @media (max-width: 480px) {
  .body {
    padding: 15px 0 5px 0; 
    gap: 50px; 
  }
} */

header {
  position: relative; 
  width: 100%; 
  z-index: 10; 
  transition: padding 0.3s, background-color 0.3s; 
}

#counter {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--background);
  color: var(--neon);
  font-family: "Spot Mono";
  font-size: 60px;
  font-style: normal;
  font-weight: 500;
  line-height: 120px;
}

/* Hide main content initially */
#main-content {
  display: none;
}

/* Custom Cursor Styles */
#cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--neon, #0093e6);
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  /* cursor: pointer; */
}

/* Hover Effects */
a:hover #cursor,
button:hover #cursor {
  background: var(--neon, #0093e6); 
  border: none;
}

/* Hide Default Cursor */
body,
a,
header,
button,
label {
  cursor: none;
}

/* Navbar Container */
nav.navbar {
  display: flex;
  padding: 0px 100px;
  width: 80%;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  position: fixed;
  top: 40px; 
  left: 50%; 
  /* right: 0;  */
  z-index: 100;
  transition: width 0.8s ease-in-out;
  translate : -50% 0;
}

/* Shrunk navbar design */
nav.navbar.shrink {
  display: flex;
  width: 50%; 
  margin: 0 auto;
  background-color: rgba(0, 53, 83, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 60px;
  padding: 10px 20px;
  transition: all 0.8s ease-in-out;
  z-index: 100;
}

/* Shrink State Transitions for Logo and Button */
nav.navbar.shrink .logo,
nav.navbar.shrink .toggle-menu,
nav.navbar.shrink .button {
  transition: transform 0.3s ease; /* Ensure all elements shrink smoothly */
}

/* Logo Styles */
nav .logo {
  width: 93px;
  height: 45px;
  transition: transform 0.8s ease-in;
}

/* Toggle Menu Styles */
nav .toggle-menu {
  width: 263px;
  height: 48px; /* Customize this further as needed */
  transition: transform 0.8s ease-in;
}

/* Button Styles */
nav .button {
  display: flex;
  width: 120px;
  height: 45px;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  background: var(--neon, #0093e6);
  border: none; /* Removes the border */
  outline: none; /* Removes the focus outline */
  transition: transform 0.8s ease-in;
}

/* Hover State */
nav .button:hover {
  display: flex;
  width: 120px;
  height: 45px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Prevent shrinking */
  border-radius: 30px;
  border: 2px solid var(--neon, #0093e6); /* Change border */
  background: var(--background, #002940); /* Change background */
}

/* Toggle menu */
.menu-container {
  display: flex;
  width: 263px;
  height: 35px;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  outline: 2px solid var(--neon, #0093e6);
  border-radius: 40px;
  background: var(--bg-menu, #003553);
  flex-shrink: 0;
}

.menu-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 35px;
  border-radius: 40px;
  /* transition: transform 0.8s ease-in; */
  position: relative;
}

.menu-item.selected {
  background: var(--neon, #0093e6);
  /* transition: all 0.1s cubic-bezier(0.55, 0.085, 0.68, 0.53);  */
}

.menu-item.selected::before {
  content: "";
  position: absolute;
  top: -10px; /* Position it above the menu item */
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  background: var(--neon, #0093e6);
  border-radius: 30px 30px 0px 0px;
  flex-shrink: 0;
}

.menu-item.selected:hover {
  background: var(--background, #002940);
  outline: 2px solid var(--neon, #0093e6);
  outline-offset: -2px;
  /* transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);  */
}

.menu-item:not(.selected):hover {
  background: var(--background, #002940);
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-self: stretch; /* Takes full width */
  padding: 20px; /* Add some padding around the footer */
  color: var(--blue-gray, #1d5e82); /* General text color */
}

.thanks {
  display: flex;
  padding: 10px 0;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1 0 0; /* Allow to grow and shrink */
  color: var(--blue-gray, #1d5e82);
  text-align: center;
}

.thanks span {
  font-family: "Spot Mono", monospace;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.notes {
  display: flex;
  padding: 10px 40px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.notes span {
  color: var(--blue-gray, #1d5e82);
  font-family: "Spot Mono", monospace;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.scrolling-text {
  display: flex;
  position: relative; /* Enable positioning for child */
  overflow: hidden; /* Hide overflowing content */
  height: 30px; /* Set a fixed height to match the content */
}

.scrolling-content {
  display: flex; /* Align text in a row */
  animation: scroll linear infinite; /* Infinite scroll animation */
  white-space: nowrap; /* Prevent line breaks */
  padding: 8px;
}

.scrolling-text p {
  font-family: "Spot Mono", monospace;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--text-color);
  margin: 0; /* Remove default margin */
  padding: 0 20px; /* Add padding for spacing */
}

@keyframes scroll {
  0% {
    transform: translateX(-50%); /* Start from the initial position */
  }
  100% {
    transform: translateX(0); /* Move to the left off-screen */
  }
}
@media (max-width: 1440px) {
  nav.navbar.shrink {
    width: 70%;
  }
}

@media (max-width: 1068px) {
  * {
    box-sizing: border-box;
  }
  
  /* Navbar Container */
  nav.navbar {
    padding: 0px 50px;
    width: 100%;
  }
  
  /* Shrunk navbar design */
  nav.navbar.shrink {
    width: 90%;
  }
  
  /* Toggle menu */
  .menu-container {
    height: 45px;
  }

  .footer {
    padding: 0;
  }
  .thanks {
    padding: 10px 20px;
  }
  .thanks span {
    font-size: 12px;
  }

  .notes {
    padding: 10px 30px;
    gap: 12px;
  }

  .notes span {
    font-size: 12px;
  }
}

@media (max-width: 734px) {
  * {
    box-sizing: border-box;
  }
  body {
    gap: 100px
  }
  /* Navbar Container */
  nav.navbar {
    padding: 0px 10px;
    width: 100%;
    flex-wrap: wrap;
  }
  nav.navbar > a:last-of-type {
    justify-items: end;
  }
  
  /* Shrunk navbar design */
  nav.navbar.shrink {
    width: 90%;
    border-radius: 12px;
    padding: 10px 20px;
  }
  
  /* Logo Styles */
  nav .logo {
    width: 62px;
    height: 30px;
  }
  
  /* Toggle Menu Styles */
  nav .toggle-menu {
    width: 263px;
    height: 48px; /* Customize this further as needed */
  }
  
  /* Button Styles */
  nav .button {
    width: 70px;
    height: 30px;
    padding: 8px 10px;
  }
  
  nav .button img {
    max-width: 100%;
  }

  /* Hover State */
  nav .button:hover {
    width: 70px;
    height: 30px;
  }
  
  /* Toggle menu */
  .menu-container {
    width: 182px;
    height: 38px;
    padding: 5px;
    margin: 30px auto 0 auto;
  }
  .menu-container-c {
    order: 3;
    width: 100%;
  }
  
  .menu-item {
    width: 54px;
    height: 25px;
    padding: 7px 10px;
  }

  .menu-item img {
    max-width: 50px;
  }

  #play img {
    padding-top: 4px;
  }
  
  
  .menu-item.selected::before {
    content: "";
    position: absolute;
    top: -10px; /* Position it above the menu item */
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 5px;
    background: var(--neon, #0093e6);
    border-radius: 30px 30px 0px 0px;
    flex-shrink: 0;
  }
  
  .menu-item.selected:hover {
    background: var(--background, #002940);
    outline: 2px solid var(--neon, #0093e6);
    outline-offset: -2px;
  }

  h1 {
    font-size: 24px;
    line-height: 31.75px; /* 200% */
  }
  
  .large {
    font-size: 20px;
    font-weight: 700;
  }

  /* Footer */
  .footer {
    padding: 10px; /* Add some padding around the footer */
    text-align: center;
  }

  .thanks {
    display: flex;
    padding: 10px 0;
    gap: 10px;
    text-align: center;
  }

  .thanks span {
    font-size: 12px;
  }

  .notes {
    padding: 10px 0;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .notes span {
    font-size: 12px;
  }
}