:root {
  /* CSS 전역 변수 선언 */
  --tab-bar-background-color: #ffffff;
  --tab-bar-border-color: #f0f0f0;
  --tab-bar-side-width: 4px;
  --tab-bar-round-amount: 0px;
  --tab-icon-size: 22px;
  --tab-height: var(--tab-icon-size);
  --tab-gap: 5px;
  --tab-padding: 7px;
  --tab-bar-border-height: 1px;
  --tab-bar-height: calc(var(--tab-height) + 2 * var(--tab-padding)); /* 58px */
  --tab-default-color: rgb(175 171 171);
  --tab-active-color: #ffb800;
  --switch-duration: 0.3s;
  --shrink-scale: 0.85;
  --shrink-duration: 0.5s;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f9f9f9;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif, 'Apple SD Gothic Neo', 'Noto Sans KR';
}

.container {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
@media screen and (max-width: 660px) {
  .container {
    flex-direction: column-reverse;
  }
}

.phone-preview {
  flex: 1;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.mockup {
  width: 242px;
  height: 525px;
  border: 16px solid #333;
  border-radius: 36px;
  overflow: hidden;
  background: white;
  box-shadow: inset 0 0 0 1px #ccc;
  position: relative;
}
.mockup iframe {
  width: 468.75px;
  height: 1015px;
  transform-origin: top left;
  transform: scale(0.445);
  border: none;
  pointer-events: none;
  overflow: hidden;
}

.tabbar-mock {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  overflow: hidden;
}
.tabbar_side {
  background-color: var(--tab-bar-background-color);
  border-top: 1px solid var(--tab-bar-border-color);
  width: var(--tab-bar-side-width);
  height: 100%;
}
.tabbar_side:first-child {
  border-radius: var(--tab-bar-round-amount) 0 0 0;
}
.tabbar_side:last-child {
  border-radius: 0 var(--tab-bar-round-amount) 0 0;
}
.tabbar_tabs {
  background-color: var(--tab-bar-background-color);
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  gap: var(--tab-gap);
  height: var(--tab-bar-height);
  width: calc(100% - 2 * var(--tab-bar-side-width));
  border-top: var(--tab-bar-border-height) solid var(--tab-bar-border-color);
  padding-top: var(--tab-padding);
  padding-bottom: var(--tab-padding);
}
.tabbar_tab {
  flex: 1;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  height: var(--tab-height);
  cursor: pointer;
  transform: scale(1); /* 기본 상태에서의 크기 지정 */
  transition: transform var(--shrink-duration); /* 전환 효과 적용 */
  font-weight: 500;
}

.info {
  flex: 1;
  padding: 2rem;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.qr {
  margin-bottom: 1rem;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto;
  border-bottom-color: rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 20%;
  border-bottom-right-radius: 20%;
  border-bottom-style: solid;
  border-bottom-width: 0px;
  border-image-outset: 0;
  border-image-repeat: stretch;
  border-image-slice: 100%;
  border-image-source: none;
  border-image-width: 1;
  border-left-color: rgba(0, 0, 0, 0.1);
  border-left-style: solid;
  border-left-width: 0px;
  border-right-color: rgba(0, 0, 0, 0.1);
  border-right-style: solid;
  border-right-width: 0px;
  border-top-color: rgba(0, 0, 0, 0.1);
  border-top-left-radius: 20%;
  border-top-right-radius: 20%;
  border-top-style: solid;
  border-top-width: 0px;
  box-shadow:
    rgba(60, 64, 67, 0.3) 0px 1px 3px 0px,
    rgba(60, 64, 67, 0.15) 0px 4px 8px 3px;
  color: rgb(60, 64, 67);
  margin-bottom: 0.5rem;
  padding: 0;
}

.store-btn {
  display: flex;
  width: 100%;
  max-width: 280px;
  margin: 0.5rem auto;
  padding: 0.8rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  vertical-align: middle;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.store-btn.google-play-store-btn {
  border: 1px solid rgb(1, 135, 95);
  background-color: #ffffff;
  color: rgb(95, 99, 104);
}
.store-btn.apple-app-store-btn {
  border: 1px solid rgb(0, 112, 201);
  background-color: #ffffff;
  color: rgb(95, 99, 104);
}
.store-btn > svg {
  width: 25px;
  height: 25px;
}
