
/* Main Styles */
@font-face {
  font-family: 'Aeroport';
  src: url('../fonts/Aeroport/Aeroport.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeroport';
  src: url('../fonts/Aeroport/Aeroport Medium.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --app-height: 100vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color:#0e2b63;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  touch-action: pan-x pan-y;
}

html {
  font-size: 2vh;
}
h1 {
  font-size: 1.2rem;
  
  font-weight: normal;
}
body {
  font-family: 'Aeroport', 'Segoe UI', sans-serif;
  background: #F4F9FC;
  height: var(--app-height);
}

div.logo {
  width: 100%  ;
  height: 2.5rem;
  background: url('../images/BAT_Nordics_Logo.svg') no-repeat center center;
  background-size: contain;
  margin: 2rem auto auto ;
}

.app-container {
  width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: var(--app-height);
}

.app-content {
  flex: 1;
  overflow: auto;
}

.shapes img{
  position: fixed;
  z-index: -1;
}
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--app-height) - (2rem + 3rem + 2rem));
}

.page.all-results-page
{
  height: auto;
}

.page-content {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
}

.shadow {
  box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.17);
}

/* Carousel Page Styles */
.carousel-page .page-content {
  gap: 1.5rem;
}

.carousel-question {
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 1rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  user-select: none;
}

.carousel-cards {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  width: 10rem;
  height: 16rem;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: grab;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.carousel-card:active {
  cursor: grabbing;
}

.carousel-card.selected {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-text {
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Tinder Page Styles */
.tinder-page .page-content {
  gap: 1.5rem;
}

.tinder-question {
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 1rem;
}

.tinder-card-container {
  position: relative;
  width: 100%;
  height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.tinder-card {
  width: 15rem;
  height: 20rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: grab;
  transition: transform 0.1s ease-out, opacity 0.3s ease-out;
  
  will-change: transform;
}

.tinder-card.no-transition {
  transition: opacity 0.3s ease-out;
}

.tinder-card:active {
  cursor: grabbing;
}

button {
  font-size: 1rem;
  border: 1px solid #0e2b63;
  padding: 0.2rem 1rem;
  border-radius: 1.5rem;
  margin: 0 0.2rem;
}
button.blue
{
  background-color: #0e2b63;
  color: white;
}
button.white
{
  background-color: #F4F9FC;
  color: #0e2b63;
}

/* Reusable touch/click press feedback utility */
.scale-on-touch {
  transition: transform 0.12s ease;
  transform-origin: center;
  touch-action: manipulation;
}

.scale-on-touch:active {
  transform: scale(0.9);
}

.scale-on-touch.swipe-pressed {
  transform: scale(0.9);
}

div.disclaimer {
  font-size: 0.8rem;
  position: absolute;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 100%;
  text-align: center;
}

img.banner {
  width: 100%;
  max-width: 1080px;
  margin: 2rem auto;
}

.multiple-choice {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
}
.multiple-choice .choice {
  display: flex;
  width: 40%;
  height: 5rem;
  margin: .5rem;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: .5rem;
  padding: 0.5rem 1rem;
} 

.multiple-choice .choice.selected {
  background-color: #afca0b;
}


/* Progress Dots - Fixed Bottom */
.progress-bar {
  position: fixed;
  left: 0;
  bottom: env(safe-area-inset-bottom);
  width: 100%;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.progress-bar-track {
  position: relative;
  width: 90vw;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-bar-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: #0e2b63;
  z-index: 1;
}

.progress-dot {
  position: relative;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0e2b63;
  z-index: 2;
}

.progress-dot.filled {
  background: #0e2b63;
  border-color: #0e2b63;
}

/* Results SVG Container */
.results-svg-container {
  width: 80%;
  max-width: 700px;
  margin: .0rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.results-svg-container svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.results-byline {
  max-width: 650px;
}

/* QR Code Container */
.qr-code-container {
  width: 100%;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-code-container canvas {
  display: block;
}