@media screen and (max-width: 900px)  {

body{
    background-size: cover!important;
}

.pcoff{
  display: block;
}
.mobiloff{
    display: none!important;
}


    #spravicka {
        height: 400px;
        width: 100%;
        font-size: 17px;
    }

    .spravabuble {
        padding: 15px;
        background-color: gray;
        border-radius: 30px;
        width: 50%;
        white-space: pre-line;
        font-size: 0.8rem;
    }

    .stredflexos {
    width: 100%;
    min-height: 100vh;
    display: flex;

}
.stredflexosobecny2 {
    flex: 0;

}.stredflexosobecny3{
    width: auto;
}
.mobilregistracny{
    width: 100%;
    height: auto;
  background: #0A2757;
background: linear-gradient(180deg,rgba(10, 39, 87, 0) 0%, rgba(10, 39, 87, 1) 34%);
    position: fixed;
    bottom: 0px;
    padding: 5px;
    z-index: 10000;
}



.stredobsahu {
    width: 100%;
    border-right: 0px solid gray;
    border-left: 0px solid gray;
    flex: 100;
    padding: 20px!important;
    height: auto;
    overflow-x: visible;
    overflow-y: visible;
    font-size: 0.95rem;
    padding-bottom: 30px;
}
.stredobsahumobilny{
    padding-bottom: 150px;
}

    .komunikaciasflex{
      font-size: 0.6rem;
    }
    .hlavickachatu span {
    font-size: 0.5rem;
    font-weight: 400;
}
.rozdelenieregisterform {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
}

    .mobilnepodmenu{
      padding: 4px 4%;
      display: flex;
      background-color: #2D66FF;
      justify-content: space-between;

    }
    .mobilnepodmenu .lineuper {
    padding: 4px;
    color: white;
    font-weight: 800;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 8px;

    opacity: 1; /* default = neaktívne */
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobilnepodmenu .lineuper.active {
    opacity: 1;               /* aktívne */
    transform: scale(1.05);   /* jemné zväčšenie */
}
.mobilnepodmenu .lineuper.noneactive {
    opacity: 0.5;               /* jemné zväčšenie */
}

.mobilnepodmenu .lineuper .linka {
    padding: 3px;
    width: 20px;
    margin-bottom: 3px;
    background-color: white;
    border-radius: 5px;
}

/* šípka */
.mobilnepodmenu .lineuper .arrow {
    transition: transform 0.3s ease;
}

/* otočená šípka keď je aktívny */
.mobilnepodmenu .lineuper.active .arrow {
    transform: rotate(180deg);
}

    .vlajocky{
        margin-left: 0px;
    }

.formchatovy {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    text-align: right;
    gap: 10px;
    flex-direction: column;
}

.lavemenu {
    box-sizing: border-box;
    width: 100%;
    flex: 20;
    padding: 25px;
    position: absolute;
    display: none;
    height: 100vh;
    background-color: rgba(10, 39, 84, 0.6); /* musí byť priehľadné! */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* kvôli Safari */
    z-index: 10000;
}
.chatspravyscroll{
  height: 30vh;
}
#odoslatBtn{
  font-size: 1.2rem;
}

.pravemenu {
    box-sizing: border-box;
    width: 100%;
    flex: 20;
    padding: 25px;
    height: 100vh;
    overflow-y: scroll;
    scrollbar-width: none;
    position: absolute;
    right: 0;
    display: none;
    background-color: rgba(10, 39, 84, 0.6); /* musí byť priehľadné! */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* kvôli Safari */
    z-index: 11000;
}
.nastenkaflexos{
  display: none;
}
.boxiknastenkas{
  display: none;
}
.miniprofilek{
display: flex
;
    gap: 10px;
    align-items: center;
    color: white;
    justify-content: flex-end;
    border: 2px solid gray;
    border-radius: 100px;
    padding: 7px;
}
.miniprofilek .body {
    font-size: 0.8rem;
    display: none;
}
.miniprofilek .profilovka{
    width: 36px;
    height: 36px;
}
.miniprofilek .profilovka img {
    width: 36px;
    height: 36px;
    object-fit: cover;
}
.loading-overlay{
  width: 90%;
}
.loading-message{
    margin-top: 50%;
}
.mobilnalistachatov{
    display: flex;
    width: 100%;
    overflow-y: scroll;
    gap: 8px;
}
.mobilnalistachatov a{
    padding: 10px 15px;
    border-radius: 100px;
    border: 2px solid gray;
    text-decoration: none;
}
.velkedlazby {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 10px;
}
.dlazbahome {
    padding: 10px 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    text-align: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: 0.3s 
ease;
display: flex;
align-items: center;
        flex-direction: row;
        justify-content: flex-start;

}

.dlazbahome img {
    width: 35px;
}
.gridprekoncept {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}
.modalcasustred {
    width: 60%!important;
    padding: 20px;
    background-color: white;
    border-radius: 20px;
}
.modal {
    position: static!important; 
    top: 0px;
    left: 0;
    width: 100%!important;
    height: auto!important;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s 
ease;
    z-index: 50000;
}

.flexer {
    width: 100%!important;
    height: auto!important;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-direction: column;
}
.plaketka{
    font-size: 0.5rem;
}
.lavyflexar{
    width: 100%!important;
}
.photo-container{
    width: 100%;
    margin-bottom: 5px;
}
.photo-containercss {
    width: 100%;
    height: 450px;
    margin-left: 0px;
    border-right: 0px solid gray;
    position: relative;
    margin-bottom: 5px;
}
#target-editor-canvas{
    height: 450px!important;
}
.canvascontainer{
    width: 100%!important;
    height: 450px;
    position: absolute!important;
    opacity: 0.7;
}
#photo-canvas{
    width: 100%;
    height: 100%!important;
    object-fit: cover!important;
    position: relative!important;
}
#zoom-controls{
    bottom: 30px;
}
.obrazokpodkladovy {
    width: 30%!important;
    height: 10vh!important;
    object-fit: cover;
    overflow: hidden;
}
.obrazky{
    height: 10vh!important;
}

.rychlatabulka {
    width: 80%;
}
.modal-content{
    flex-direction: column;
    height: auto!important;
}
.prepinacmobil{
    padding: 10px;
    display: flex;
    gap: 5px;
}
.prepinacmobil span{
    padding: 10px;
    color: white;
    background-color: gray;
    display: block;
    width: 50%;
    text-align: center;
    font-weight: 800;
}
.prepinacmobil span.active{
 background-color: #022755;
 transform: scale(1.06);

}
.filtermobil{
    display: flex;
    flex-direction: column;
}
.tdkaliber{
    width: 95%!important;
}
.menu-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.dropdown-menu {
  display: none;
  position: static;
  top: -100px;
  left: 0;
  width: 100%;
}


}

@media screen and (min-width: 900px) and (max-width: 1366px) {
    .modal {
        margin-top: 0;
        height: 100%;
        width: 100%;
    }


    .lavyflexar {
        flex: 1;
        padding: 5px;
    }

    .modal-content h3 {
        font-size: 16px;
    }
    

}


@media screen and (min-width: 1500px) and (max-width: 1805px) and (max-height: 900px) and (orientation: landscape) {
    .modal {
        margin-top: 0;
        height: 100%;
        width: 100%;
    }



    .lavyflexar {
        flex: 1;
        padding: 5px;
    }

    .modal-content h3 {
        font-size: 16px;
    }





    .spravabuble {
        padding: 15px;
        background-color: gray;
        border-radius: 30px;
        width: 50%;
        white-space: pre-line;
    }
}