body {
     background-image: url("/img/pozadimale.jpg");
     margin: 0;
     padding: 0;
}
 .container-main {
     padding-left: 2cm;
     padding-right: 2cm;
}
 @media (max-width: 768px) {
     .container-main {
         padding-left: 1cm;
         padding-right: 1cm;
    }
}
 img {
     width: 100%;
     height: auto;
     display: block;
}
 .middle-section {
     position: relative;
     width: 100%;
     height: auto;
}
 .middle-bg {
     width: 100%;
     background-image: url("/img/stredform.jpg");
     background-repeat: no-repeat;
     background-size: 100% 100%;
     background-position: top center;
}
 .middle-form-container {
     position: relative;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     z-index: 2;
     font-family: Arial;
     font-size: 3pt;
     overflow: hidden;
}
 .middle-scroll {
     position: absolute;
     display: block;
     position: relative;
     margin: 0 auto;
     top: 0;
     width: 85%;
     height: 100%;
     overflow: auto;
     scrollbar-base-color: #cfe7c7;
}
 .middle-inner {
     display: block;
     position: relative;
     margin: 0 auto;
     top: 0;
     width: 80%;
     border: dotted gray 1px;
     background-color: #ffffff;
     font-family: Arial;
     font-size: 11pt;
     color: #000000;
     text-align: left;
     padding: 1rem;
     box-sizing: border-box;
     border-radius: 2rem;
}
 .middle-text {
     text-align: center;
     background-color: #cdd4d6;
     border: dotted gray 1px;
     padding: 10px;
     margin-bottom: 10px;
}
 .middle-content {
     background-color: #cdd4d6;
     border: dotted gray 1px;
     padding: 15px;
     text-align: -webkit-center;
}
 .stredtitulka {
     position: relative;
     display: inline-block;
     width: 100%;
     height: auto;
}
 .stred {
     position: relative;
     width: 100%;
     height: 100%;
     background-image: url("/img/stred.jpg");
     background-repeat: no-repeat;
     background-position: center top;
     background-size: contain;
     display: flex;
     justify-content: center;
     align-items: flex-start;
}
 .overlay-grid {
     position: absolute;
     inset: 0;
     display: grid;
     grid-template-rows: repeat(2, 1fr);
     grid-template-columns: repeat(4, 1fr);
     justify-items: center;
     align-items: center;
     gap: 5%;
     padding: 5%;
     box-sizing: border-box;
}
 .scroll-area {
     width: 100%;
     display: flex;
     background-repeat: repeat-y;
     justify-content: center;
     background-image: url("/img/posun3.jpg");
     background-position: center top;
     background-size: contain;
     margin-top: 8vw;
     position: relative;
     min-height: 30vw;
}
 .graves-container {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 5vw;
     width: 100%;
     align-items: start;
}
 .grave-item {
     display: flex;
     justify-content: center;
     align-items: center;
}
 .grave {
     position: relative;
     width: 50%;
     background-size: cover;
     background-repeat: no-repeat;
     background-position: center;
     border-radius: 6px;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: start;
     margin: 0 auto;
}
 .list {
     padding: 5vw;
}
 .grave-text {
     position: absolute;
     color: white;
     font-weight: 700;
     text-align: center;
     font-size: 0.75vw !important;
     text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
 .mt8 {
     margin-top:8vw;
}
 .pet-photo {
     width: 120px;
     height: 150px;
     object-fit: cover;
     border-radius: 6px;
     box-shadow: 0 0 6px rgba(0,0,0,0.6);
     margin-bottom: 8px;
}
 .pet-thumb {
     width: 5vw;
     height: 5vw;
     object-fit: cover;
     margin-bottom: 10px;
     border: 2px solid white;
}
 .grave-dates {
     color: white;
     font-size: 0.9rem;
     font-weight: bold;
     text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
 .pagination-nadpis {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     font-style: italic;
     position: absolute;
     left: 50%;
     transform: translateX(-50%);
     z-index: 2;
     font-size: 1.5vw;
     margin-top: 0.25vw;
}
 .category-name {
     color: #666;
     font-style: italic;
     font-weight: bold;
}
 .pagination-numbers {
     display: flex;
     gap: 1vw;
     justify-content: center;
     align-items: center;
}
 .page-number {
     color: #ff6600;
     text-decoration: none;
     font-weight: normal;
     font-style: italic;
}
 .page-number:hover {
     color: #ff9900;
     text-decoration: underline;
}
 .page-number.active {
     font-weight: bold;
     text-decoration: underline;
     color: #000;
}
 .menu-container {
     position: relative;
     display: inline-block;
}
 .menu {
     position: absolute;
     color: #ff9900;
     font-weight: bold;
     font-style: italic;
     text-decoration: none;
     text-shadow: 2px 2px 6px #000;
     transition: 0.3s;
     text-align: center;
     font-size: 1vw;
}
 .img-menu {
     height: 1vw;
     width: 1vw;
}
 .menu:hover {
     color: #ffd27f;
     transform: scale(1.1);
}
 .menu span {
     color:white;
     font-size: 1vw;
}
 .auth-container {
     width: 100%;
     height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 0;
}
 .auth-box {
     background: #fff;
     border-radius: 16px;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
     padding: 35px 30px;
     text-align: center;
     width: 50vw;
}
 .auth-box h3 {
     margin-bottom: 25px;
     font-weight: 600;
     color: rgb(216, 140, 0);
}
 .form-control {
     border-radius: 10px;
     padding: 12px;
     font-size: 15px;
}
 .grave1 {
     left: 19.5%;
     top: 31%;
     width: 5%;
}
 .grave2 {
     left: 27.5%;
     top: 40%;
     width: 5%;
}
 .grave3 {
     left: 35%;
     top: 43%;
     width: 5%;
}
 .grave4 {
     left: 42.75%;
     top: 47%;
     width: 5%;
}
 .grave5 {
     left: 50.5%;
     top: 47%;
     width: 5%;
}
 .grave6 {
     left: 58.25%;
     top: 43%;
     width: 5%;
}
 .grave7 {
     left: 66.5%;
     top: 39%;
     width: 5%;
     font-size:0.75vw;
}
 .grave8 {
     left: 75%;
     top: 29%;
     width: 5%;
}
 .page-link {
     color: #ff6600;
     text-decoration: none;
     font-style: italic;
     font-weight: bold;
     display: inline-block;
}
 .page-link:hover {
     text-decoration: underline;
}
 .page-link.active {
     color: #555;
     text-decoration: none;
     font-weight: bold;
     cursor: default;
}
 .form-wrapper {
     position: absolute;
     margin: 2rem;
}
.middle-scroll {
     height: auto !important;
     overflow: visible !important;
}
 .middle-inner {
     height: auto !important;
     overflow: visible !important;
     transform: none !important;
}
 .overlay-text-center {
     position: absolute;
     top: 25vw;
     left: 50%;
     transform: translate(-50%, -50%);
     text-align: center;
     font-style: italic;
     color: #222;
     font-size: 1vw;
     padding: 0.8em 1.2em;
     border-radius: 10px;
     line-height: 2;
     font-weight: bold;
}
 .overlay-text-center small {
     line-height: 4;
     font-weight: normal;
}
 a {
     color: rgb(216, 140, 0);
}
 a:hover {
     color: rgb(255, 187, 0);
}
 .grave-text:hover {
     color: rgb(255, 187, 0);
}
 .bottitulka-wrapper {
     position: relative;
     margin-top: auto;
}
.middle-form-container {
     height: auto !important;
     overflow: visible !important;
}
 .middle-scroll {
     position: relative !important;
     height: auto !important;
     overflow: visible !important;
}
 .middle-inner {
     height: auto !important;
     overflow: visible !important;
     transform: none !important;
}
 .bottitulka-wrapper {
     position: relative !important;
}
 .bottom-overlay {
     position: absolute;
     bottom: 10px;
     left: 0;
     right: 0;
     color: white;
     font-size: 1vw;
     text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 2%;
     box-sizing: border-box;
}
 .bottom-overlay a {
     color: white;
     text-decoration: none;
}
 .bottom-overlay a:hover {
     color: rgb(255, 187, 0);
}
 .page-fit {
     display: flex;
     flex-direction: column;
     margin: 2vw;
}
 .page-fit > .row {
     flex: 1 0 auto;
}
 .tp5 {
     top: 50%;
}
 .form-row {
     display: flex;
     gap: 20px;
     margin-bottom: 20px;
}
 .form-col {
     flex: 1;
     display: flex;
     flex-direction: column;
}
 @media (max-width: 600px) {
     .form-row {
         flex-direction: column;
    }
}
 .alert {
     position: relative;
     padding: 10px 15px;
     margin: 10px 0;
     border: 1px solid transparent;
     border-radius: 4px;
     font-size: 14px;
}
 .alert-error {
     color: #842029;
     background-color: #f8d7da;
     border-color: #f5c2c7;
}
 .alert-success {
     color: #0f5132;
     background-color: #d1e7dd;
     border-color: #badbcc;
}
 .alert-info {
     color: #055160;
     background-color: #cff4fc;
     border-color: #b6effb;
}
 .alert-warning {
     color: #664d03;
     background-color: #fff3cd;
     border-color: #ffecb5;
}
 .middle-content form {
     max-width: 100%;
     width: 100%;
}
 .middle-inner {
     overflow: hidden !important;
     transform-origin: top center;
}
 .middle-scroll {
     height: 100% !important;
     overflow: hidden !important;
}
 .form-row {
     display: flex;
     flex-wrap: wrap;
     gap: 15px;
}
.red {
    color: red;
}
.db-captcha {
    display: inline-block;
}
 form .form-control, form .form-select {
     width: 100%;
}
 @media screen and (max-width:480px){
     .graves-container {
         gap: 3.5vw;
    }
}
