@font-face {
  font-family: 'TIMSans-Medium';
  src: url('assets/packages/tim_ds/assets/fonts/TIMSans-Medium.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'TIMSans-Regular';
  src: url('assets/packages/tim_ds/assets/fonts/TIMSans-Regular.ttf') format('truetype');
  font-weight: 400;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  height: 100vh;
}

#logo-tim-container {
  background-color: white;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#loading-messages {
  width: 232px;
  font-weight: 500;
  font-size: 20px;
  line-height: 29px;
  text-align: center;
  font-family: 'TIMSans-Medium', sans-serif;
  color: #000000;
  position: relative;
}

#loading-messages p {
  position: absolute;
  margin: 0px;
  transition: opacity 200ms ease-in-out;
  opacity: 0;
}

#loading-messages p:first-child {
  opacity: 1;
}

#logo-tim {
  height: 6rem;
}

#splash {
  height: 24vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-text {
  font-size: 1rem;
  font-weight: 350;
  font-family: sans-serif;
  color: #ffffffce;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#error-text {
  font-size: 1rem;
  font-weight: 350;
  font-family: sans-serif;
  color: #ffffffce;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#loading-text::after {
  content: '...';
  display: inline-block;
  animation: ellipsis 2s infinite steps(4);
}

/* Error container styles */
#error-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: white;
  z-index: 9999;
  display: none;
}

#error-container.visible {
  display: flex;
}

#error-container > * {
  margin: 0px 36px;
}

#error-image {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  opacity: 0.412;
}

#error-title {
  font-family: 'TIMSans-Medium', sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

#error-message {
  font-family: 'TIMSans-Regular', sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
  color: #696969;
  line-height: 24px;
}

#error-button {
  background-color: #0026D9;
  color: white;
  font-family: 'TIMSans-Regular', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  #splash {
    height: 16vh;
  }
}

#scrollHolder.expand {
  padding: 100vh 0px 100vh 0px;
}

/* Google Tag Manager noscript fallback */
.gtm-noscript {
  display: none;
  visibility: hidden;
}
