@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --primary: rgb(50, 50, 50);
    --secondary: crimson;
    --ff: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ff);
    background-color: var(--primary);
    color: white;
    overflow-x: hidden;
}

.videoplus {
    width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo-wrapper {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary);
}


.navbar img {
  width: 2.5rem;
  vertical-align: middle;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.vpravo {
  display: flex;
  gap: 0.5rem;
}

.vpravo a {
  text-decoration: none;
  color: snow;
  font-weight: bold;
  background-color: var(--primary);
  padding: 0.5rem;
  border-radius: 5px;
  transition: background 0.3s;
}



.vpravo a:hover {
    background-color: snow;
    color: var(--primary);
  }

.projekty {
    width: 100%;
}

.projekty h1 {
    text-align: center;
}

.projekty h2 {
    text-align: center;
}

.modelování {
    padding-bottom: 1.5rem;
}

.modelování h1 {
    color: var(--primary);
}

.modelování h2 {
    color: var(--primary);
}

.modelování hr {
    border: 1px solid var(--primary);
    width: 90%;
    margin-left: auto;
}

.sekce {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.modely {}

.modely img {
    width: 14rem;
    height: 8rem;
    border-radius: 0.5rem;
    object-fit: cover;
    /* Zachová poměr stran a ořízne přebytek */
}


.videa {}

.videa video {
    width: 24rem;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
}


.grafika {
    background-color: var(--primary);
    color: var(--secondary);
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.weby {
    display: flex;
    flex-direction: column;
    color: var(--primary);
    gap: 2rem;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
}

.filmová_tvorba {
    padding-top: 0.5rem;
    background-color: var(--primary);
    color: var(--secondary);
    padding-bottom: 3rem;
}

.videa2 {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.videa2 video {
    width: 18rem;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
}

.galerie {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.galerie img {
    width: 14rem;
    border-radius: 0.5rem;
    height: 8rem;
    object-fit: cover;
    
}

.grafika hr {
    border: 1px solid red;
    width: 90%;
    margin-left: auto;
}

.obsah {
    width: 100%;
    text-align: center;
}

.obsah a {
    padding: 2px;
    color: snow;
    font-weight: bold;
    font-size: larger;
    border-radius: 0.5rem;
    background-color: var(--primary);
    padding: 0.5rem;
    transition: background 0.5s ease, transform 0.3s ease-in-out;
    text-decoration: none;
    line-height: 2.2;

}

.obsah a:hover {
    color: var(--primary);
    background-color: snow;
}

.obsah td {
    padding: 0.5rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
}

.red {
    background-color: var(--secondary);

}

.white {
    background-color: snow;

}

.nadpis {
    color: var(--primary);
    text-align: center;
}

img, video {
    max-width: 200px;
    height: auto;
  }


  /* RESPONSIVITA */
@media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .vpravo {
      flex-direction: column;
      width: 100%;
      display: none;
      margin-top: 1rem;
    }
  
    .vpravo a {
      width: 100%;
      font-size: 1rem;
    }
  
    .vpravo.show {
      display: flex;
    }
  
    h1 {
      font-size: 2rem;
    }
  
    h2 {
      font-size: 1.5rem;
    }
  
    img, video {
      max-width: 100%;
      height: auto;
    }

    .sekce,
.galerie,
.videa2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0 1rem;
}

.logo-wrapper.hide {
    display: none;
  }
  }
  