/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  background-color: #fff;
  color: #1c1c1c;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* Header */
.apple-header {
  background-color: #fed600;
  padding: 1.5rem;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.apple-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.apple-header-inner > img {
  width: auto;
  max-height: 5rem;
  max-width: 100%;
  filter: drop-shadow(10px 0 2px #fdec9f) drop-shadow(0 10px 2px #fdec9f) drop-shadow(-10px 0 2px #fdec9f) drop-shadow(0 -10px 2px #fdec9f);
}

/* Main Content */
.main-content {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  flex: 1;
  width: 100%;
}

/* Shortcuts */
.shortcuts,
.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shortcut-item {
  background-color: #f5f5f7;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.shortcut-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.shortcut-icon {
  width: auto;
  height: 3.5em;
  margin-right: 1rem;
  /* border-radius: 25%; */
}

.shortcut-text {
  flex-grow: 1;
  margin-bottom: 1rem; /* Add space below text on smaller screens */
}

.shortcut-text > * {
  margin: 0.25rem 0;
}

.get-shortcut-btn {
  background-color: #007aff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  align-self: flex-start; /* Align button to the start for smaller screens */
}

.get-shortcut-btn:hover,
.get-shortcut-btn:focus {
  background-color: #005ecb;
  text-decoration: none;
}

/* Changelog */
.changelog-container {
  margin-top: 1rem;
}

.toggle-changelog-btn {
  background-color: transparent;
  color: #007aff;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.toggle-changelog-btn:hover {
  color: #005ecb;
}

.changelog-content {
  display: none;
  margin-top: 0.5rem;
  border-top: 1px solid #3a3a3c;
  padding-top: 0.5rem;
}

.changelog-content > ul {
  padding-left: 0;
  margin: 0;
  list-style-type: none;
  color: #f5f5f7;
}

.changelog-content > ul > li {
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.changelog-content > ul > li li {
  font-size: 1rem;
  font-weight: normal;
}

/* Footer */
.apple-footer {
  text-align: center;
  padding: 1rem;
  background-color: #2c2c2e;
  border-top: 1px solid #3a3a3c;
  color: #f5f5f7;
}

/* Media Queries */
@media (max-width: 760px) {
  .shortcut-icon {
    margin-bottom: 1rem;
  }

  .get-shortcut-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .shortcut-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

.icon-pattern {
    position: absolute;
    top: -10vh;
    left: -10vw;
    width: 220vw;
    height: 120vh;
    background: #fceb9e url("/images/icon_pattern.svg") repeat;
    background-size: 15vh;
    animation: scrollIcons 30s linear infinite;
    transform: translate3d(0, 0, 0);
  }

  @keyframes scrollIcons {
    from {
      background-position: 0 0;
    }
    to {
      background-position: -15vh 0;
    }
  }

  @media (min-width: 768px) {
    .icon-pattern {
      background-size: 15vh;
      animation-duration: 25s;
    }
    @keyframes scrollIcons {
      from {
        background-position: 0 0;
      }
      to {
        background-position: -15vh 0;
      }
    }
  }

  @media (min-width: 1200px) {
    .icon-pattern {
      background-size: 15vh;
      animation-duration: 20s;
    }
    @keyframes scrollIcons {
      from {
        background-position: 0 0;
      }
      to {
        background-position: -15vh 0;
      }
    }
  }