@import url(https://fonts.googleapis.com/css?family=Righteous);

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.welcome-container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-message {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 40px;
  border-radius: 50px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 40px;
  height: 40px;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.success-message p {
  margin: 0;
  color: #333;
  font-size: 1.2em;
  font-weight: 600;
}

h1 {
  display: block;
  color: white;
  font-family: 'Righteous', serif;
  font-size: 12em;
  text-shadow: .03em .03em 0 hsla(230,40%,50%,1);
  margin: 0 0 40px 0;
  animation: fadeInDown 1s ease-out;
  position: relative;
  z-index: 1;
}

h1:after {
  content: attr(data-shadow);
  position: absolute;
  top: .06em;
  left: .06em;
  z-index: -1;
  text-shadow: none;
  background-image:
    linear-gradient(
      45deg,
      transparent 45%,
      hsla(48,20%,90%,1) 45%,
      hsla(48,20%,90%,1) 55%,
      transparent 0
    );
  background-size: .05em .05em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shad-anim 15s linear infinite;
  pointer-events: none;
}

@keyframes shad-anim {
  0% {background-position: 0 0}
  100% {background-position: 100% -100%}
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-selector-welcome {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.lang-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-flag:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.lang-flag.active {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.flag-icon {
  font-size: 1.5em;
  line-height: 1;
}

.lang-text {
  font-size: 0.9em;
}

.start-btn {
  padding: 20px 50px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.start-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.start-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.start-btn svg {
  transition: transform 0.3s ease;
}

.start-btn:hover svg {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 6em;
    margin-bottom: 30px;
  }
  
  .language-selector-welcome {
    flex-direction: column;
    gap: 15px;
  }
  
  .lang-flag {
    width: 200px;
    justify-content: center;
  }
  
  .start-btn {
    padding: 18px 40px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 4em;
  }
  
  .lang-text {
    display: none;
  }
  
  .lang-flag {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

