* {
    box-sizing: border-box;
}
body {
    text-align: center;
    background: linear-gradient(0deg,rgba(48, 112, 64, 1) 0%, rgba(62, 179, 41, 1) 100%);
    background-attachment: fixed;
}
body:has(dialog[open]) {
    filter: blur(3px);
}
button {
    margin: 3px;
    padding: 5px 10px;
    background: linear-gradient(0deg,#43752a 5%, #72b352 100%);
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 2px #000;
    border: 1px solid #4b8f29;
    border-radius: 5px;
    box-shadow: 0px 10px 14px -7px #365e22;
}
button:disabled {
    color: #808080;
}
button:active {
    position: relative;
    top: 2px;
}
button:enabled:hover {
    background: linear-gradient(0deg,#569636 5%, #72b352 100%);
}

dialog {
    max-width: 99vh;
    max-height: 99vh;
}
dialog::backdrop {
    background-color: #000;
    opacity: 60%;
}
h1 {
    font-family: arial;
}
img {
    max-width: 95vh;
    max-height: 90vh;
}
input[type=text], input[type=password], input[type=number] {
    text-align:center;
}

select {
    text-align: center;
}
textarea {
	background: linear-gradient(0deg,#d9ffcc 0%, #b3ff99 100%);
    font-size: 15px;
}
th, td {
    padding: 4px;
    font-family: arial;
    text-align: center;
}
th {
    background: #34a8eb;
    position: sticky;
    top: 0;
}
.button-left {
    position: absolute;
    display: none;
    align-items:center;
    justify-content: center;
    left: 0px;
    top: 50%;
    width: 40px;
    height: 50px;
    background: #fff;
    border: solid #000;
    border-width: 3px 3px 3px 0px;
    border-radius: 0px 8px 8px 0px;
    text-align: center;
    cursor: pointer;
    opacity: 70%;
    transition:  0.5s;
}
.button-right {
    position: absolute;
    display: none;
    align-items:center;
    justify-content: center;
    right: 0px;
    top: 50%;
    width: 40px;
    height: 50px;
    background: #fff;
    border: solid #000;
    border-width: 3px 0px 3px 3px;
    border-radius: 8px 0px 0px 8px;
    text-align: center;
    cursor: pointer;
    opacity: 70%;
    transition: 0.5s;
}
.button-right:hover, .button-left:hover {
    opacity: 100%;
    color: red;
}
.button-span {
    font-size: 30px;
    font-weight: bold;
}
.category-div {
    display: grid;
    grid-template-columns: 262px 262px 262px 262px;
    justify-content: center;
    gap: 20px 30px;
}
.category-div a{
    text-decoration: none;
}
.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
  }
.closebtn:hover {
    color: black;
  }
.closebtngalery {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #000;
  font-weight: bold;
  font-size: 22px;
  z-index: 1;
  cursor: pointer;
  text-shadow: 0 0 8px #fff;
  padding: 5px;
  border: 3px solid black;
  border-radius: 8px;
  background: #fff;
  opacity: 70%;
  transition: 0.5s;
}
.closebtngalery:hover {
  color: #f00;
  opacity: 100%;
}
.counter {
    position: absolute;
    top: -1px;
    left: 2px;
}
.dialog-content {
    position: relative;
}
.edit-img {
    cursor: pointer;
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #fff;
    border: 3px solid black;
    border-radius: 8px;
    padding: 2px;
    opacity: 70%;
    transition: 0.5s;
}
.edit-img:hover {
    opacity: 100%;
}
.flipped-h {
    -ms-transform: scale(-1,1);
    -webkit-transform: scale(-1,1);
    -moz-transform: scale(-1,1);
    -o-transform: scale(-1,1);
    transform: scale(-1,1);
}
.flipped-v {
    -ms-transform: scale(1,-1);
    -webkit-transform: scale(1,-1);
    -moz-transform: scale(1,-1);
    -o-transform: scale(1,-1);
    transform: scale(1,-1);
}
.flipped-hv {
    -ms-transform: scale(-1,-1);
    -webkit-transform: scale(-1,-1);
    -moz-transform: scale(-1,-1);
    -o-transform: scale(-1,-1);
    transform: scale(-1,-1);
}
.galery-div {
    display: grid;
    grid-template-columns: 110px 110px 110px 110px 110px 110px 110px 110px 110px 110px;
    justify-content: center;
    gap: 20px 10px;
}
.galery-div img {
    cursor: pointer;
}
.hlavny-nadpis {
    color: #e2f1da;
    text-shadow: -1px -1px 0px #16250e, 0px 0px 7px #16250e;
}
.info-icon {
    cursor: pointer;
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 35px;
    display: none;
}
.info-text {
    width: fit-content;
    max-width: 80%;
    background-color: #fff;
    border: 3px solid black;
    border-radius: 8px 8px 8px 0;
    position: absolute;
    left: 38px;
    bottom: 41px;
    text-align: center;
    padding: 5px;
    font-size: 25px;
    opacity: 90%;
    display: none;
}
.kontakty {
    background: linear-gradient(0deg,#569636 5%, #72b352 100%);
    border: 3px solid #000;
}
.main{
    font-family: arial;
    text-align: center;
}
.message{
    font-family: arial;
    padding: 8px 15px 8px 15px;
    color: white;
    border-radius: 10px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8px;
    max-width: 40%;
    display: inline-block;
    border: solid 2px #000;
    text-shadow: -1px -1px 0px #16250e, 0px 0px 7px #0d0e0d;
}
.message-error{
    background-color: #ff0000;
}
.message-info{
    background-color: #0099ff;
}
.message-success{
    background-color: #00b300;
}
.msg-container{
    position: absolute;
    top: 10px;
    left: 0px;
    width: 100%;
    text-align: center;
}
.photo-div {
    float: left;
    position: relative;
    width: 10%;
    text-align: center;
}
.popis {
    float: right;
}
.popis-div {
    width: 300px;
}
.ramcek {
    position: relative;
}
.ramcek a {
    text-decoration: none;
}
.tab-kontakty {
    border: 0px;
}
.tab-kontakty img {
    width: 70px;
}
.tab-kontakty td {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
}
.tag-div {
    position: absolute;
    bottom: 0px;
    margin: 0px auto;
    width: 100%;
    float: center;
}
.tag-big {
    font-size: 30px;
    vertical-align: top;
    float: center;
    cursor: pointer;
}
.tag-small {
    font-size: 12px;
    vertical-align: top;
    float: center;
    cursor: pointer;
}
.tag-small:hover {
    font-weight: bold;
}
.tags {
    text-align: center;
}
.thumb {
    margin-top: 5px;
    height: 220px;
    position: relative;
}
.thumb1 {
    position: absolute;
    left: 1px;
    border: 1px solid black;
    margin: 3px;
    box-shadow: 0 0 0 6px #fff, 0 0 8px 8px #aaa;
}
.thumb2 {
    position: absolute;
    left: 80px;
    top: 3px;
    height: 194px;
    border: 1px solid black;
    margin: 3px;
    box-shadow: 0 0 0 6px #fff, 0 0 8px 8px #aaa;
}
.thumb3 {
    position: absolute;
    left: 160px;
    top: 6px;
    height: 188px;
    border: 1px solid black;
    margin: 3px;
    box-shadow: 0 0 0 6px #fff, 0 0 8px 8px #aaa;
}
.thumb-show {
    border: 1px solid black;
    margin: 3px;
    box-shadow: 0 0 0 5px #fff, 0 0 8px 8px #aaa;
    transition: box-shadow 0.5s;
}
.thumb-show:hover {
    box-shadow: 0 0 0 5px #fff, 0 0 8px 8px #000;
}

@media only screen and (max-width: 1400px) {
    .category-div {
        grid-template-columns: 262px 262px 262px;
    }
    .galery-div {
        grid-template-columns: 110px 110px 110px 110px 110px 110px 110px 110px;
    }
}
@media only screen and (max-width: 1200px) {
    .category-div {
        grid-template-columns: 262px 262px;
    }
    .galery-div {
        grid-template-columns: 110px 110px 110px 110px 110px 110px 110px;
    }
}

@media only screen and (max-width: 1100px) {
    .galery-div {
        grid-template-columns: 110px 110px 110px 110px 110px;
    }
}

@media only screen and (max-width: 700px) {
    .category-div {
        grid-template-columns: 262px;
    }
    .galery-div {
        grid-template-columns: 110px 110px 110px 110px;
    }
}

@media only screen and (max-width: 500px) {
    .galery-div {
        grid-template-columns: 110px 110px 110px;
    }
}