html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  background-color: rgba(0, 0, 0, 0.225);
  color: #111;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Delicious";
  src: url("Other/Fonts/Delicious_Handrawn/DeliciousHandrawn-Regular.ttf")
    format("truetype");
}

@font-face {
  font-family: "Cherry";
  src: url("Other/Fonts/Cherry_Bomb_One/CherryBombOne-Regular.ttf")
    format("truetype");
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px;
  box-sizing: border-box;
  background: hsla(0, 0%, 0%, 0.798);
  backdrop-filter: blur(10px);
  z-index: 99999999;
}

.unihome {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.bing {
  height: 70px;
  margin-left: 10px;
  transition: 0.2s ease;
  margin-top: 5px;
  display: block;
}

.bing:hover {
  transform: scale(1.1);
}

.navlink {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 0 28px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.navlink:hover {
  background: rgba(255, 255, 255, 0.12);
}

.All {
  min-height: 100vh;
  position: relative;
}

.vidback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  overflow-x: hidden;
  opacity: 0.75;
}

.Writing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 1100px);
  padding: 0 24px;
  transform: translate(-50%, -45%);
  text-align: center;
  color: white;
  text-shadow: #0000008c 0px 1px 8px;
  opacity: 0;
  animation: fadeUpCenter 2.5s ease-out forwards;
}

@keyframes fadeUpCenter {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-45% + 30px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -45%);
  }
}

.Writing h1 {
  font-size: 80px;
  margin: 0;
}

.Writing p {
  font-size: 40px;
  margin-top: 10px;
  margin-bottom: 0;
}

.Two {
  display: flex;
  flex-direction: row;
  gap: 30px;
  font-size: 50px;
  text-align: center;
  justify-content: center;
  align-items: stretch;
  margin-top: 50px;
  flex-wrap: nowrap;
}

.Lcounter {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  min-height: 120px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.45);
  box-shadow: #1111118e 0px 5px 8px;
  font-family: "Delicious", cursive;
}

.Lcounter p {
  margin: 0;
  font-size: 50px;
}

.Lbutton {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.Lbutton button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 48px;
  padding: 0 30px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
  box-shadow: #1111118e 0px 5px 8px;
}

.Lbutton button:not(.liked) {
  animation: glow 2.5s ease-in-out infinite;
}

.Lbutton button:not(.liked):hover {
  transform: scale(1.1);
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 40px rgb(255, 255, 255);
    background-color: rgba(255, 41, 41, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  }
}

.Lbutton button.liked {
  opacity: 0.45;
}

.Lbutton button.animateLike {
  animation: likePop 0.35s ease;
}

@keyframes likePop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.35);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1.1);
  }
}

/* ----------- Large tablets / smaller laptops ----------- */
@media (max-width: 1200px) {
  .topbar {
    justify-content: center;
    padding: 12px 18px;
    min-height: 90px;
    height: auto;
    gap: 8px;
  }

  .unihome {
    margin-right: 0;
  }

  .bing {
    margin-left: 0;
  }

  .navlink {
    margin: 0 12px;
    padding: 10px 10px;
    font-size: 15px;
  }

  .Writing {
    width: min(100%, 980px);
    padding: 0 20px;
  }

  .Writing h1 {
    font-size: 68px;
  }

  .Writing p {
    font-size: 32px;
    margin-top: 8px;
  }

  .Two {
    gap: 24px;
    margin-top: 38px;
  }

  .Lcounter {
    padding: 0 24px;
    min-height: 104px;
  }

  .Lcounter p {
    font-size: 40px;
  }

  .Lbutton button {
    font-size: 42px;
    padding: 0 24px;
    min-height: 104px;
  }
}

/* ----------- iPad Pro / Surface Pro portrait ----------- */
@media (max-width: 1100px) and (min-width: 850px) and (min-height: 1000px) {
  .Writing {
    width: min(100%, 850px);
    transform: translate(-50%, -42%);
    padding: 0 24px;
  }

  .Writing h1 {
    font-size: 66px;
  }

  .Writing p {
    font-size: 30px;
    margin-top: 10px;
  }

  .Two {
    gap: 22px;
    margin-top: 36px;
  }

  .Lcounter {
    padding: 0 24px;
    min-height: 100px;
  }

  .Lcounter p {
    font-size: 38px;
  }

  .Lbutton button {
    font-size: 40px;
    padding: 0 22px;
    min-height: 100px;
  }
}

/* ----------- Nest Hub Max / short wide screen ----------- */
@media (max-width: 1280px) and (min-width: 1000px) and (max-height: 850px) {
  .topbar {
    justify-content: center;
    padding: 10px 18px;
    min-height: 90px;
    height: auto;
    gap: 8px;
  }

  .unihome {
    margin-right: 0;
  }

  .bing {
    margin-left: 0;
    height: 62px;
    margin-top: 0;
  }

  .navlink {
    margin: 0 10px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .Writing {
    width: min(100%, 860px);
    transform: translate(-50%, -34%);
    padding: 0 24px;
  }

  .Writing h1 {
    font-size: 58px;
  }

  .Writing p {
    font-size: 26px;
    margin-top: 8px;
  }

  .Two {
    gap: 20px;
    margin-top: 30px;
  }

  .Lcounter {
    padding: 0 20px;
    min-height: 90px;
  }

  .Lcounter p {
    font-size: 34px;
  }

  .Lbutton button {
    font-size: 36px;
    padding: 0 20px;
    min-height: 90px;
  }
}

/* ----------- Nest Hub ----------- */
@media (max-width: 1050px) and (max-height: 650px) {
  .Writing {
    width: min(100%, 760px);
    transform: translate(-50%, -30%);
    padding: 0 20px;
  }

  .Writing h1 {
    font-size: 48px;
  }

  .Writing p {
    font-size: 22px;
    margin-top: 8px;
  }

  .Two {
    gap: 16px;
    margin-top: 24px;
  }

  .Lcounter {
    padding: 0 18px;
    min-height: 78px;
  }

  .Lcounter p {
    font-size: 28px;
  }

  .Lbutton button {
    font-size: 30px;
    padding: 0 18px;
    min-height: 78px;
  }
}

/* ----------- Tablets ----------- */
@media (max-width: 900px) {
  .topbar {
    position: fixed;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
  }

  .unihome {
    width: 100%;
    justify-content: center;
  }

  .bing {
    height: 62px;
    margin-top: 0;
  }

  .navlink {
    font-size: 14px;
    padding: 8px 10px;
    margin: 0 6px;
  }

  .Writing {
    width: min(100%, 760px);
    transform: translate(-50%, -40%);
    padding: 0 22px;
  }

  .Writing h1 {
    font-size: 56px;
  }

  .Writing p {
    font-size: 28px;
    margin-top: 10px;
  }

  .Two {
    gap: 20px;
    margin-top: 34px;
  }

  .Lcounter {
    padding: 0 20px;
    min-height: 90px;
  }

  .Lcounter p {
    font-size: 34px;
  }

  .Lbutton button {
    font-size: 36px;
    padding: 0 20px;
    min-height: 90px;
  }
}

/* ----------- Phones ----------- */
@media (max-width: 600px) {
  .topbar {
    padding: 10px 10px 14px;
    gap: 4px;
  }

  .bing {
    height: 54px;
  }

  .navlink {
    font-size: 13px;
    padding: 7px 8px;
    margin: 0 4px;
  }

  .Writing {
    width: min(100%, 520px);
    transform: translate(-50%, -38%);
    padding: 0 18px;
  }

  .Writing h1 {
    font-size: 42px;
  }

  .Writing p {
    font-size: 22px;
    margin-top: 10px;
    line-height: 1.4;
  }

  .Two {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: nowrap;
  }

  .Lcounter {
    padding: 0 16px;
    min-height: 72px;
  }

  .Lcounter p {
    font-size: 24px;
  }

  .Lbutton button {
    font-size: 28px;
    padding: 0 16px;
    min-height: 72px;
  }
}

/* ----------- Very small phones ----------- */
@media (max-width: 380px) {
  .Writing {
    transform: translate(-50%, -36%);
    padding: 0 14px;
  }

  .Writing h1 {
    font-size: 36px;
  }

  .Writing p {
    font-size: 18px;
  }

  .navlink {
    font-size: 12px;
    padding: 6px 7px;
  }

  .Two {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  .Lcounter {
    padding: 0 14px;
    min-height: 64px;
  }

  .Lcounter p {
    font-size: 20px;
  }

  .Lbutton button {
    font-size: 24px;
    padding: 0 14px;
    min-height: 64px;
  }
}