@font-face {
  font-family: pirate; /* set name */
  src: url(fonts/Lodeh_Regular.ttf); /* url of the font */
}
@font-face {
  font-family: DOROST; /* set name */
  src: url(fonts/Rubik_Mono_One/RubikMonoOne-Regular.ttf); /* url of the font */
}
@font-face {
  font-family: H_NADPISY; /* set name */
  src: url(fonts/Oxanium/static/Oxanium-Medium.ttf); /* url of the font */
}
@font-face {
  font-family: pirate; /* set name */
  src: url(fonts/Lodeh_Regular.ttf); /* url of the font */
}
@font-face {
  font-family: pirate; /* set name */
  src: url(fonts/hilda_sonnenschein/Hilds___.ttf); /* url of the font */
}

h1, h2, h3, h4, h5, h6, p {
  font-family: H_NADPISY;
}
body {
  background-color: #f3d7a7;
}
.content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
.active {
  display: block;
  opacity: 1;
  visibility: visible;
}
button {
  margin: 25px;
  padding: 30px 50px;
  cursor: pointer;
  border: none;
  background-color: #43bc12;
  color: white;
  border-radius: 13px;
  transition: background-color 0.3s;
}

.primestak_nadpis,
.dorost_nadpis {
  background-size: cover;       /* scales image to fill width */
  background-position: center;  /* cuts evenly from top/bottom */
  background-repeat: no-repeat;
  padding: 60px 20px;           /* height depends on content */
  color: white;
  text-align: center;
  width: 100vw;
  display: block;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
  margin-top: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;

  /* responsive size to prevent overflow when zoomed */
  font-size: clamp(2rem, 8vw + 1rem, 12rem);
  line-height: 1.05;

  /* allow wrapping and breaks so very large text doesn't overflow */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* specifické vlastnosti pro každý nadpis */
.primestak_nadpis {
  background-image: url("images/pirate_ship_small.png");
  font-family: pirate;
}

.dorost_nadpis {
  font-family: DOROST;
  background-image: url("images/MCA00166.JPG");
  color: #2f61b8;

  /* slightly smaller cap for dorost to avoid overflow */
  font-size: clamp(1.8rem, 6.5vw + 0.5rem, 8rem);
}
.toolbar{
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
  background-color: #007bff;
  border-radius: 10px;
}
.toolbar .buttons{
  display: flex;
  gap: 0px;
  height: fit-content;
  margin: 0;  
  padding: 0;
}
.buttons button {
  padding-left: 3vw;
  padding-right: 3vw;
  padding-top: 2px;
  padding-bottom: 2px;

  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 1vw;
  margin-right: 0px;
}
.toolbar .asd {
  flex-grow: 1;
}
.toolbar span {
  display: inline-block;
  margin-right: 10px;
  margin-top: 5px;
}

iframe {
    width: 90vw;
    margin: auto;
    
  }
@media (max-width: 800px) {
  .nadpis {
    font-size: 50%;
    
  }
  .primestak_nadpis {
    font-size: 10vw;
  }
  .dorost_nadpis {
    font-size: 100px;
  }
  button {
    padding: 20px 30px;
    margin: 15px;
    font-size: 14px;
  }
  
}