:root {
  --light-gradient: linear-gradient(50deg, #ffffff, #a8cbfc);
  --dark-gradient: linear-gradient(50deg, #16191d, #5b21b6);
  --link-bg: rgba(255, 255, 255, 0.95);
  --link-dark-bg: rgba(45, 55, 72, 0.95);
  --text-color: #333;
  --text-dark-color: #e2e8f0;
}


@media (prefers-color-scheme: dark) {
  :root {
    --header-gradient: var(--dark-gradient);
    --link-bg: var(--link-dark-bg);
    --text-color: var(--text-dark-color);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --header-gradient: var(--light-gradient);
  }
}


body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('wmremove-transformed1.jpeg') center/cover no-repeat fixed;
  min-height: 100vh;
}

header {
  background: var(--header-gradient);
  padding: 3rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 5;
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.link-item {
  background: var(--link-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 5px solid #ccc;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 400px;
  width: auto;
  position: relative;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
}

.link-item:hover {
  max-width: 800px;
  width: auto;
  z-index: 100;
  transform: scale(1.02);
}

.link-expanded-content {
  display: none;
  margin-top: 1rem;
  padding-left: 1rem;
}

.link-item:hover .link-expanded-content {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.link-main-text {
    font-weight: bold;
    font-size: 1.1em;
}

.expanded-text {
  flex: 2;
  font-size: 0.9em;
  line-height: 1.4;
}

.expanded-image {
  flex: 1;
  max-width: 200px;
  border-radius: 4px;
}

.expanded-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Tablet view */
@media (max-width: 1024px) {
  .link-item {
    max-width: 300px;
  }
  
  .link-item:hover {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    transform: none;
  }
}

/* Mobile view */
@media (max-width: 768px) {
  .links-container {
    align-items: stretch;
  }
  
  .link-item {
    max-width: 100%;
    width: 100%;
  }
  
  .link-item:hover {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 200px;
    transform: none;
  }
  
  .link-expanded-content {
    flex-direction: column;
  }
  
  .expanded-image {
    max-width: 100%;
    margin-top: 1rem;
  }
}
