
/* Fonts */

@font-face {
  font-family: "vf-font";
  src:
    url("/assets/font/vodafone_rg_w.woff2") format("woff2"),
    url("/assets/font/vodafone_rg_w.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "vf-font";
  src:
    url("/assets/font/vodafone_md_w.woff2") format("woff2"),
    url("/assets/font/vodafone_md_w.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "vf-font";
  src:
    url("/assets/font/vodafone_bd_w.woff2") format("woff2"),
    url("/assets/font/vodafone_bd_w.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* styles */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* font-family: system-ui, sans-serif; */
  overscroll-behavior: none;
  overflow: hidden;

  font-family: "vf-font", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.inverted-ui .screen-header h1,
body.inverted-ui .screen-header p,
body.inverted-ui #btn-restart span {
  color: #000 !important;
}

body.inverted-ui #topnav #btn-menu img,
body.inverted-ui #topnav #btn-back img,
body.inverted-ui .btn-pp-restart {
  filter: invert(1) !important;
}

body.inverted-ui  #topnav .logo img{
  content: url('/assets/icons/icon-topnav-logo-r.png');
}

#app-container {
  position: relative;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000000;
  color: #fff;
  overflow: hidden;
  /*touch-action: none;*/

  /* safe area padding */
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  box-sizing: border-box;
}

/* Base button style */
.btn {
  display: inline-flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 400px;
  height: 50px;
  border-radius: 7.5px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: 
    background 0.2s ease,
    color 0.2s ease,
    border 0.2s ease,
    transform 0.1s ease,
    filter 0.1s ease,
    opacity 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* primary button */
.btn-primary {
  background-color: #E60000;
  color: #fff;
  border: none;
}

/* secondary button */
.btn-secondary {
  background-color: white;
  color: #000;
  /*border: 2px solid #000;*/
}

.btn-third {
  width: auto;
  height: 30px;
  background: none;
  border: none;
  color: #000;
  font-size: 0.9rem;
  text-decoration: underline;
  border-radius: 0;
  padding: 0 0.25rem;
}

/* button state */
.btn:not([data-no-feedback]):active {
  transform: scale(0.97);
  filter: brightness(0.85);
  opacity: 0.9;
}

/*///////////////////////////////////////////////////////////////////////////////////////////////
// screen general  
///////////////////////////////////////////////////////////////////////////////////////////////*/

#screens {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.screen {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
  /*justify-content: center;
  align-items: center;*/
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

.screen-header {
  position: absolute;
  top: calc(50px + env(safe-area-inset-top, 20px) + 45px);
  left: 8%;
  right: 8%;
  text-align: left;
  color: #fff;
}

.screen-header.animate-in {
  opacity: 0;
  animation: headerFadeIn 0.8s ease-out forwards;
}

@keyframes headerFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.screen-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.screen-header p {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
}

/* continue buttons */
.continue-options {
  display: flex;                
  flex-direction: column;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  gap: 12px;
  width: 90%;
  max-width: 400px;
}
.continue-options .btn {
  position: relative;
  width: 100%;
}

/* video (start-screen / loader) */
#bg-beauty-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}


/*///////////////////////////////////////////////////////////////////////////////////////////////
// screen loader #screen-loader 
///////////////////////////////////////////////////////////////////////////////////////////////*/

#global-loader {
  display: none; 
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 98;
}

#global-loader.active {
   display: flex;
}


#loader-bg .bg-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
#loader-bg .bg-beauty-mid,
#loader-bg .bg-beauty-front {
  position: absolute;
  max-width: 70%;
  height: auto;
  object-fit: contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bg-beauty-front{
  -webkit-mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 75%, rgba(0, 0, 0, 0) 95%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 75%, rgba(0, 0, 0, 0) 95%);
  mask-repeat: no-repeat;
  mask-size: cover;
}

#loader-bg .bg-beauty-mid {
  animation: loopTransitionMid 5s ease-in-out infinite;
}

@keyframes loopTransitionMid {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.25; }
  50%  { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.25; }
}

#loader-bg .bg-beauty-front {
  animation: loopTransitionFront 5s ease-in-out infinite;
}

@keyframes loopTransitionFront {
  0%   { transform: translate(-50%, -50%) scale(1);}
  50%  { transform: translate(-50%, -50%) scale(0.75);}
  100% { transform: translate(-50%, -50%) scale(1);}
}

#loader-bg .bg-beauty-front {
  z-index: 3;
}
*/

.loader-subheader {
  position: absolute;
  bottom: env(safe-area-inset-bottom, 100px);
  left: 0;
  right: 0;
  padding: 0 20px 30px;
  text-align: center;

  transition: opacity 0.3s ease;
}

.loader-text-fade-in {
  opacity: 1;
}

.loader-text-fade-out {
  opacity: 0;
}

.loader-subheader p {
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  opacity: 0.9;
}

/*///////////////////////////////////////////////////////////////////////////////////////////////
// input behaviour  
///////////////////////////////////////////////////////////////////////////////////////////////*/

* {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

button, 
[role="button"], 
a {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  background: none;
  border: none;
  transition: 
    filter 0.1s ease,
    opacity 0.1s ease,
    transform 0.1s ease;
}

button:active {
  filter: brightness(0.7);
  opacity: 0.85;
  transform: scale(0.97);
}

button:not([data-no-feedback]) {
  transition: filter 0.1s ease, opacity 0.1s ease, transform 0.1s ease;
  transform-origin: center center;
}

button:not([data-no-feedback]):active {
  filter: brightness(0.7);
  opacity: 0.85;
  transform: scale(0.97);
}


/*///////////////////////////////////////////////////////////////////////////////////////////////
// top navigation  
///////////////////////////////////////////////////////////////////////////////////////////////*/

#topnav {
  display: flex;
  position: absolute;
  top: 20px;
  left: 5px;
  right: 5px;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding-top: env(safe-area-inset-top, 20px);
  box-sizing: border-box;
  z-index: 99;
}

#topnav .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#topnav .logo img {
  width: auto;
  height: 40px;
  object-fit: contain;

  content: url('/assets/icons/icon-topnav-logo.png');
}

#topnav button {
  display: flex;
  width: auto;
  justify-content: center;
  align-items: center;
}

#topnav button img {
  width: auto;
  height: 25px;
  object-fit: contain;
}

/* invert topnav elements */
#app-container.inverted #topnav button img {
  color: #000;
}

#btn-back.hidden{
  visibility: hidden;
}

/*///////////////////////////////////////////////////////////////////////////////////////////////
// menu 
///////////////////////////////////////////////////////////////////////////////////////////////*/

#menu {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  justify-content: center;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.3);
  z-index: 99;

  /* default transition */
  opacity: 0;
  pointer-events: none;
}

.menu-box {
  width: 100%;
  height: 275px;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;

  /* default transition */
  transform: translateY(100%);
}

.menu-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #000;
}

#btn-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  padding: 0.25rem;
}

#btn-menu-close img{
  width: auto; 
  height: 30px;
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 2.5rem;
  margin-top: 0;
}

.btn-menu-reload {
  position: relative;
  display: flex;
  align-items: center;
  background: #f1f1f1;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #000;
  margin: 0.75rem 0;
}

.btn-menu-reload img {
  position: absolute;
  left: -2.5rem;
  width: auto;
  height: 25px;
  object-fit: contain;
}

.btn-menu-start {
  position: relative;
  display: flex;
  align-items: center;
  background: #f1f1f1;
  border: none;
  border-radius: 10px;
 
  font-size: 1rem;
  color: #000;
  margin: 0 0 0.75rem 0; 
}

.menu-links {
  display: flex;
  flex-direction: column;
}

.menu-links button {
  background: none;
  border: none;
  color: #000;
  text-align: left;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 0;
}

.menu-links button,
.btn-menu-reload {
  transform-origin: left center;
}

#menu.active {
  opacity: 1;
  pointer-events: auto;
}

#menu,
.menu-box {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#menu.active .menu-box {
  transform: translateY(0);
}

.menu-version {
  position: absolute;
  font-size: 0.75rem;
  color: #b4b4b4;
  text-align: center;
  bottom: 2%;
  right: 2%;
}
