@font-face {
    font-family: 'EricssonHildaMono';
    src: url('./fonts/Woff2/EricssonHildaMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+000-5FF;
}

:root {
    --primary-black: #000000;
	--primary-blue: #768fb8;
    --secondary-gray: #717171;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --font-main: 'EricssonHildaMono', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-blue);
    color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Header */
header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0;
}

.logo {
    width: 40px;
    height: auto;
}

/* Hero Section */
.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}

.brand-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.2;
}

.carousel-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    user-select: none;
    touch-action: manipulation;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    /* REMOVE width: 200% */
    transition: transform 0.5s ease-in-out;
    width: 100%; /* Base width */
}

.carousel-slide {
    /* flex-grow: 0, flex-shrink: 0, flex-basis: 100% */
    flex: 0 0 100%; 
    width: 100%;
    /* Ensure child media fills the slide */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video,
.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    touch-action: manipulation;
    pointer-events: auto;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--white);
}

.dot.active {
    opacity: 1;
    background-color: #ffffff;
    /* Red dot as seen in image */
    border-color: #ffffff;
    transform: scale(1.1);
}

/* Share Button */
.btn-share,.btn-action {
    background-color: var(--white);
    color: var(--primary-black);
    border: none;
    /*border-radius: 20px;*/
    padding: 16px 40px;
    font-size: 16px;
    /*font-weight: 600;*/
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin: 0 auto 40px;
}

.btn-share:hover {
    transform: scale(1.02);
    background-color: #1a1a1a;
}

.btn-share:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Optional: Add a loading text style */
.btn-share:disabled::after {
    content: " (Loading...)";
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--white);
    font-size: 14px;
}

.footer-links {
    margin-top: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Terms Page Adjustments */
.terms-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--secondary-gray);
    font-size: 14px;
    text-decoration: none;
}

.terms-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.last-updated {
    color: var(--primary-black);
    font-size: 14px;
    margin-bottom: 32px;
}

.terms-content {
    text-align: left;
    margin-bottom: 40px;
}

.terms-section {
    margin-bottom: 24px;
}

.terms-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.terms-section p {
    font-size: 14px;
    color: var(--white);
    line-height: 1.6;
}


/* The Backdrop (dimming the background) */
  #pageDialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); /* Modern frosted glass effect */
  }

  /* The Dialog Window itself */
  #pageDialog {
    width: 90%;
    max-width: 600px; /* Limits width on desktop */
    height: 80vh;    /* 80% of screen height */
    border: none;
    border-radius: 16px; /* Rounded "App" corners */
    padding: 0;
    overflow: hidden; /* Keeps the iframe corners rounded */
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    
    /* Center it perfectly */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0; 
  }

  /* Header Styling */
  .modal-header {
    background: #ffffff;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .close-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
  }

  .close-btn:hover { background: #e0e0e0; }

  iframe {
    width: 100%;
    height: calc(100% - 63px); /* Subtracts header height */
    border: none;
  }