/* farby */
:root {
  --primary-color: #1a6deb;
  --secondary-color: #0770c6;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

.logo{
  height: 10px;
  width: 10px;
}
.prihlaseno{
  background-color: #198754;
}
/* */
.Heroselection {
  background: linear-gradient(135deg, var(--primary-color), #4a8ed1);
  min-height: 100vh;
  display: flex;
  align-items: center;
} 

/* Animace */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

@keyframes drop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes explode {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Classy pro efekty */
.fade-in {
  animation: fadeIn 1s ease-out;
}

.bounce-effect:hover {
  animation: bounce 0.6s ease-in-out;
}

.pulse-effect:hover {
  animation: pulse 0.3s ease-in-out;
}

.shake-effect:hover {
  animation: shake 0.5s ease-in-out;
}

.drop-effect {
  animation: drop 0.8s ease-out;
}

.explode-effect {
  animation: explode 0.5s ease-out;
}

/* hovrování nad kartama */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.course-card {
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
}

.testimonial-card {
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
}

/* Obrazky more */
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Kontakt */
.contact-info p {
  margin-bottom: 0.5rem;
}

/* socky */
.social-links a {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--warning-color) !important;
}

/* java projecty */
.mini-projects {
  z-index: 1050;
}

#pexeso .card {
  width: 300px;
}

.pexeso-card {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border: 2px solid #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  color: white;
}

.pexeso-card:hover {
  background: #0056b3;
}

.pexeso-card.flipped {
  background: white;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.pexeso-card.matched {
  background: var(--success-color);
  color: white;
}

/* Responsivni design*/
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  #pexeso .card {
    width: 90vw;
    max-width: 300px;
  }
}

/* smooth scroll vis co */
html {
  scroll-behavior: smooth;
}

/* animace nacitani */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
