/* =========================================================================
   Font Face
   ========================================================================= */

@font-face {
  font-family: 'Zalando Sans Expanded';
  src: url('../fonts/zalando-sans-expanded/zalando-sans-expanded-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Zalando Sans Expanded';
  src: url('../fonts/zalando-sans-expanded/zalando-sans-expanded-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Zalando Sans Expanded';
  src: url('../fonts/zalando-sans-expanded/zalando-sans-expanded-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Zalando Sans Expanded';
  src: url('../fonts/zalando-sans-expanded/zalando-sans-expanded-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}

/* =========================================================================
   CSS Variables
   ========================================================================= */

:root {
  --color-bg: #0a0a0a;
  --color-gold: #c9a55a;
  --color-text: #d4d0c8;
  --color-white: #ffffff;
  --color-black: #000000;
}

/* =========================================================================
   Reset
   ========================================================================= */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 400;
  font-size: 19px;
  background: #0a0a0a;
  background: var(--color-bg);
  color: #d4d0c8;
  color: var(--color-text);
}

img {
  display: block;
}

table {
  border-collapse: collapse;
}

/* =========================================================================
   Splash
   ========================================================================= */

.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  background: var(--color-bg);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  z-index: 100;
  -webkit-transition: opacity 0.6s ease;
  transition: opacity 0.6s ease;
}

.splash--hidden {
  opacity: 0;
  pointer-events: none;
}

.splash__logo {
  height: 80px;
  opacity: 0.8;
}

.splash__error {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #e74c3c;
  text-align: center;
  max-width: 400px;
}

/* =========================================================================
   Layout
   ========================================================================= */

.viewtv {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* =========================================================================
   Header
   ========================================================================= */

.header {
  width: 100%;
  height: 65px;
}

.header__inner {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  height: 100%;
  padding: 0 1.2rem;
}

.header__date {
  color: #d4d0c8;
  color: var(--color-text);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
}

.header__time {
  color: #c9a55a;
  color: var(--color-gold);
  font-size: 1.65rem;
  font-weight: 800;
  white-space: nowrap;
}

/* =========================================================================
   Main
   ========================================================================= */

.main {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  min-height: calc(100vh - 65px);
  padding: 2rem 1.5rem 0;
}

/* =========================================================================
   Photo
   ========================================================================= */

.photo-frame {
  width: 37vw;
  height: 24vh;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  position: relative;
}

.photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 6px solid #ffffff;
  border: 6px solid var(--color-white);
  box-shadow: 0 0 90px -20px rgba(255, 255, 255, 0.7);
  -webkit-transition: opacity 0.6s ease;
  transition: opacity 0.6s ease;
}

.photo--fade-out {
  opacity: 0;
}

.photo--hidden {
  display: none;
}

/* =========================================================================
   Name
   ========================================================================= */

.welcome {
  font-size: 1.2rem;
  color: #c9a55a;
  color: var(--color-gold);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9a55a;
  color: var(--color-gold);
  line-height: 1.4;
}

/* =========================================================================
   Info Table
   ========================================================================= */

.info-table {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0 1rem;
  text-align: center;
}

.info-table th,
.info-table td {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

.info-table th {
  color: #c9a55a;
  color: var(--color-gold);
  font-weight: 600;
}

.info-table th img {
  width: 36px;
  height: 36px;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(72%) sepia(20%) saturate(1000%) hue-rotate(5deg) brightness(90%) contrast(85%);
}

.info-table__year {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c9a55a;
  color: var(--color-gold);
}

.info-table td {
  color: #d4d0c8;
  color: var(--color-text);
  font-weight: 400;
  vertical-align: top;
}

.info-table__cell {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.info-table__cell span {
  margin-bottom: 0.15rem;
}

.info-table__highlight {
  font-weight: 700;
  color: #ffffff;
  color: var(--color-white);
}

.info-table__separator td {
  border-top: 2px solid #c9a55a;
  border-top: 2px solid var(--color-gold);
  position: relative;
  padding: 0;
  height: 12px;
}

.info-table__separator td::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #c9a55a;
  border-top: 6px solid var(--color-gold);
}

/* =========================================================================
   Bottom / Dedication
   ========================================================================= */

.bottom {
  display: -webkit-flex;
  display: flex;
  width: 100%;
  margin-top: 2rem;
  padding: 0 1rem;
}

.bottom__spacer {
  width: 140px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.dedication {
  -webkit-flex: 1;
  flex: 1;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  padding: 1rem;
}

.dedication__inner {
  -webkit-transition: opacity 0.6s ease;
  transition: opacity 0.6s ease;
}

.dedication__inner--fade-out {
  opacity: 0;
}

.dedication__text {
  font-size: 1.5rem;
  color: #d4d0c8;
  color: var(--color-text);
  line-height: 1.6;
}

.dedication__open {
  font-size: 2.5rem;
  font-style: normal;
  line-height: 0.5;
  vertical-align: -0.3em;
  color: #ffffff;
  color: var(--color-white);
}

.dedication__author {
  font-size: 1rem;
  color: #d4d0c8;
  color: var(--color-text);
  margin-top: 0.5rem;
  font-style: italic;
  display: block;
}

/* =========================================================================
   Actions Sidebar
   ========================================================================= */

.actions {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  position: absolute;
  left: 1.5rem;
  bottom: 1rem;
  z-index: 12;
}

.actions__item {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.actions__icon {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.actions__icon--qr {
  filter: none;
  object-fit: contain;
  width: 90px;
  height: 90px;
  margin-bottom: 0.5rem;
}

.actions__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  color: var(--color-white);
  text-align: left;
  max-width: 150px;
  text-shadow:
    1px -1px #000000, -1px 1px #000000,
    1px 1px #000000, -1px -1px #000000,
    1px 0px #000000, -1px 0px #000000,
    0px 1px #000000, 0px -1px #000000;
}

.actions__link {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  color: var(--color-white);
  white-space: nowrap;
  text-shadow:
    1px -1px #000000, -1px 1px #000000,
    1px 1px #000000, -1px -1px #000000,
    1px 0px #000000, -1px 0px #000000,
    0px 1px #000000, 0px -1px #000000;
}

.actions__chevron {
  font-size: 0.8rem;
  margin-right: 0.3rem;
}

.actions__scan-text {
  max-width: none;
}

/* =========================================================================
   Overlay
   ========================================================================= */

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  border-radius: 100% 100% 0 0;
  background: rgba(201, 165, 90, 0.9);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  z-index: 10;
  overflow: visible;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  opacity: 0;
  -webkit-transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.overlay--visible {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.overlay--hiding {
  -webkit-transition: transform 0.5s ease-in, opacity 0.5s ease-in;
  transition: transform 0.5s ease-in, opacity 0.5s ease-in;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  opacity: 0;
}

.overlay__text-phase,
.overlay__phone-phase {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.overlay__message {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  color: var(--color-white);
  text-align: center;
  line-height: 1.5;
  max-width: 400px;
  margin-bottom: 0.5rem;
}

.overlay__submessage {
  font-size: 1.4rem;
  font-weight: 400;
  color: #ffffff;
  color: var(--color-white);
  text-align: center;
  line-height: 1.4;
  max-width: 350px;
  margin-bottom: 1rem;
}

.overlay__heart {
  font-size: 2rem;
  color: #ffffff;
  color: var(--color-white);
}

.overlay__phone-content {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-top: -5rem;
}

.overlay__triangle {
  width: 100px;
  height: 100px;
  filter: brightness(0) invert(1);
  margin-left: -80px;
}

.overlay__gif {
  width: 180px;
  height: auto;
  margin-top: -5rem;
  margin-left: 0.5rem;
}

.overlay__phone-text {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  color: var(--color-white);
  text-align: center;
  line-height: 1.4;
  max-width: 550px;
  margin-bottom: 5rem;
}

/* =========================================================================
   Logo
   ========================================================================= */

.logo {
  position: absolute;
  bottom: 3rem;
  right: 1.5rem;
  height: 50px;
  opacity: 0.7;
  z-index: 11;
}
