/* Default styles */
body, h1, h2, p, ul, li {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

/* Global styles */
:root {
  --primary-color: #282828;
  --secondary-color: #D7BCF4;
  --tertiary-color: #4863fc;
  --light-color: #fff;
  --background-color: #edecec;
}

body {
  font-family: Helvetica, sans-serif;
  background-color: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* NAVIGACE */
.navbar {
  width: 100%;
  background-color: var(--secondary-color); 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.logo img {
  height: 4rem;
  display: block;
}

.links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
}

.links ul {
  list-style-type: none;
  display: flex;
  gap: 2rem; 
  padding: 0;
  margin: 0;
}

.links ul li a {
  color: var(--primary-color); 
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.links ul li a:hover {
  color: var(--tertiary-color); 
}

.contacts {
  display: flex;
  align-items: flex-start; 
  gap: 1.5rem;
}

.contacts a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.contacts a i {
  font-size: 1.1rem; 
}

.contacts a:hover {
  color: var(--tertiary-color);
}

/* Hamburger menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-menu div {
  width: 2rem;
  height: 0.25rem;
  background: var(--primary-color);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Header styles */
header {
  padding: 2rem;
}

header h1 {
  font-size: 6.5rem;
  letter-spacing: 0.5rem;
  margin-top: 6rem;
  color: var(--primary-color);
  text-align: center;
}

header h2 {
  font-size: 4.5rem;
  letter-spacing: 0.5rem;
  margin-top: 6rem;
  color: var(--primary-color);
  text-align: center;
}

header p {
  font-size: 1.2rem;
  color: var(--light-color);
  display: flex;
  justify-content: center;
  line-height: 1.5;
  margin-top: 2rem;

}

/* Main styles */
main {
  /* padding: 2rem; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

section {
  margin-bottom: 2rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--tertiary-color);
}

section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

section p {
  font-size: 1.2rem;
  color: var(--primary-color);
}

section ul {
  list-style-type: disc;
  margin-left: 1.25rem;
}

section ul li {
  margin-bottom: 0.3125rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0; /* Initially hide the element */
  animation: fadeIn 7s ease-in-out;
  /* animation-iteration-count: 3; */
  animation-fill-mode: forwards;
}

/* SECTION */
#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  /* width: 85%; */
}

.welcome {
  background-color: rgb(240, 226, 198);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* KURZY */
#content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  gap: 2rem;
  margin: 0 auto;
}

#content h3 {
  color: var(--tertiary-color);
}

#content-home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  gap: 2rem;
  margin: 0 auto;
  margin-top: 3rem;
}

.cours {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 3rem;
  margin-bottom: 2rem;
}

.cours-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 2rem;
}

.tablet-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 80%;
  gap: 2rem;
}

.cours-motto {
  margin-top: 1.3rem;
}

.flow {
  color: var(--tertiary-color);
  font-weight: 600;
}

.button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
}

.cours-btn {
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border-radius: 5px;
  border: 2px solid var(--primary-color);
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all .5s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  max-width: 15rem;
  margin-inline: auto;
  text-align: center;

  &:hover {
    background-color: var(--tertiary-color);
    color: var(--light-color);
    box-shadow: 3px 5px var(--primary-color);
  }
}

.price {
  color: var(--primary-color);
  font-weight: 600;
}

/* ABOUT */
.bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 4rem;
}

.bio-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 90%;
 padding-bottom: 3rem;
}

.about-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.me-photo {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.tablet-img {
  width: 120%;
  height: auto;
}

/* CONTACT */
#contacts {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  gap: 2rem;
}

.contact-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.contact-icon_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-icon {
  width: 40%;
  margin-top: 2rem;
  }
 
.social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}  

.social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  color: var(--primary-color);
  font-size: 2rem;
  margin-right: 1rem;
  transition: color 0.3s;
  &:hover {
    color: var(--tertiary-color);
  }
}

.news {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.news-text {
  background-color: rgb(240, 226, 198);
  border-radius: 12px;
  min-width: 600px;
  padding: 4rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  & h3 {
    font-size: 2rem;
    margin: 0;
  }
}

.workshop {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  & img {
    width: 100%;
    height: auto;
  }
}

.workshop-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.click {
  display: flex;
  justify-content: flex-end;
  width: 80%;
}

/* GALLERY */
#gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

.gallery-info {
  text-align: center;
  display: block;
  font-size: 12px;
  opacity: 0.7;
  font-style: italic;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  width: 200px;
  flex-shrink: 0;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.gallery-container img {
  max-width: 100%;
  width: 200px;
  height: 280px;
  object-fit: cover; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Specifické pravidlo pro galerii na hlavní stránce */
#animated-thumbnails-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

#animated-thumbnails-gallery .gallery-item {
  flex: 0 0 auto;
}

/* Speciální galerie pro hlavní stránku */
.home-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.home-gallery .gallery-item {
  width: 200px;
  flex-shrink: 0;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.home-gallery .gallery-item:hover {
  transform: scale(1.05);
}

.home-gallery img {
  max-width: 100%;
  width: 200px;
  height: 280px;
  object-fit: cover; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem;
  color: var(--tertiary-color);
  margin-top: 3rem;
}

.mobile-hide {
  display: none;
}

/* DrawingTips */
.drawing-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.chat-icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  cursor: pointer;
  /* background-image: src("/images/cokreslit2.png"); */
}

.chat-icon img:hover {
  transform: scale(1.1);
}

.tip-box {
  display: none;
  background-color: #fff;
  color: #212121;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 200px;
}

.tip-box p {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .logo {
    display: none !important;
  }
  .hamburger-menu {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .logo {
    display: block !important;
  }
  .hamburger-menu {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .mobile-hide {
    display: block !important;
  }

  .logo {
    visibility: hidden;
  }
 
   .container {
     padding: 1rem;
   }
 
   .navbar-container {
     flex-direction: row;
     justify-content: space-between;
     align-items: center;
     width: 100%; 
     gap: 3rem;
   }
 
   /*hamburger menu */
   .hamburger-menu {
     display: flex;
     z-index: 1001;
   }
 
     /* links for hamburger menu */
     .links {
       top: 6rem;  
       width: 100vw; 
       height: calc(100vh - 4rem);  
       background-color: var(--secondary-color);  
       padding: 2rem 1rem;
       z-index: 999;  
       display: none; 
       flex-direction: column;
       align-items: center;
       gap: 1.5rem;
       overflow-y: auto; 
     }
 
   .links ul {
     display: flex;
     flex-direction: column;
     align-items: center;
     list-style: none;
     padding: 0;
     margin: 0;
     width: 100%;
   }
 
   .links ul li {
     display: block;
     text-align: center; 
     width: 100%;
     justify-content: center;
   }
 
   .links ul li a {
     display: block;
     text-align: center;
     color: var(--primary-color);
     padding: 1rem 0;
     text-decoration: none;
     font-size: 1.5rem;
     font-weight: 500;
   }
 
   .links ul li a:hover {
     color: var(--tertiary-color);
   }
 
   .navbar.open .links {
     display: flex;
   }
 
   .contacts {
     margin-top: 1rem;
     flex-direction: row;
     justify-content: center;
     align-items: center;
     gap: 1.5rem;  
     font-size: 1.5rem;
   }
 
   .social {
     flex-direction: row;
     gap: 2rem;
   }
}


@media (max-width: 768px) {
  .logo {
   display: none;
  }

  .container {
    padding: 1rem;
  }

  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
  }

  /*hamburger menu */
  .hamburger-menu {
    display: flex;
    z-index: 1001;
  }

  .mobile-hide {
    display: none;
  }

    /* links for hamburger menu */
    .links {
      top: 6rem;  
      width: 100vw; 
      height: calc(100vh - 4rem);  
      background-color: var(--secondary-color);  
      padding: 2rem 1rem;
      z-index: 999;  
      display: none; 
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      overflow-y: auto; 
    }

  .links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .links ul li {
    display: block;
    text-align: center; 
    width: 100%;
    justify-content: center;
  }

  .links ul li a {
    display: block;
    text-align: center;
    color: var(--primary-color);
    padding: 1rem 0;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
  }

  .links ul li a:hover {
    color: var(--tertiary-color);
  }

  .navbar.open .links {
    display: flex;
  }

  .contacts {
    margin-top: 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;  
  }

  .social {
    flex-direction: row;
    gap: 2rem;
  }

  .contacts a i {
    font-size: 1.5rem;
  }

  .contact {
    align-items: center;
    gap: 1rem;
  }

  .contact-text {
    width: 80%; 
    margin-left: 1rem;
  }

  header h1 {
    font-size: 4.5rem;
  }

  header h2 {
    font-size: 3.5rem;
  }

  header p {
    font-size: 1rem;
    margin-top: 1rem;
  }

  section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  section p {
    font-size: 1rem;
  }

  .draw {
    width: 80%
  }

  #contacts {
    flex-direction: column;
    gap: 1rem;
  }

  .bio-text {
    flex-direction: column;
    padding-bottom: 3rem;
  }

  .img-container {
    width: 50%;
  }

  .cours {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .cours-text {
    align-items: center;
    gap: 1rem;
  }

  .cours-btn {
    max-width: 10rem;
  }

  #gallery {
    width: 100%;
  }

  .gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .gallery-item {
    width: 100%;
    max-width: 300px;
  }

  .gallery-container img {
    width: 100%;
    height: auto;
    max-width: 300px;
    object-fit: cover;
  }

  #animated-thumbnails-gallery {
    flex-direction: column;
    gap: 1rem;
  }

  #animated-thumbnails-gallery .gallery-item {
    width: 100%;
    max-width: 300px;
  }

  .home-gallery {
    flex-direction: column;
    gap: 1rem;
  }

  .home-gallery .gallery-item {
    width: 100%;
    max-width: 300px;
  }

  .news-text {
    min-width: 300px;
    padding: 2rem;
  }

  .instagram-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .instagram-preview p {
    font-size: 1rem;
  }

  /* .gallery-container img {
   flex-direction: column;
  } */
}

#instagram-feed {
  padding: 2rem 0;
  background-color: #fafafa;
  text-align: center;
  border-radius: 15px;
  margin: 2rem 1rem;
}

#instagram-feed h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

.instagram-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#instagram-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.instagram-preview {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.instagram-preview p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.instagram-item:hover {
  transform: scale(1.05);
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.instagram-link i {
  font-size: 1.2rem;
}

.instagram-note {
  font-size: 0.9rem;
  color: #999;
  margin-top: 1rem;
  font-style: italic;
}