@font-face {
  font-family: 'Choco Cooky';
  src: url('./fonts/choky.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-color-dark: #00000094;
  --text-color-dark: #D6D9DC;
  --panel-bg: rgba(0, 0, 0, 0.551);
  --link-color: #c98ece;
  --link-hover-color: #9332a079;
  --transition-speed: 0.7s;
}

body {
  margin: 0;

  font-family: 'Choco Cooky', sans-serif;
  background: url('./bg.jpg');
  background-size: cover;
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  overflow-x: hidden;
}

header {
  margin-top: 1%;
  width: 50%;
  padding: 20px;
  background-color: var(--panel-bg);
  text-align: center;
  box-shadow: 5px 13px 10px rgba(107, 13, 95, 0.366);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(10px);
  border-radius: 30px; /* More rounded corners for the Dynamic Island effect */
  overflow: hidden;
  position: relative; /* Position relative for absolute children */
}

header h1 {
  color: var(--link-color);
  margin: 0;
  font-size: 24px;
  text-align: center; /* Center the text */
  flex: 1;
}


.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  padding: 10px;
}

.link {
  text-decoration: none;
  color: var(--link-color);
  font-size: 18px;
  background: rgba(13, 13, 13, 0.421);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(110, 71, 110, 0.719);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background var(--transition-speed);
  width: 230px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  z-index: 0;
}

.link:hover::before {
  border-color: rgba(128, 0, 128, 0.8); /* Purple color */
  animation: pulse 1s infinite;
}

.link:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background: var(--link-hover-color);
  color: white;
}

.link img {
  width: 40px;
  height: 40px;
  border-radius: 0;
  transition: border-radius 0.3s ease, transform 0.3s ease;
  z-index: 1; /* Ensure the image is above the pseudo-element */
}

.link:hover img {
  border-radius: 50%;
  transform: scale(1.1);
}

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

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .link {
    font-size: 16px;
    padding: 15px;
    width: 120px;
  }

  .link img {
    width: 30px;
    height: 30px;
  }
}


header h1 {
  color: #ffffff; /* Set the text color to white */
  text-shadow: 0 0 5px #d400ff, 0 0 10px #d400ff, 0 0 20px #ff00ff, 
               0 0 30px #ff00ff, 0 0 30px #ff00ff, 0 0 50px #ff00ff;
  animation: glow 2s infinite alternate;

  font-family: 'Choco Cooky';
  src: url('./fonts/choky.woff') format('woff');
}


@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 5px #d400ff, 0 0 10px #d400ff, 0 0 20px #ff00ff, 
                 0 0 30px #ff00ff, 0 0 20px #ff00ff, 0 0 50px #ff00ff;
  }
  50% {
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #d400ff, 
                 0 0 20px #d400ff, 0 0 50px #d400ff, 0 0 60px #d400ff;
  }
}

.empty-container {
  flex: 1;
  width: 100%;
  overflow: hidden; /* Hide overflow */
}

footer {
  background-color: #0000007f;
  color: #cbcaca86;
  text-align: center;
  padding: 0.4%;
  margin: 0 auto;
  margin-bottom: 1%;
  width: 20%;
  border-radius: 30px;
  box-sizing: border-box;
  box-shadow: 5px 13px 50px rgb(105, 13, 92);
  transition: width 0.3s ease, padding 0.3s ease; 
}


@media (max-width: 480px) {
  header{
    margin-top: 3%;
  }
  body{
    overflow: hidden;
    background-position: center center;
  }
  footer {
    width: 80%;
    margin-top: 5%;
  }
  .empty-container{
    flex: 0;
  }
  header h1{
    animation: none;
  }
}

.cards{
  margin: 1% 12%;
 }

.button1 {
  outline: 0;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all ease-in-out 0.3s;
  cursor: pointer;
}

.button1s:hover {
  transform: translateY(-3px);
}
