:root {
    --pink-color: #ff69b4;
    --red-color: #ff0000;
    --bg-color: #1E1E26;
    --bg-secondary-color: #2E2E36;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--bg-color) url('images/unicorns-and-dragons-logo.png') no-repeat center center / 800px;
    min-height: 100vh;
    overflow: hidden;
    height: 100vh;
}

.container {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Header styles */
header {
  width: 100%;
  margin-bottom: 40px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Apps grid */
.apps-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
    align-self: flex-start;
}

/* App card styles */
.app-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 200px;
  background: var(--bg-secondary-color);
  border-radius: 15px;
  cursor: pointer;
  color: white;
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.custom-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 0 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .app-card {
        padding: 20px;
    }
    
    .app-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .app-card {
        padding: 15px;
    }
    
    .app-icon {
        font-size: 2.5rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card {
    animation: fadeInUp 0.6s ease forwards;
}

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }
.app-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading state */
.app-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.app-card.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}
