:root {
  --primary-color: #3498db;
  --background-color: #2c3e50;
  --text-color: #ecf0f1;
  --button-hover-color: #2980b9;
  --spinner-color: #e74c3c;
}

* {
  box-sizing: border-box;
}


body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}


/* YOUR IMAGE - HOSTED BY imgbb.com _ FAST AND EASY */

.background {
  background: url(https://i.ibb.co/B6XCw9F/splashscreen.png) 
  no-repeat center center/cover;
  position: absolute;
  top: -30px;
  left: -30px;
  width: calc(100vw + 60px);
  height: calc(100vh + 60px);
  z-index: -1;
  fill: blue(0);

}




.spinner-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-text {
  position: absolute;
  font-size: 2rem;
  z-index: 2;
  color: var(--text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: -webkit-linear-gradient(var(--primary-color), var(--spinner-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid var(--spinner-color);
  border-radius: 50%;
  animation: spin 2s linear infinite, rgb-border 5s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rgb-border {
  0% { border-top-color: #ff0000; }
  25% { border-top-color: #00ff00; }
  50% { border-top-color: #0000ff; }
  75% { border-top-color: #ff00ff; }
  100% { border-top-color: #ff0000; }
}



@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.loading-spinner {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid var(--spinner-color);
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}


form {
  z-index: 2;
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
}

#button {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid;
  border-radius: 15px;
  padding: 10px 20px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-image-slice: 1;
  border-image-source: linear-gradient(270deg, #ff0000, #00ff00, #0000ff, #ff0000);
  animation: borderAnimation 5s linear infinite;
}

@keyframes borderAnimation {
  0% { border-image-source: linear-gradient(270deg, #ff0000, #00ff00, #0000ff, #ff0000); }
  25% { border-image-source: linear-gradient(270deg, #00ff00, #0000ff, #ff0000, #00ff00); }
  50% { border-image-source: linear-gradient(270deg, #0000ff, #ff0000, #00ff00, #0000ff); }
  75% { border-image-source: linear-gradient(270deg, #ff0000, #00ff00, #0000ff, #ff0000); }
  100% { border-image-source: linear-gradient(270deg, #00ff00, #0000ff, #ff0000, #00ff00); }
}

#button:disabled {
  border-color: grey;
  color: grey;
  cursor: not-allowed;
  transform: scale(0.95);
}

#button:hover:enabled {
  background-color: var(--button-hover-color);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .loading-text {
    font-size: 1.5rem;
  }
  
  .loading-spinner {
    width: 80px;
    height: 80px;
    border-width: 12px;
  }

  #button {
    font-size: 1.2rem;
    padding: 8px 16px;
  }
}
