@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

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

body {
    color: #A30000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://hyndzia.xyz/zdj.jpg');
    background-size: cover;
    background-position: center;
    z-index: -3;
    filter: brightness(0.4);
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -2;
}

.upload-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(163, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem;
    border-radius: 1rem;
    width: 400px;
    max-width: 90%;
    box-sizing: border-box;
    text-align: center;
    border: 4px solid rgba(163, 0, 0, 0.4);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 4px 19px rgba(0, 0, 0, 0.5),
        0 0 11px rgba(0, 0, 0, 0.7),
        0 0 8px rgba(163, 0, 0, 0.5),
        0 0 18px rgba(163, 0, 0, 0.3),
        0 0 28px rgba(163, 0, 0, 0.15);
}
h1 {
    margin-bottom: 1.5rem;
    font-weight: 600;
	font-size: 3rem;
	font-family: 'UnifrakturCook', cursive;
text-shadow:
    -2px -2px 0 black,
     2px -2px 0 black,
    -2px  2px 0 black,
     2px  2px 0 black;
}

input[type="file"] {
    width: 100%;
    margin-bottom: 1rem;
}

button {
  width: 100%;
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.5rem;
  color: #A30000;
  background-color: rgba(15, 15, 15, 0.65);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  text-shadow:
    -2px -2px 0 black,
     2px -2px 0 black,
    -2px  2px 0 black,
     2px  2px 0 black;
}

button:hover {
  color: #ff1a1a;
  background-color: rgba(15, 15, 15, 0.65);
  
  transform: translateY(-3px) scale(1.03); 
  
  box-shadow:
    0 0 10px rgba(163, 0, 0, 0.7),
    0 0 20px rgba(163, 0, 0, 0.5),
    0 0 30px rgba(163, 0, 0, 0.3); 
}

button:active {
  transform: scale(0.97);
  box-shadow:
    0 0 5px rgba(163, 0, 0, 0.8);
}

.message {
    font-weight: bold;
    margin: 20px 0;
}

.message.error {
    color: #ff2424;
}

.message.success {
    color: #0cf702;
}

.centered-gif {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 100%;
    height: auto;
}

#progress-container {
    width: 40%;
    max-width: 400px;
    background-color: #222;
    border-radius: 6px;
    margin: 10px auto 5px auto;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    height: 20px;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #5a0000, #8B0000, #cc0000, #8B0000);
    background-size: 200% 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
    animation: shimmer 1.5s infinite linear, glow-pulse 1.5s infinite ease-in-out;
    box-shadow:
        0 0 8px rgba(163, 0, 0, 0.8),
        0 0 16px rgba(163, 0, 0, 0.6),
        0 0 28px rgba(163, 0, 0, 0.4);
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow:
            0 0 4px rgba(163, 0, 0, 0.8),
            0 0 8px rgba(163, 0, 0, 0.6),
            0 0 14px rgba(163, 0, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 7px rgba(200, 0, 0, 1),
            0 0 14px rgba(163, 0, 0, 0.9),
            0 0 22px rgba(163, 0, 0, 0.6);
    }
}

#progressLabel {
    text-align: center;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #ccc;
    display: none;
    font-family: 'VT323', monospace;
}

#rain-canvas {
          position: fixed;
          top: 0; left: 0;
          width: 100%;
          height: 100%;
          z-index: -1;
      }

.back-link {
  position: fixed;
  top: 15px;
  left: 15px;
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.5rem;
  color: #A30000;
  text-decoration: none;
  background-color: rgba(18, 18, 18, 0);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  text-shadow:
			 -2px -2px 0 black,
			  2px -2px 0 black,
			 -2px  2px 0 black,
			  2px  2px 0 black;
}

.back-link:hover {
  background-color: #A30000;
  color: #121212;
  text-shadow: none;
}