@font-face {
  font-family: "Island Moments";
  src: url("./assets/IslandMoments-Regular.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #2b2b2b;
  color: #f5f5f5;
  font-family: "Island Moments", cursive;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app {
  width: min(1040px, 92vw);
  margin: 0 auto;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-top: 22px;
}

.title {
  margin: 0 0 16px;
  font-size: 70px;
  font-weight: 500;
}

.timer-box {
  width: 100%;
  height: 560px;
  margin: 0 auto;
  border-radius: 22px;
  background: #57585b;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  padding: 84px 30px 30px;
}

.modes {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 22px;
}

.mode-btn {
  font-family: "Island Moments", cursive;
  font-size: 68px;
  color: #f0f0f0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  line-height: 1;
  padding: 6px 14px;
  cursor: pointer;
}

.mode-btn.active {
  background: rgba(180, 180, 180, 0.6);
}

.timer-text {
  margin: 10px 0 0;
  font-size: 332px;
  line-height: 0.84;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 90px;
  margin-top: 24px;
}

.action-btn {
  width: 360px;
  height: 108px;
  border-radius: 70px;
  font-family: "Island Moments", cursive;
  font-size: 80px;
  line-height: 1;
  background: transparent;
  color: #f2f2f2;
  cursor: pointer;
}

.action-btn.start {
  border: 2px solid #1eff00;
  box-shadow: 0 0 8px rgba(30, 255, 0, 0.2);
}

.action-btn.stop {
  border: 2px solid #ff1111;
  box-shadow: 0 0 8px rgba(255, 17, 17, 0.2);
}

.footer {
  width: 100%;
  position: fixed;
  bottom: 16px;
  left: 0;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.social {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 58px;
  height: 58px;
  border: 2px solid #111;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2c2c2c;
}

.social-link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.author {
  margin: 0;
  font-size: 62px;
}

.help {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #d8d8d8;
  font-size: 46px;
  line-height: 0.9;
}

.help img {
  width: 46px;
  height: 46px;
}

@media (max-width: 1200px) {
  .title {
    font-size: 58px;
  }

  .timer-box {
    height: 500px;
    padding-top: 70px;
  }

  .mode-btn {
    font-size: 56px;
  }

  .timer-text {
    font-size: 286px;
  }

  .action-btn {
    width: 320px;
    height: 98px;
    font-size: 70px;
  }

  .author {
    font-size: 54px;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
    display: block;
  }

  .app {
    width: 95vw;
    min-height: auto;
    margin-top: 26px;
    display: block;
    padding-top: 0;
  }

  .modes {
    gap: 20px;
    flex-wrap: wrap;
  }

  .timer-text {
    font-size: 220px;
  }

  .actions {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: min(360px, 88vw);
  }

  .footer {
    position: static;
    margin-top: 40px;
    padding: 0 20px 16px;
  }

  .author {
    font-size: 44px;
  }
}
