/* Reset base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global settings */
body, html {
  font-family: 'Author', sans-serif;
  color: #fafafa;
  height: 100%;
  background-color: #000;
}

/* Background image with blur and animation */
body::before {
content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('IMG_3686.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px);
  opacity: 0.3;
  animation: bg-rotate 15s linear infinite;
}

@keyframes bg-rotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.8); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Header: logo centrato */
header {
  text-align: center;
  margin-top: 40px;
}

.logo {
  height: 130px;
  width: 130px;
  padding: 5px;
  border: 4px solid #00AAFF;
  border-radius: 50%;
  transition: all 0.4s;
  animation: rotateLogo 3.5s linear;
  display: inline-block;
}

@keyframes rotateLogo {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.logo:hover {
  border-width: 8px;
  padding: 1px;
}

/* Main: centrare il contenuto */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 20px;
}

/* Card con effetto glassmorphism e fade-in */
.linky-card {
  background: rgba(0, 170, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 30px 40px;
  text-align: center;
  animation: fadeIn 1.2s ease-out forwards;
  max-width: 600px;
  margin: auto;
}

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

h1 {
  font-size: 35px;
  margin-bottom: 10px;
  color: #fafafa;
}

p {
  margin-bottom: 20px;
}

/* Countdown Timer Styles */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.time-container {
  text-align: center;
}

.countdown .time {
  font-size: 28px;
  background: #00aaff;
  padding: 10px 15px;
  border-radius: 5px;
  min-width: 50px;
}

.countdown .label {
  font-size: 12px;
  margin-top: 5px;
}

/* Bottone Discord */
.add-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  border: 2px solid #00aaff;
  border-radius: 10px;
  background-color: transparent;
  color: #00AAFF;
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.add-btn:hover,
.add-btn:focus {
  background-color: #00aaff;
  color: #fff;
  outline: none;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Subscribe form */
.subscribe-text {
  margin-top: 20px;
  font-size: 16px;
}

.subscribe-form {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #00aaff;
  border-radius: 5px;
  outline: none;
  width: 250px;
}

.subscribe-form button {
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid #00aaff;
  border-radius: 5px;
  background-color: transparent;
  color: #00AAFF;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.subscribe-form button:hover,
.subscribe-form button:focus {
  background-color: #00aaff;
  color: #fff;
  outline: none;
}
