body{
    margin: 0%;
    padding: 0%;
    overflow-x: hidden;
    max-width: 100vw;

}
html{ overflow-x: hidden; }
*{
    font-family: var(--fontFamily);
}
:root{
    --shadow:1px 1px 17px 0px #38c3ff2e;
    --border:1px solid #0000001f;
    --shadow2:1px 1px 20px #e6e6e65e;
    --border2:3px solid #6b6b6b;
    --shadow3:inset 0 1px 1px rgba(255, 255, 255, 0.5),inset 0 -1px 2px rgba(0, 0, 0, 0.25),0 1px 3px rgba(0, 0, 0, 0.4);
    --inputBorder: 1px solid #cbd5e1;
    --text-shadow3: 0px 1px 0px rgba(255, 255, 255, 0.4),
                        0px -1px 1px rgba(0, 0, 0, 0.5);
    --backgroundBlue: linear-gradient(to right, #38c3ff, #18acec);
    --backgroundRed: linear-gradient(to right,#ef4444 ,#c61d1d);
    --backgroundGreen:linear-gradient(to right,#22c55e ,#16a54b);
    --fontFamily: "Paytone One", sans-serif;
}

            /*İndex/Ana Sayfa*/
.home{
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding-top: 1%;
    padding-bottom: 1%;
    align-items: center;
    flex-direction: column;
    gap: 5%;
}
#black-screen{
    position: fixed;
    inset: 0 ;
    width: 100%;
    height: 100%;
    z-index: 1002;
    background-color: rgb(185 185 185 / 65%);
    display: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s 0.1s ease;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(1px);
}
.black-screen-anim-red{animation: blackScreenRed 1.2s ease alternate forwards;}
.black-screen-anim-green{animation: blackScreenGreen 1.2s ease alternate forwards;}
.black-screen-anim-blue{animation: blackScreenBlue 1.2s ease alternate forwards;}
#message-box,#alert-box{
    position: absolute;
    width: 50%;
    height: 80%;
    background-color: #f8fafc;
    border: var(--border);
    box-shadow: var(--shadow);
    border-radius: 15px;
    z-index: 1003;
    box-sizing: border-box;
}
#alert-box{
    width:  0%;
    height: 40%;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    border: var(--border);
    box-shadow: var(--shadow);
}
#alert-box-footer,#alert-box-header,#alert-box-square{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #000;
    box-sizing: border-box;
}
#alert-box-header{height: 15%; font-size: 2.5rem;}
#alert-box-square{height: 65%;}
#alert-box-footer{
    height: 20%;
    flex-direction: row;
    gap:5%;
}
#alert-footer-onay,#alert-footer-no,#alert-footer-yes{
    width: 20%;
    height: 90%;
    background-color: #38c3ff;
    border: var(--border2);
    border-radius: 5px;
    box-shadow: var(--shadow3);
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
#alert-footer-yes{ background-color: #66ff66; display: none;}
#close-mesage{
    width: 100%;
    height: 4%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
#close-mesage button{
    width: 3%;
    height: 100%;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border: var(--border);
    transition: all 0.3s ease;
}
#close-mesage-button:hover,.edit-page-close div:hover{
    background-color: #ef4444;
}
#close-mesage svg{
   width: 100%;
   height: 100%;
   transform: rotate(45deg);
   color: #64748b;
}
#mesage-screen{
    width: 100%;
    height: 96%;
    display: flex;
    flex-direction: column;

}
#mesage-item-scren{
    width: 100%;
    height: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#mesage-item-scren div{
    width: 40%;
    height: 70%;
    box-shadow: var(--shadow);
}
#mesage-item-scren img{
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}
#mesage-title{
    width: 100%;
    height: 7%;
    color: #64748b;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 0 2%;
}
#mesage-butons{
    width: 100%;
    height: 35%;
    display: flex;
    justify-content: center;
    align-items: end;
    flex-direction: row;
    gap: 10%;
}
#delete-message,#edit-message,#go-mesage{
    width: 20%;
    height: 35%;
    margin-bottom: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.2rem;
    border-radius: 5px;
    border: var(--border2);
    box-shadow: var(--shadow3);
    background-color: #22c55e;
}

#delete-message,#alert-footer-no{background-color: #ff3300; display: none;}
#edit-message{background-color: #38c3ff;}
#mesage-users{
   width: 100%;
   height: 3%;
   align-items: center;
   font-size: 0.8rem;
   color: #000;
   display: none;
}

#edit-page{
    width: 80%;
    height: 85vh;
    background-color: white;
    display: flex;
    display: flex;
    align-items: center;
    flex-direction: column;
    display: none;
    box-sizing: border-box;
}
.edit-name{
    width: 100%;
    height: 25%;
    background-color: rgb(224, 228, 233);
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column;
}
.edit-page-name{
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.edit-page-close{
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: end;
}
.edit-page-close div{
    width: 2%;
    height: 95%;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.edit-page-close div svg{
    width: 60%;
    height: 60%;
    transform: rotate(45deg);
    color: #64748b;
}
.edit-page-name input{
    width: 80%;
    height: 60%;
    border: var(--inputBorder);
    border-radius: 5px;
    box-shadow: var(--shadow3);
    transition: 0.5s linear;
    box-sizing: border-box;
}
.edit-data{
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.edit-data div{
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
.edit-data div:nth-child(1) select{
    min-width: 13%;
    height: 40%;  
}
.edit-data div:nth-child(1) button{
    width: 12%;
    height: 70%;
    border-radius: 15px;
    background: var(--backgroundBlue); 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: var(--border2);
    box-shadow: var(--shadow3);
}
.edit-pages-shares{
    opacity: 0.8;
    transform:  scale(1.05);
    display: flex;
    justify-content: center;
    align-items: center;
}
.edit-pages-shares svg{
    opacity: 0.8;
    width: 100%;
    height: 100%;
}
.edit-data div:nth-child(1) div p{ 
    user-select: none;
    pointer-events: none;
}
.edit-data div button{
    width: 15%;
    height: 80%;
    background: var(--backgroundGreen);
    color: #ffffff;
    margin-right: 5%;
    border-radius: 15px;
    border: var(--border2);
    box-shadow: var(--shadow3);
    transition: all 0.3s ease;
}
.edit-data div button:nth-child(2){background: var(--backgroundRed);}
.edit-data div button:nth-child(1){background: var(--backgroundBlue);}
.edit-data div button svg,.edit-square-item div button svg{
    width: 60%;
    height: 60%;
}
.edit-square,.edit-list-square{
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 2%;
    overflow-y: auto;
    box-sizing: border-box;
}
.edit-list-square::-webkit-scrollbar{
  display: none;
}

.edit-square-item,.edit-list-item-box{
    width: 100%;
    min-height: 17.5%;
    background-color: rgb(248, 250, 252);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    box-sizing: border-box;
}
.edit-list-square{display: none;}
.edit-list-item-box{
    min-height: 12%;
}
.edit-list-item-box div{
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.edit-list-item-box div input{
    width: 95%;
    height: 40%;
    border: var(--inputBorder);
    box-shadow: var(--shadow3);
    border-radius: 5px;
    transition: all 0.5s;
    box-sizing: border-box;
}
.edit-list-item-box div button{
    width: 70%;
    height: 60%;
    background-color: #ff3300;
    color: #ffffff;
    border: var(--border2);
    box-shadow: var(--shadow3);
    border-radius: 5px;
}
.edit-list-item-box div button svg{
    width: 50%;
    height: 50%;
    transform: rotate(45deg);
}
.edit-list-fixed{
    position: fixed;
    bottom: 3%;
    width: 80%;
    height: 5%;
    border-radius: 5px 5px 0px 0px;
    background-color: #66ff66;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.edit-square-item div{
    width: 47.5%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.edit-square-item div input{
    width: 90%;
    height: 35%;
    border: var(--inputBorder);
    box-shadow: var(--shadow3);
    transition: all 0.5s ease;
    box-sizing: border-box;
}
.edit-square-item div div{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20%;
}
.edit-square-item div div input,.edit-square-item div div button{
    width: 80%;
    height: 25%;
}
.edit-square-item div div button{
    background-color: #38c3ff;
    border: var(--border2);
    box-shadow: var(--shadow3);
    color: #ffffff;
}
.edit-square-item div div div{
    width: 40%;
    height: 90%;
}




#admin-panel{
    position: absolute;
    margin: auto;
    inset: 33% 0 0 0;
    width: 100%;
    height: 80%;
    background-color: #f8fafc;
    padding-bottom: 9%;
    display: none;
    box-sizing: border-box;
}
.admin-panel-name-bar{
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #64748b;
}
.admin-panel-name-bar div{
    width: 100%;
    height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.admin-panel-name-bar div div{
    width: 100%;
    height: 100%;
    color: #38c3ff;
    font-size: 1.2rem;
    transition:all 0.3s ease;
}
.list-page-admin,.wheel-page-admin{   
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    gap: 2%;
    overflow: auto;
}
.wheel-page-admin{display: none;}
.list-admin-item,.wheel-admin-item{   
    width: 100%;
    height: 20%;
    background-color: #e0e4e9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 0.1%;
    color:#64748b;
    box-sizing: border-box;
}
.list-admin-item div,.wheel-admin-item div{   
    width: 33.3%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.list-admin-item div img,.wheel-admin-item div img{   
    width: 30%;
    height: 95%;
    border-radius: 15px;
    object-fit: cover;
}
.list-admin-item div button,.wheel-admin-item div button{   
    width: 30%;
    height: 60%;
    border-radius: 5px;
    color: #ffffff;
    background-color: #22c55e;
    border: var(--border2);
    box-shadow: var(--shadow3);
}


.home-box{
    position: relative;
    width: 80%;
    height: auto;
    min-height: 90vh;
    margin-bottom: 2%;
    box-shadow: var(--shadow);
    border: var(--border);
    border-radius: 15px;
    box-sizing: border-box;

}
.home-square{ 
    position: absolute;
    padding-top: 1%;
    padding-left: 1%;
    flex-direction: row;
    align-content: start;
    gap: 10vh 5.8%;
    padding: 1%;
    overflow: visible;   
}
.home-square,.user-square{
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    transition: all 1s ease;
    display: none;
}
.home-conteiner{
    position: relative;
    width: 15%;
    height: 20vh;
    border-radius: 15px;
    top: 5%;
    left: 1%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748b;
    font-size: 20px;
    z-index: 1;
    border: var(--border);
    box-shadow: var(--shadow3);
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}
.home-footer{
    position: fixed;
    bottom: 0%;
    left: 0%;
    width: 100%;
    height: 6vh;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center  ;
    flex-direction: row;
    gap: 0.1%;
    background-color: #ffffffc7;
    z-index: 1001;
}
.home-footer1,.home-footer2,.home-footer3,.home-footer4{
    width: 33.3%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #bababa2e;
} 
.home-footer1 svg,.home-footer2 svg,.home-footer3 svg,.home-footer4 svg{
    width: 50%;
    height: 50%;
    color: #e2e8f0;    
}
.home-footer1 svg{color: #00fff1;}
.animasyon{transition: all 0.2s ease; transform: scale(1.1);}
.animasyon2{transition: all 0.2s ease; transform: scale(1.0);}
            /*İndex/Ana Sayfa*/

            /*İndex/Kullanıcı Sayfası*/        
.user-square{
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 1%;
}
.user-data{
    width: 100%;
    height: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.user-name{
    width: 100%;
    height: 80%; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 0 3%;
    text-align: center;
}
.role-text {
            background-image: linear-gradient(270deg,#64748b,#38c3ff,#e0e4e9);
            background-size: 400% 400%;
            
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            
            
            font-weight: 800;
            text-align: center;
            
            animation: moveGradient 6s ease infinite;
            
}
.admin-text {
            background-image: linear-gradient(270deg,#64748b,#38c3ff,#e0e4e9);
            background-size: 400% 400%;
            
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            
            
            font-weight: 800;
            text-align: center;
            
            animation: moveGradient 6s ease infinite;
            -webkit-text-stroke: 1px #e9b151aa;
            animation: moveGold 5s ease infinite;
            filter: drop-shadow(0px 5px 15px rgba(191, 149, 63, 0.3));
}

.user-out{
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: end;
    align-items: end;
}
.user-out button{
    width: 8%;
    height: 90%;
    background-color: #38c3ff;
    border: var(--border2);
    border-radius: 5px;
    box-shadow: var(--shadow3);
    color: white;
    margin-right: 15px;
    transition: all 0.5s ease;
}
.user-actives {
    width: 100%;
    height: 20%; 
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    justify-items: center;
    align-items: center;
}
.sekme{
    position: relative;
    width: 100%;
}
.user-list div{
    width: 70%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.user-list,.user-wheel,.user-quest{
    position: relative;
    width: 33.3%;
    height: 100%;  
    display: flex;
    align-items: center;
    font-size: 1.4rem;
}   
.user-list{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.user-list p,.user-wheel p,.user-quest p{user-select: none; color: #38c3ff; font-size: 1.7rem;} 
.user-list svg,.user-wheel svg,.user-quest svg{position:absolute; color: #38c3ff; width: 35%; height: 35%;}
#user-actives-style {
    position: absolute;  
    height: 2px; 
    bottom: 0;
    background-color: #38c3ff; 
    transition: all 0.5s ease;
    pointer-events: none;
    user-select: none;
}
#user-list-data,#user-wheel-data,#user-quest-data{
    position: relative;
    width: 100%;
    min-height: 65vh;
    display: flex;
    flex-wrap: wrap;
    padding-top: 1%;
    padding-left: 0.4%;
    flex-direction: row;
    align-content: start;
    gap: 11vh 9%;
    box-sizing: border-box;
    overflow: visible;
    transition: opacity 0.5s ease;
}
#user-list-data {
    opacity: 1;
    position: relative;
}
#user-wheel-data, #user-quest-data{
    opacity: 0;
    position: absolute;
    pointer-events: none;
}
.user-list-item,.user-wheel-item,.user-quest-item{
    position: relative;
    width: 18%;
    height: 20vh;
    border: var(--border);
    box-shadow:  var(--shadow2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #727272d9;
    font-size: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}
.user-list-item-div1,.user-list-item-div2,.user-wheel-item-div1,.user-wheel-item-div2,.home-conteiner div{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.8;
}
.user-list-item-div1,.user-wheel-item-div1{
    display: flex;
    justify-content: end;
}
.user-list-item-div2{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 7, 7, 0.799);
    border-radius: 15px;
}
.user-list-shares,.user-wheel-shares{
    position: absolute;
    width: 25%;
    height: 15%;
    z-index: 100;
    background-color: #00000063;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none; pointer-events: none;
    border-radius: 0 15px 0 0;
    color: #38c3ff;
    font-size: 1rem;
    display: none;
}
.user-wheel-shares{background-color: #0000002c;}
.user-list-item div img,.user-wheel-item div img,.home-conteiner div img{width: 100%;height: 100%; border-radius: 15px; object-fit: cover;}
.user-quest-item{
    border-radius: 15px; }
#sorusal-cevap{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 1px;
}
#sorusal-cevap div{
    width: 50%;
    height: 100%;
    display: flex;
    align-items: start;
}
.active {  
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important; 
    pointer-events: auto !important;
}

.passive {  
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important; 
    pointer-events: none !important;
}
            /*İndex/Kullanıcı Sayfası*/ 



.add-square{
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    display: none;
    box-sizing: border-box;
} 
.title-select{
    position: relative;
    width: 100%;
    height: 40vh;
    z-index:2;
}
.title-category{
    position: absolute;
    width: 7%;
    height: 90%;
    left: 3.5%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5%;
    padding-top: 10px;
}
.list-circle,.wheel-circle,.quest-circle{
    width: 75%;
    height: 25%;
    background: var(--backgroundBlue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: var(--border2);
    box-shadow: var(--shadow3);
}
.list-circle svg,.wheel-circle svg,.quest-circle svg{
   width: 60%;
   height: 40%;
   color: #e2e8f0;
   
}
.add-box{
    width: 100%;
    height: 60vh;
    
} 
.add-listbox,.add-wheelbox,.add-questbox{
    position: absolute;
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    gap: 20%;
    overflow-x: hidden;
    box-sizing: border-box;
}
.add-wheelbox,.add-questbox{display: none;}
.add-wheelbox{gap: 2%; overflow-y: auto; padding-bottom: 3%; box-sizing: border-box;}
.add-wheelbox::-webkit-scrollbar{display: none;}
.add-questbox{gap:0%; box-sizing: border-box;}
.title-name{
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.5rem;
    padding-top: 3px;
}
.add-circle{
    width: 6%;
    height: 9vh;
    border: 4px dashed #e2e8f0;;
    border-radius: 50%;
}

.add-title{
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    
}
.title-form{
    width: 100%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.5rem;
    gap: 10%;
}
#title-add-items{
    width: 60%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1%;
}
#title-add-items input{width: 70%; height: 70%; border: var(--inputBorder); box-shadow: var(--shadow3); border-radius: 5px;background-color: white;transition: 0.5s linear; box-sizing: border-box;}
#ai-list{
    width: 7%;
    height: 80%;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:  #f8fafc;
    border: solid 1px #0000000f;
    box-shadow: var(--shadow3);
    border: var(--inputBorder);
    user-select: none;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s ease;
}
#ai-waits{
    position: absolute;
    margin: auto;
    inset: 0 0 0 0 ;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    border-radius: 15px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    pointer-events: none;
    user-select: none;
    transition: all 0.5s ease;
    z-index: 100;
}
#ai-list img{width: 50%;height: 90%;}

#quest-share-square{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}
#quest-share-item{
    width: 100%;
    height: 40%;
    color:#64748b;
}

#quest-share-item div{
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1%;
    font-size: 2rem;
}
#quest-share-item div input{
    width: 80%;
    height: 25%;
    border: var(--inputBorder);
    border-radius: 2px;
    box-sizing: border-box;
}
#quest-share-item div button{
    width: 7%;
    height:30%;
    border: var(--border);
    border-radius: 5px;
    background-color: #22c55e;
}
#quest-share-item div svg{
    width: 100%;
    height: 100%;
}
.quest-share-stats{
    width: 100%;
    height: 60%;
}
.quest-share-stats-title{
    width: 100%;
    height: 5%;
    background-color: #38c3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow2);
}
.quest-share-stats-reply {
    width: 100%;
    height: 95%;
    display: flex;
    flex-direction: column;
    gap: 1%;
    overflow-y: auto;
    background-color:   rgb(248, 250, 252);
}
.quest-share-stats-reply-item {
    width: 100%;
    height: 12%;
    display: flex;
    flex-direction: row;
    background-color: #e0e4e9;
    box-sizing: border-box;
}
.quest-share-item-name,.quest-share-item-reply{
    height: 100%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.quest-share-item-name {
    width: 40%;
    justify-content:start;
    color:#64748b;
}
.quest-share-item-reply {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: safe center;  
    align-items: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-y: auto;
}



#ai-list-select,#ai-list-input,#ai-list-only{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    display: none;
}
#ai-list-select{
    height: 10%;
    flex-direction: row;
    gap: 10%;
}
#ai-list-input{
    height: 82%;
}
#ai-list-only{
    height: 8%;
    background-color: #22c55e;
    border-radius: 0px 0px 15px 15px;
}
#ai-list-select-title,#ai-list-select-speed{
    position: relative;
    width: 20%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: #38c3ff;
    transition: border 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid #38c3ff;
    
}
#ai-list-select-title::before,
#ai-list-select-speed::before{
 content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0%;
        height: 100%;
        background-color: #38c3ff;
        z-index: 1;
        transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
#ai-list-select-title.ai-select-active,
#ai-list-select-speed.ai-select-active{
  border: var(--border2);
        box-shadow: var(--shadow3);
        color: #ffffff;
}

#ai-list-select-title.ai-select-active::before,
#ai-list-select-speed.ai-select-active::before{
        width: 100%;
    }

    #ai-list-select-title p,
#ai-list-select-speed p{
    position: relative;
    z-index: 2;
    pointer-events: none;
    margin: 0;
}
#ai-list-select div p,#ai-list-only p,#ai-waits p{
    pointer-events: none;
    user-select: none;
}
#ai-list-input input{display: none;}
#ai-list-input input,#ai-list-input textarea{
    width: 80%;
    height: 80%;
    border-radius: 5px;
    background-color: #fefefe;
    border: var(--inputBorder);
    box-shadow: var(--shadow2);
    resize: none;
    outline: none;
    transition: all 0.5s ease;
    box-sizing: border-box;
}
#wheel-title-input,#quest-title-input{display: none;}
.title-item-select{
    width: 100%;
    height: 38.5%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 1.3rem;
    gap: 2%;
}
.title-selectbox,.title-selectbox-quest,.secret-option,.title-wheelbox{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center; 
    width: 10%; 
    height: 15%; 
    left: 0;
    flex-direction: row;
    gap: 10%;
}
.title-selectbox{width: 20%;}
.title-selectbox-quest{width: 20%; height: 15%; }
.title-selectbox-quest{display: none;}
.title-selectbox select{ left: 5%; width: 40%; height: 50%; text-align: center;float: left;}
.title-selectbox-quest select{width: 30%; height: 60%;}
.secret-option{
    width: 8%; 
    left: 21%;
    background-color: #38c3ff;
    border: var(--border2);
    box-shadow: var(--shadow3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.5s ease;
}
.title-select-paylas,.title-select-bosalt,.title-select-olustur{
    width: 7%;
    height: 80%;
    font-size: 1rem;
    border-radius: 15px;
    color: #ffffff;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: var(--border2);
    box-shadow: var(--shadow3);
}
.title-select-paylas:active, .title-select-bosalt:active, .title-select-olustur:active {
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.4);
    transform: translateY(1px);
}
.title-select-paylas,.user-out button{background: var(--backgroundBlue);}
.title-select-paylas svg,.title-select-bosalt svg,.title-select-olustur svg{
   width: 60%;
   height: 60%;
}
.title-select-olustur{ margin-right: 1.5%; transform: scale(1.1); background: var(--backgroundGreen);}
.title-select-bosalt{background: var(--backgroundRed); }
.add-item-conteiner{
    position: relative;
    width: 100%;
    height: 50%;
    border:1px solid rgba(0, 0, 0, 0.08);;
    background-color: #f8fafc;;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.add-item-number{
    width: 2%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.add-item-input{
    width: 90%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.add-item-input input{
    width: 98%; height: 50%; border:var(--inputBorder);
    box-shadow: var(--shadow3);
    border-radius: 5px;
    background-color: #fefefe;
    transition: 0.5s linear;
    box-sizing: border-box;}
.add-item-image-select{
    width: 10%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.add-item-image-select button{
    width: 90%;
    height: 80%;
    background: var(--backgroundBlue);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: var(--border2);
    box-shadow: var(--shadow3);
    border-radius: 5px;
    transition: all 0.5s ease;
}
.add-item-image-select button:hover{transform: scale(1.03);}
.add-item-image-select svg{
    width: 70%;
    height: 60%;
}
.add-item-image{
    position: absolute;
    bottom: -0%;
    width: 100%;
    height: 0%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    background: #e0e4e9;
    box-shadow: var(--shadow2);
    transition: all 0.4s ease;
    opacity: 0;
    border-radius: 0 0 10px 10px;
    box-sizing: border-box;
}
.add-item-image-box{
    width: 60%;
    height: 100%;
}
.add-image-control{
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.picture-control{
    width: 20%;
    height: 98%;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: #f8fafc; 
    border-radius: 15px;
    border:var(--border);
    color: #64748b;
}
.resim-onload {display: none;}
.picture-control img{width: 100%; height: 100%; object-fit: cover;}
.add-item-image-link,.add-item-image-file{
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 4%;
}
.add-item-image-link input{width: 95%; height: 80%; border-radius: 5px; border: var(--inputBorder); transition: 0.5s linear; box-sizing: border-box;}
.add-item-image-file button{background-color: #18acec; width: 95%; height: 70%; border-radius: 5px; border: var(--border2); color: white; box-shadow: var(--shadow3);}
.add-wheelbox-conteiner,.add-quest-conteiner{
    width: 100%;
    height: 15%;
    border: var(--border);
    box-shadow: var(--shadow2);
    background-color: rgba(218, 218, 218, 0.159);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    box-sizing: border-box;
}
.add-quest-conteiner{height: 20%;}
.add-wheelbox-form,.add-quest-form{
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.add-wheelbox-form input,.add-quest-form input{width: 95%; height: 60%; border-radius: 5px; border: var(--inputBorder); box-shadow: var(--shadow3); transition: 0.5s linear; box-sizing: border-box;}
.add-wheelbox-delete,.add-questbox-delete{
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.add-wheelbox-delete button ,.add-questbox-delete button{
    width: 80%; 
    height: 70%; 
    border-radius: 5px; 
    border: var(--border2); 
    color: white; 
    box-shadow: var(--shadow3);
    background-color: #ef4444;
}
.add-wheelbox-delete svg,.add-questbox-delete svg{
    width: 50%; 
    height: 50%;
    transform: rotate(45deg);
}
.add-wheelbox-item,.add-questbox-item{
    position: fixed;
    width: 80%;
    height: 5%;
    bottom: 7%;
    background-color: #22c55e;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px 5px 0px 0px;
    z-index: 5;
}
.add-wheelbox-item svg,.add-questbox-item svg{
    width: 70%;
    height: 70%;
}

.add-quest-item-title{
    width: 100%;
    height: 20%;
    box-shadow: var(--shadow2);
    background-color:  rgb(224, 228, 233);
    display: flex;
    justify-content: center;
    align-items: center;
}
.add-quest-item-title input{
    width: 70%;
    height: 40%;
    border-radius: 5px; 
    border: var(--inputBorder); 
    box-shadow: var(--shadow3);
    transition: 0.5s linear;
    box-sizing: border-box;
}
.add-questbox-selects{
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2.5%;
    display: none;
    
}
.title-select-paylas:hover,.user-out button:hover,.title-select-bosalt:hover,.title-select-olustur:hover,
.home-conteiner:hover,.user-list-item:hover,.user-wheel-item:hover,.user-quest-item:hover,.edit-data button:hover{transform: scale(1.05);}
.title-select-olustur:hover{transform: scale(1.15)}




.admin-square{
    width: 100%;
    height: auto;
    min-height: 60vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}
.admin-system{
    width: 100%;
    height: 20vh;
    background-color:#f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px 15px 0px 0px;
}
.admin-system input{
    width: 90%;
    height: 25%;
    border: var(--border);
    box-shadow: var(--shadow2);
    border-radius: 5px;
    transition: all 0.5s linear;
    box-sizing: border-box;
}
.admin-list{
    width: 100%;
    height: auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1vh;
    padding-bottom: 1vh;
    opacity: 1;
    transition: all 1s ease;

}
.admin-list-conteiner{
    width: 100%;
    height: 10%;
    background-color: #e0e4e9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 60%;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}
.admin-name{
    width: 20%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}
.admin-name p{
   color: #64748b;
   cursor: pointer;
}
.admin-options{
    width: 20%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 5%;
}
.admin-options div{
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.admin-delete,.yetki-yes,.yetki-no{
    width: 30%;
    height: 70%;
    border: var(--border2);
    box-shadow: var(--shadow3);
    border-radius: 5px;
    color: #ffffff;
    background-color: #ff3300;
    display: flex;
    justify-content: center;
    align-items: center;
}
.yetki-yes,.yetki-no{background-color: #38c3ff;width: 50%;}
.yetki-no{background-color: #ff3300;}
.admin-delete svg,.yetki-yes svg,.yetki-no svg{
    width: 50%;
    height: 50%;
}
.admin-delete svg{transform: rotate(45deg);}
                /*Kayıt Ol/Üye Ol*/

.login-square{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-box{
    position: absolute;
    width: 50%;
    height: 75%;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: var(--border);
    box-sizing: border-box;
}
#login-conteiner,#login-register{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    transition: all 0.5s linear;
    box-sizing: border-box;
}
#login-register{opacity: 0;}
.login-tittle{
   width: 100%;
   height: 10vh;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 3rem;
}
.login-item{
   width: 100%;
   height: 68vh;
   display: flex;
   align-items: center;
   justify-content: flex-start;
   flex-direction: column;
   gap: 5%;
}
.login-item input{
    width: 60%;
    height: 7%;
    border: 1px solid #00000000;
    border-radius: 5px;
    background-color: #bebebe4d;
    transition: 0.5s linear;
    box-sizing: border-box;
}
.login-item input:focus,.title-form input:focus,.add-item-input input:focus,.add-item-image-link input:focus,
.add-wheelbox-form input:focus,.add-quest-item-title input:focus,.add-quest-form input:focus,.acikuclu input:focus,
.admin-system input:focus,.edit-square-item input:focus,.edit-list-item-box input:focus,.edit-name input:focus,
#ai-list-input input:focus,#ai-list-input textarea:focus,#quest-share-item div input:focus
{
    border: 1px solid #38c3ff;
    outline: none;
}
.login-item label{
    font-size: 1.5rem;
    margin-right: 47%;
}
.login-kullaniciAdi{margin-top: 11%;}
.login-kullaniciSifre{margin-left: -7%;}
.login-item button{
    width: 60%;
    height: 8%;
    background: linear-gradient(to right ,#38c3ff,#18acec);
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    
}
.login-item p{margin-right: 27%;}
#password-character{color: red; margin-left: -7%; margin-top: -19%; font-size: 15px;}
.login-active{  
    opacity:1 !important;
    pointer-events:auto !important;
}
.login-passive{  
    opacity:0 !important;
    pointer-events:none !important;
}
                /*Kayıt Ol/Üye Ol*/

.quest-square-box{
    width: 70%;
    height: 80vh;
    border-radius: 15px;
    border: var(--border);
    display: flex;
    justify-content: start;
    flex-direction: column;
    animation: squareBox 2s ease alternate infinite;
    box-sizing: border-box;
}
.quest-square-title{
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 2rem;
    text-align: center;
    box-sizing: border-box;
    padding: 0 2%;
}
.quest-square-text{
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.2rem;
    flex-wrap: wrap;
    word-break: break-word; 
    overflow-y: auto;
    box-sizing: border-box;
    padding: 0 3%;
    text-align: center;
}
.quest-square-reply{
    width: 100%;
    height: 60%;
}
.ikiyanıtlı,.acikuclu{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 30%;
}
.ikiyanıtlı button{
    width: 20%;
    height: 30%;
    border-radius: 15px;
    border: var(--border);
    box-shadow: var(--shadow2);
    color: #ffffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: var(--border2);
    box-shadow: var(--shadow3);
}
.no{ background-color: #ef4444;}
.yes{background-color: #22c55e;}
.acikuclu{gap: 2%; display: none;}
.acikuclu input{width: 60%; height: 10%; border: var(--inputBorder); box-shadow: var(--shadow3); border-radius: 5px; transition: 0.5s linear; box-sizing: border-box;}
.acikuclu button{width: 10%; height: 10%; border: var(--border2); box-shadow: var(--shadow3); background-color: #38c3ff; color: #ffffff; font-size: 1rem;}
.secmeli{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Yine 4 sütunlu iskelet */
    gap: 5%;
    place-items: center;
    display: none;
    box-sizing: border-box;
}
.secmeli > div {
    grid-column: span 2; 
    width: 70%; height: 70%;
    border: var(--border2);
    box-shadow: var(--shadow3); 
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.2rem;
    color: #000;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    padding: 2%;
}

/* İŞİN SIRRI BURASI: Eğer içeride toplam 3 tane eleman varsa ve bu 3. elemansa... */
.secmeli > div:nth-child(3):last-child {
    grid-column: 2 / 4; /* Onu al ve tam ortadaki sütunlara oturt! */
}


        @keyframes moveGradient {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }
        @keyframes moveGold {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }

@keyframes squareBox{
    0%{box-shadow: 1px 1px 17px 0px #38c3ff2e;}
    100%{box-shadow: 1px 1px 17px 0px #38c3ffed;}
}
.secmeli div:hover,.ikiyanıtlı button:hover{
    transform: scale(1.1);
}

@keyframes blackScreenRed{
    0%{box-shadow: inset 0px 0px 10px 0px #ff0b0b00;}
    50%{box-shadow: inset 0px 0px 25px 0px #ff0b0b;}
    100%{box-shadow: inset 0px 0px 10px 0px #ff0b0b00;}
}
@keyframes blackScreenGreen{
    0%{box-shadow: inset 0px 0px 10px 0px #15ff2500;}
    50%{box-shadow: inset 0px 0px 25px 0px #15ff24;}
    100%{box-shadow: inset 0px 0px 10px 0px #15ff2500;}
}
@keyframes blackScreenBlue{
    0%{box-shadow: inset 0px 0px 10px 0px #38c3ff00;}
    50%{box-shadow: inset 0px 0px 25px 0px #38c3ff;}
    100%{box-shadow: inset 0px 0px 10px 0px #38c3ff00;}
}


#wheel-body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 2rem;
    color: #fff;
    font-family: sans-serif;
    box-sizing: border-box;
}

#wheel-titles, #wheel-buttons {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#wheel-titles{
    text-shadow: var(--text-shadow3);
    -webkit-text-stroke: 3px #333333;
    font-size: 3rem;
    color: #38c3ff;
    font-family: "Paytone One", sans-serif;
    text-align: center;
    padding: 0 3%;
}
#wheel-buttons button {
    width: 10%;
    min-width: 120px; 
    height: 80%;
    border-radius: 10px;
    border: var(--border2);
    box-shadow: var(--shadow3);
    background-color: #38c3ff;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.1s ease;
}

#wheel-buttons button:active {
    transform: scale(0.90);
}

#wheel-safe {
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheel-safe-square {
    position: relative;
    width: 60%;
    max-width: 700px;
    height: 150px; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #80808070;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow2);
}

/* Tam Ortadaki Kırmızı Çizgi */
.pointers {
    position: absolute;
    margin: auto;
    inset: 0;
    width: 4px;
    height: 100%;
    background-color: #ff3300;
    box-shadow: 0px 0px 8px #ff3300;
    z-index: 10;
}

#wheel-window {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow3);
}

#wheel-item-square {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
    display: flex;
}

/* Sabit Piksel Genişliğe Sahip Kutular */
.wheel-window-items {
    width: 140px;
    min-width: 140px;
    height: 100%;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: var(--border2);
    box-shadow: var(--shadow3);
    background-image: linear-gradient(360deg, #38c3ff,  #e0e4e9);
    font-weight: bold;
    font-size: 1.3rem;
    color: #fff;
    border-right: 2px solid #00000030;
    box-sizing: border-box;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
    flex-shrink: 0;
}

.wheel-window-items p {
    pointer-events: none; 
    user-select: none;
    margin: 0;
}

            .dots span {
    opacity: 0;
    animation: dotBlink 1.4s infinite;
}

.dots span:nth-child(1) {
    animation-delay: 0s;
}

.dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotBlink {
    0% { opacity: 0; }
    20% { opacity: 1; }
    50% { opacity: 1; }
    70% { opacity: 0; }
    100% { opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   Kırılım noktaları: 1024px (tablet), 768px (mobil yatay/küçük tablet),
   480px (mobil dikey)
   ============================================================ */

/* ---------- TABLET (<=1024px) ---------- */
@media screen and (max-width: 1024px) {

    /* --- Ana Sayfa --- */
   .add-circle {
        opacity: 0;
        pointer-events: none;
    }
    .home-box {
        width: 90%;
        min-height: 85vh;
        height: auto;
        padding-bottom: 8vh;
    }
    .home-square {
        gap: 4vh 4% !important;
        justify-content: center !important;
        align-content: flex-start !important;
    }
    .home-conteiner {
        width: 28% !important;
        height: 16vh !important;
    }

    /* --- Kullanıcı Sayfası --- */
    #user-list-data, #user-wheel-data, #user-quest-data {
        gap: 4vh 0px !important;
        justify-content: space-between !important;
        padding: 4% !important;
    }
    .user-list-item, .user-wheel-item, .user-quest-item {
        width: 46% !important;
        height: 16vh !important;
    }
    .user-out button{ width: 12%; }

    /* --- Mesaj / Alert Kutusu --- */
    #message-box, #alert-box {
        width: 70%;
    }
    #mesage-item-scren div { width: 55%; }
    #delete-message, #edit-message, #go-mesage { width: 26%; font-size: 1rem; }
    #alert-footer-onay, #alert-footer-no, #alert-footer-yes { width: 28%; }

    /* --- Edit Sayfası --- */
    #edit-page { width: 92%; }
    .edit-square-item div div { width: 55%; }

    /* --- Admin Panel --- */
    #admin-panel { inset: 26% 0 0 0; }
    .list-admin-item div img, .wheel-admin-item div img { width: 45%; }

    /* --- Liste/Çark/Soru Ekleme Sayfası --- */
    .title-category { width: 10%; }
    .title-selectbox, .secret-option, .title-selectbox-quest { font-size: 0.85rem; }
    .title-select-paylas, .title-select-bosalt, .title-select-olustur { width: 9%; }
    #title-add-items { width: 80%; }
    #ai-list { width: 10%; }
    #ai-list-select-title, #ai-list-select-speed { width: 26%; }

    /* --- Quest Sayfası --- */
    .quest-square-box { width: 85%; }
    #quest-share-item div button { width: 10%; }

    /* --- Wheel Sayfası --- */
    #wheel-safe-square { width: 75%; }
    #wheel-buttons button { min-width: 100px; }

    /* --- Giriş / Kayıt --- */
    .login-box { width: 70%; height: 70%; }
    .login-item label, .login-item p, .login-item input, .login-item button {
        margin: 0 !important;
        width: 60%;
    }
    .login-item input{height: 50px;}
    .login-item label { text-align: left; }
    .login-item p { text-align: center; }
    .login-kullaniciAdi, .login-kullaniciSifre { margin-top: 0 !important; }
}

/* ---------- MOBİL / KÜÇÜK TABLET (<=768px) ---------- */
@media screen and (max-width: 768px) {


    
    .list-circle, .wheel-circle, .quest-circle {
        width: 20%;
        height: 10vh;
    }
    .title-category {
        gap: 6%;
    }

    /* Paylaş / Sil / Kaydet butonları büyüsün */
    .title-select-paylas, .title-select-bosalt, .title-select-olustur {
        width: 22%;
        height: 55px;
    }
    .title-select-paylas svg, .title-select-bosalt svg, .title-select-olustur svg {
        width: 50%;
        height: 50%;
    }

    /* Seçiniz / Görünürlük satırı biraz daha ferah */
    .title-item-select {
        gap: 3% 3%;
    }
    .secret-option {
        width: 22%;
        height: 45px;
    }
    .title-selectbox select {
        min-width: 80px;
        height: 40px;
    }

    /* Item resim butonu büyüsün */
    .add-item-image-select button {
        min-height: 40px;
    }
    .add-item-image-select svg {
        width: 55%;
        height: 55%;
    }

    .add-square {
        height: auto;
        min-height: 90vh;
        justify-content: flex-start;
    }
    

       .add-circle {
        opacity: 0;
        pointer-events: none;
    }

 .add-box {
        height: auto;
    }
    .add-listbox, .add-wheelbox, .add-questbox {
        position: relative;   /* absolute konumdan çıkar, akışa girsin */
        height: auto;
        gap: 4%;              /* masaüstündeki %20 boşluk yerine küçük boşluk */
    }
       .add-item-conteiner {
        padding: 3% 4%;
        margin-bottom: 3%;
        border-radius: 8px;
    }
    .add-item-number {
        width: 6%;
        padding-left: 2%;
    }
    .add-listbox {
        gap: 5%;
        padding: 0 2%;
        
    }
    #list-circle, #wheel-circle, #quest-circle {
        transform: none !important;
    }
    .title-category {
        margin-top: 2%;
    }
    /* --- Ana Sayfa --- */
    .home-box {
        width: 95%;
        min-height: 82vh;
        height: auto;
        padding-bottom: 10vh;
    }
    .home-square {
        gap: 3vh 4% !important;
        justify-content: center !important;
    }
    .home-conteiner {
        width: 45% !important;
        height: 14vh !important;
    }

    /* --- Kullanıcı Sayfası --- */
    #user-list-data, #user-wheel-data, #user-quest-data {
        gap: 3vh 0px !important;
        justify-content: space-between !important;
        padding: 5% !important;
    }
    .user-list-item, .user-wheel-item, .user-quest-item {
        width: 46% !important;
        height: 14vh !important;
        font-size: 16px !important;
    }
    .user-list svg, .user-wheel svg, .user-quest svg { width: 25% !important; height: 25% !important; }
    .user-list p, .user-wheel p, .user-quest p { font-size: 1.2rem !important; }
    .user-list, .user-wheel, .user-quest { font-size: 1.1rem !important; }
    .user-name { font-size: 0.9rem; }
    .user-out button { width: 16%; font-size: 0.9rem; }

    /* --- Mesaj / Alert Kutusu --- */
    #message-box, #alert-box { width: 85%; }
    #mesage-item-scren { height: 45%; }
    #mesage-item-scren div { width: 65%; }
    #mesage-title { font-size: 1.1rem; }
    #mesage-butons { flex-wrap: wrap; gap: 4%; height: 45%; }
    #delete-message, #edit-message, #go-mesage { width: 40%; height: 30%; font-size: 0.9rem; }
    #alert-box-header { font-size: 1.6rem; }
    #alert-box-square { font-size: 1rem; }
    #alert-footer-onay, #alert-footer-no, #alert-footer-yes { width: 35%; font-size: 1rem; }

    /* --- Edit Sayfası --- */
    #edit-page { width: 96%; height: 90vh; }
    .edit-page-name input { width: 92%; }
    .edit-data { flex-wrap: wrap; height: auto; padding: 2% 0; }
    .edit-data div { width: 100%; flex-wrap: wrap; gap: 2%; }
    .edit-data div:nth-child(1) button { width: 20%; }
    .edit-data div button { width: 22%; margin-right: 2%; }
    .edit-square-item, .edit-list-item-box { flex-wrap: wrap; min-height: auto; padding: 3% 0; }
    .edit-square-item div { width: 90%; }
    .edit-square-item div div { width: 90%; flex-direction: row; flex-wrap: wrap; gap: 2%; }
    .edit-square-item div div input, .edit-square-item div div button { width: 47%; height: 35px; }
    .edit-square-item div div div { width: 100%; height: 80px; }
    .edit-list-fixed { width: 96%; }

    /* --- Admin Panel --- */
    #admin-panel { inset: 22% 0 0 0; }
    .admin-list-conteiner { gap: 10%; }
    .admin-name { width: 35%; font-size: 1.1rem; }
    .admin-options { width: 45%; }
    .list-admin-item, .wheel-admin-item { height: auto; padding: 3% 0; flex-wrap: wrap; }
    .list-admin-item div, .wheel-admin-item div { width: 100%; padding: 1% 0; }
    .list-admin-item div img, .wheel-admin-item div img { width: 30%; height: 60px; }
    .list-admin-item div button, .wheel-admin-item div button { width: 40%; }

    /* --- Liste/Çark/Soru Ekleme Sayfası --- */
    .title-select { height: auto; padding: 3% 0; z-index: 2;position:relative; }
    .title-category { position: relative; left: 0; width: 100%; flex-direction: row; justify-content: center; gap: 4%; }
    .add-circle { display: none; }
    .title-name { font-size: 1.1rem; }
    #title-add-items { width: 92%; flex-wrap: wrap; }
    #title-add-items input { width: 80%; }
    #ai-list { width: 15%; opacity: 0; }
    .title-item-select { flex-wrap: wrap; height: auto; gap: 2% 0; justify-content: center; padding: 2% 0; }
    .title-selectbox, .title-selectbox-quest, .secret-option, .title-wheelbox {
        position: relative;
        left: auto;
        width: 30%;
    }
    .title-select-paylas, .title-select-bosalt, .title-select-olustur { width: 18%; }
    .add-item-conteiner { flex-wrap: wrap; height: auto; padding: 2% 0; }
    .add-item-image-select { width: 15%; }
    .add-item-image-box, .add-image-control { flex-wrap: wrap; }
    #ai-list-select-title, #ai-list-select-speed { width: 32%; font-size: 0.9rem; }

    /* --- Quest Sayfası --- */
    .quest-square-box { width: 92%; }
    .quest-square-title { font-size: 1.4rem; }
    .quest-square-text { font-size: 1rem; }
    .ikiyanıtlı { gap: 10%; }
    .ikiyanıtlı button { width: 30%; font-size: 1.1rem; }
    .secmeli { gap: 3%; }
    .secmeli > div { font-size: 1rem; }
    #quest-share-item div { font-size: 1.3rem; flex-wrap: wrap; gap: 3%; }
    #quest-share-item div input { width: 75%; }
    #quest-share-item div button { width: 15%; }
    .quest-share-item-name, .quest-share-item-reply { font-size: 1rem; }

    /* --- Wheel Sayfası --- */
    #wheel-body { font-size: 1.4rem; }
    #wheel-titles { font-size: 2rem; -webkit-text-stroke: 2px #333333; }
    #wheel-buttons button { width: 25%; min-width: 90px; font-size: 1rem; }
    #wheel-safe-square { width: 90%; height: 110px; }
    .wheel-window-items { width: 100px; min-width: 100px; font-size: 1rem; }

    /* --- Giriş / Kayıt --- */
    .login-box { width: 85%; height: 75%; }
    .login-tittle { font-size: 2.2rem; }
    .login-item input, .login-item button, .login-item label, .login-item p {
        width: 80%;
        margin: 0 !important;
    }
    .login-item label { text-align: left; }
    .login-item p { font-size: 0.9rem; text-align: center; }
    .login-kullaniciAdi, .login-kullaniciSifre { margin-top: 0 !important; }
}

/* ---------- MOBİL DİKEY (<=480px) ---------- */
@media screen and (max-width: 480px) {
     .title-select {
        height: auto;
        min-height: 40vh;
    }
    .title-name, .add-title, .title-form {
        height: auto;
    }

      .secret-option {
        left: auto;
        margin-top: 2%;
    }
    .title-selectbox {
        left: auto;
    }
    .title-selectbox select {
        min-width: 60px;
    }
    /* --- Ana Sayfa --- */
    .home { padding-top: 0%; padding-bottom: 0%; }
    .home-box {
        width: 100%;
        min-height: 100vh;
        height: auto;
        border-radius: 0px;
        border: none;
        padding-bottom: 12vh;
        box-shadow: none;
    }
    .home-square {
        gap: 2.5vh 0% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .home-conteiner {
        width: 90% !important;
        height: 11vh !important;
    }

    /* --- Kullanıcı Sayfası --- */
    #user-list-data, #user-wheel-data, #user-quest-data {
        gap: 2.5vh 0px !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding: 5% !important;
    }
    .user-list-item, .user-wheel-item, .user-quest-item {
        width: 46% !important;
        height: 12vh !important;
        font-size: 14px !important;
    }
    .user-list svg, .user-wheel svg, .user-quest svg { width: 20% !important; height: 20% !important; }
    .user-list p, .user-wheel p, .user-quest p { font-size: 1rem !important; }
    .user-actives { width: 100% !important; gap: 0% !important; }
    .user-list, .user-wheel, .user-quest { font-size: 0.95rem !important; }
    .user-out button { width: 22%; font-size: 0.8rem; margin-right: 8px; }

    .home-footer { height: 8vh; border-top: var(--border); }

    /* --- Mesaj / Alert Kutusu --- */
    #message-box, #alert-box { width: 92%; }
    #mesage-item-scren { height: 40%; }
    #mesage-item-scren div { width: 80%; }
    #mesage-title { font-size: 1rem; }
    #mesage-butons { gap: 3%; height: 50%; }
    #delete-message, #edit-message, #go-mesage { width: 46%; height: 28%; font-size: 0.85rem; }
    #alert-box-header { font-size: 1.3rem; }
    #alert-box-square { font-size: 0.9rem; padding: 0 4%; box-sizing: border-box; }
    #alert-footer-onay, #alert-footer-no, #alert-footer-yes { width: 42%; font-size: 0.9rem; }

    /* --- Edit Sayfası --- */
    #edit-page { width: 100%; height: 100vh; border-radius: 0; }
    .edit-page-name input { width: 90%; font-size: 0.95rem; }
    .edit-data div:nth-child(1) button { width: 26%; font-size: 0.85rem; }
    .edit-data div button { width: 28%; font-size: 0.8rem; }
    .edit-square-item div div input, .edit-square-item div div button { width: 100%; }
    .edit-list-item-box div input { width: 100%; }
    .edit-list-item-box div button { width: 90%; }
    .edit-list-fixed { width: 100%; }

    /* --- Admin Panel --- */
    #admin-panel { inset: 30% 0 0 0; }
    .admin-panel-name-bar div div { font-size: 1rem; }
    .admin-name { width: 40%; font-size: 1rem; }
    .admin-options { width: 55%; gap: 3%; }
    .admin-delete, .yetki-yes, .yetki-no { width: 40%; }
    .list-admin-item div img, .wheel-admin-item div img { width: 40%; height: 50px; }
    .list-admin-item div button, .wheel-admin-item div button { width: 55%; font-size: 0.9rem; }

    /* --- Liste/Çark/Soru Ekleme Sayfası --- */
    .title-category { width: 16%; left: 2%; gap: 5%; }
    .add-circle { width: 12%; height: 6vh; }
    #title-add-items input { width: 90%; }
    #ai-list { width: 16%; }
    .title-selectbox { width: 40%; }
    .title-selectbox select { width: 55%; }
    .secret-option { width: 10%; left: 42%; font-size: 0.8rem; }
    .title-select-paylas, .title-select-bosalt, .title-select-olustur { width: 13%; }
    .add-item-conteiner { height: 50px; }
    .add-item-input input { height: 60%; }
    .add-item-image-select { width: 20%; }
    .add-item-image-box { width: 100%; }
    .add-image-control { width: 100%; }
    .picture-control { width: 35%; }
    .add-wheelbox-conteiner, .add-quest-conteiner { height: auto; padding: 3% 0; }
    .add-wheelbox-item, .add-questbox-item { width: 92%; }

    /* --- Quest Sayfası --- */
    .quest-square-box { width: 96%; height: 88vh; }
    .quest-square-title { font-size: 1.15rem; }
    .quest-square-text { font-size: 0.9rem; }
    .ikiyanıtlı { gap: 6%; }
    .ikiyanıtlı button { width: 38%; height: 25%; font-size: 1rem; }
    .secmeli { gap: 3% 2%; }
    .secmeli > div { width: 85%; height: 60%; font-size: 0.85rem; }
    #quest-share-item div { font-size: 1rem; }
    #quest-share-item div input { width: 68%; }
    #quest-share-item div button { width: 20%; }
    .quest-share-item-name { width: 35%; font-size: 0.85rem; }
    .quest-share-item-reply { width: 65%; font-size: 0.85rem; }

    /* --- Wheel Sayfası --- */
    #wheel-titles { font-size: 1.5rem; -webkit-text-stroke: 1.5px #333333; }
    #wheel-buttons button { width: 35%; min-width: 80px; font-size: 0.9rem; }
    #wheel-safe-square { width: 94%; height: 90px; }
    .wheel-window-items { width: 80px; min-width: 80px; font-size: 0.85rem; }

    /* --- Giriş / Kayıt --- */
    .login-box { width: 100%; height: 100vh; border-radius: 0px; border: none; box-shadow: none; }
    .login-tittle { font-size: 1.8rem; margin-top: 5vh; }
    .login-item {
        height: auto;
        gap: 3vh;
        justify-content: center;
        padding: 4vh 0;
    }
    .login-item input, .login-item button, .login-item label, .login-item p {
        width: 85%;
        margin: 0 !important;
    }
    .login-item label { font-size: 1.1rem; text-align: left; }
    .login-item p { text-align: center; font-size: 0.85rem; }
    .login-item button { font-size: 1.2rem; height: 55px; border-radius: 8px; }
    #password-character { margin: 0 !important; text-align: center; width: 85%; }
}



@media (max-width: 600px) {

    body { overflow-x: hidden; }
    * { max-width: 100%; box-sizing: border-box; }
    /* Üstteki 3 daire - küçült, yan yana ortala */
    #add-circles-row, .add-circles-row {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin: 10px 0;
    }
    #list-circle, #wheel-circle, #quest-circle {
        width: 44px;
        height: 66px;
    }

    /* Başlık ve input */
    .title-select-olustur-header, .title-selectbox, .title-selectbox-quest {
        width: 92%;
        margin: 6px auto;
    }
    .title-selectbox input, .title-selectbox-quest input {
        width: 100%;
        height: 38px;
        font-size: 0.9rem;
    }

    /* Seçiniz / Görünürlük / paylaş-sil-kaydet satırı: masaüstündeki gibi TEK SATIRDA, küçültülmüş */
    .title-select-row, .edit-controls-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 92%;
        margin: 8px auto;
        gap: 6px;
        overflow-x: auto;
    }
    .title-select-row select,
    .edit-controls-row select {
        font-size: 0.75rem;
        padding: 2px 4px;
        width: 70px;
    }
    .title-select-row label,
    .edit-controls-row label {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    .title-select-paylas,
    .title-select-bosalt,
    .title-select-olustur,
    .visibility-toggle-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    /* Liste elemanı satırları: numara + isim input + resim butonu YAN YANA (masaüstündeki gibi) */
    .edit-square-item, .add-item-conteiner {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 94%;
        margin: 4px auto;
        gap: 6px;
        padding: 4px 0;
    }
    .edit-square-item > div:first-child {
        width: 18px;
        flex-shrink: 0;
        font-size: 0.8rem;
    }
    .edit-square-item input[type="text"],
    .add-item-conteiner input[type="text"] {
        flex: 1;
        min-width: 0;
        height: 34px;
        font-size: 0.8rem;
    }
    .add-item-image-link input[type="text"]{
        height: 50px;
    }
    .image-select-button {
        width: 40px;
        height: 34px;
        flex-shrink: 0;
    }

    /* Link input + resim önizleme gibi ikinci satır elemanları gizlensin/küçülsün, masaüstündeki gibi tek satıra sıkışsın */
    .edit-square-item .add-item-image-link,
    .edit-square-item .picture-control {
        display: none; /* mobilde sadece isim + resim butonu görünsün, link inputu resme tıklayınca açılan bir popup'a taşınabilir */
    }


    .add-item-conteiner {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        height: 46px;
        padding: 0 2%;
    }
    .add-item-number {
        width: 18px;
        flex-shrink: 0;
    }
    .add-item-input {
        flex: 1;
        width: auto;
        height: 80%;
    }
    .add-item-input input {
        width: 100%;
        height: 34px;
    }
    .add-item-image-select {
        width: 40px;
        flex-shrink: 0;
    }
    .add-item-image-select button {
        width: 34px;
        height: 34px;
    }
    .add-item-image-select svg {
        width: 60%;
        height: 60%;
    }

    /* Resme tıklanınca açılan panel: masaüstündeki gibi altına doğru açılsın,
       sadece mobilde iç düzeni (link/dosya alanı) alt alta dizilsin ki taşmasın.
       display/opacity/height JS (itemPictures) tarafından yönetiliyor, burada dokunmuyoruz. */
    .add-item-image-box, .add-image-control {
        width: 100%;
        flex: 1 1 100%;
    }
    .add-item-image { flex-wrap: wrap; }
    .picture-control {
        width: 90px;
        height: 90%;
        margin: 6px auto 0;
    }
    .add-item-image-link, .add-item-image-file {
        width: 100%;
        flex-direction: column;
        gap: 6px;
        margin-top: 6px;
    }
    .add-item-image-link input, .add-item-image-file button {
        width: 100% !important;
        height: 36px !important;
    }

        /* Seçiniz + Liste Görünürlüğü satırını normal akışa al, absolute'u kaldır */
    .title-item-select {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 3% 4%;
        height: auto;
        padding: 2% 0;
    }

    .title-selectbox,
    .title-selectbox-quest,
    .secret-option,
    .title-wheelbox {
        position: static;   /* absolute'u iptal et, satırın içinde normal aksın */
        width: auto;
        height: 40px;
    }

    .secret-option {
        width: 70px;
        padding: 0 8px;
        font-size: 0.85rem;
    }

    .title-selectbox select,
    .title-selectbox-quest select {
        width: auto;
        min-width: 80px;
        height: 36px;
    }
}
@media screen and (max-width: 768px) {
    .title-category {
        width: auto;
        left: 4%;
        gap: 12px;
    }
    .list-circle, .wheel-circle, .quest-circle {
        width: 65px !important;
        height: 65px !important;
        min-width: 65px;
    }
    .list-circle svg, .wheel-circle svg, .quest-circle svg {
        width: 55%;
        height: 55%;
    }
}

@media screen and (max-width: 768px) {

    /* Paylaş sağ üstte sabit kalsın */
    .title-select-paylas {
        margin-left: auto;
    }
    .title-selectbox{
        width: 100px;
    }

    /* Sil + Kaydet ikilisi kendi satırına düşüp ortalansın */
    .title-select-bosalt,
    .title-select-olustur {
        flex-basis: auto;
    }

    .title-select-bosalt {
        order: 10;
        margin-left: auto;
    }
    .title-select-olustur {
        order: 11;
        margin-right: auto;
    }

    /* Üçünü de aynı boyuta getir */
    .title-select-paylas,
    .title-select-bosalt,
    .title-select-olustur {
        width: 50px;
        height: 50px;
    }

    /* Satır düzenini iyice sıklaştır */
    .title-item-select {
        row-gap: 16px;
    }
}

/* =======================================================================
   KRAL FIX — Liste / Çark / Soru Ekleme ekranları — NİHAİ RESPONSIVE DÜZELTME
   Yukarıdaki eski ve birbiriyle çakışan media query'ler (absolute + flex
   karışımı, order/margin-auto çakışmaları, id/class çakışmaları) yüzünden
   ikonlar kayıyor, butonlar ekrandan taşıyor ve yatay scroll oluşuyordu.
   Bu blok en sonda olduğu için (ve !important ile) her zaman kazanır,
   tüm ekran genişliklerinde tutarlı ve taşmasız bir görünüm sağlar.
   ======================================================================= */
@media screen and (max-width: 768px) {

    html, body { overflow-x: hidden !important; max-width: 100vw !important; }

    .title-select, .add-title, .add-box, .title-item-select, #title-add-items,
    .add-quest-item-title, .add-questbox-selects {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- Üstteki 3 ikon (Liste / Çark / Soru) --- */
    .title-category {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        margin: 10px 0 6px !important;
        padding: 0 !important;
    }
    .list-circle, .wheel-circle, .quest-circle,
    #list-circle, #wheel-circle, #quest-circle {
        position: static !important;
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        flex-shrink: 0 !important;
        transform: none !important;
        margin: 0 !important;
    }
    .list-circle svg, .wheel-circle svg, .quest-circle svg {
        width: 55% !important;
        height: 55% !important;
    }

    /* --- Başlık Giriniz inputu: büyütüldü --- */
    #title-add-items {
        position: relative !important;
        width: 92% !important;
        max-width: 92% !important;
        margin: 0 auto !important;
        flex-wrap: nowrap !important;
        gap: 3% !important;
    }
    #title-add-items input {
        width: 100% !important;
        height: 48px !important;
        font-size: 1.05rem !important;
        box-sizing: border-box !important;
    }
    #ai-list { width: 34px !important; height: 34px !important; flex-shrink: 0 !important; }

    /* --- Seçiniz / Görünürlük / Paylaş-Sil-Kaydet satırı --- */
    .title-item-select {
        position: relative !important;
        left: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: 92% !important;
        max-width: 92% !important;
        margin: 10px auto !important;
        height: auto !important;
        gap: 10px !important;
        padding: 8px 0 !important;
    }
    .title-selectbox, .title-selectbox-quest, .secret-option, .title-wheelbox {
        position: static !important;
        left: auto !important;
        width: auto !important;
        height: 42px !important;
        margin: 0 !important;
    }
    .title-selectbox select, .title-selectbox-quest select {
        width: auto !important;
        min-width: 90px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
        left: auto !important;
        float: none !important;
    }
    .secret-option {
        min-width: 92px !important;
        padding: 0 10px !important;
        font-size: 0.85rem !important;
    }
    .title-select-paylas, .title-select-bosalt, .title-select-olustur {
        position: static !important;
        order: unset !important;
        margin: 0 !important;
        width: 46px !important;
        height: 46px !important;
        flex-shrink: 0 !important;
        transform: none !important;
    }

    /* --- Soru Ekle ekranı: soru tipi seçim satırı ve soru inputu --- */
    .add-questbox-selects { width: 100% !important; }
    .add-quest-item-title { width: 100% !important; }
    .add-quest-item-title input {
        width: 88% !important;
        max-width: 88% !important;
    }
}


/* =======================================================================
   KRAL FIX 2 — AI Liste paneli mobilde büyütüldü
   ======================================================================= */
@media screen and (max-width: 768px) {
    #message-box { padding: 0; }
    #ai-list-select {
        gap: 6% !important;
        height: auto !important;
        margin: 10px 0 !important;
    }
    #ai-list-select-title, #ai-list-select-speed {
        width: 40% !important;
        min-height: 42px !important;
        font-size: 0.95rem !important;
    }
    #ai-list-input {
        height: 70% !important;
    }
    #ai-list-input input {
        min-height: 46px !important;
        height: 46px !important;
        font-size: 1rem !important;
        padding: 0 4% !important;
        box-sizing: border-box !important;
    }
    #ai-list-input textarea {
        font-size: 1rem !important;
        padding: 3% !important;
        box-sizing: border-box !important;
    }
    #ai-list-only {
        height: 52px !important;
        font-size: 1.1rem !important;
    }
}
/* =======================================================================
   KRAL FIX 3 — Mobil ek düzeltmeler (SADECE mobil, masaüstü etkilenmiyor)
   1) Resim ekleme paneli artık akışa (static) giriyor: açılınca kartın
      kendi boyu büyüyor ve ALTINDAKİ satırı aşağı itiyor, üstüne binmiyor.
   2-3-4) #message-box (bilgi kartı / AI ile liste oluşturma / öğe detay
      ekranı) mobilde daha geniş.
   5) Edit sayfası (edit-page) satırları ve üst ikon butonları düzeltildi.
   6) Listelerim/Çarklarım/Sorularım sekme ikonları mobilde gizlendi.
   ======================================================================= */
@media screen and (max-width: 768px) {

    /* --- 1) Resim ekleme paneli aşağı itsin, üstüne binmesin --- */
    .add-item-conteiner {
        flex-wrap: wrap !important;
        flex-direction: row !important;
        height: auto !important;
        min-height: 46px !important;
        padding: 8px 2% !important;
    }
    .add-picture-container {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        flex: 1 1 100% !important;
        order: 5 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }
    /* JS sadece opacity/height/bottom inline style ile açıp kapatıyor;
       inline stile göre gerçek yükseklik veriyoruz ki içerik görünsün. */
    .add-picture-container[style*="opacity: 1"] {
        height: auto !important;
        min-height: 150px !important;
        padding: 10px 2% !important;
        margin-top: 8px !important;
        opacity: 1 !important;
    }
    .add-picture-container[style*="opacity: 0"] {
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin-top: 0 !important;
        border: none !important;
    }
    .add-picture-container .add-item-image-box,
    .add-picture-container .add-image-control {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .add-picture-container .picture-control {
        width: 90px !important;
        height: 90px !important;
        margin: 8px auto 0 !important;
    }

    /* --- 2-3-4) message-box (bilgi kartı / AI paneli / detay ekranı) --- */
    #message-box {
        width: 96% !important;
    }
    #ai-list-select-title, #ai-list-select-speed {
        width: 44% !important;
        min-height: 46px !important;
        padding: 4px 6px !important;
        font-size: 0.9rem !important;
        line-height: 1.15 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    #ai-list-select {
        gap: 4% !important;
    }

    /* --- 5) Edit sayfası: üst ikon satırı (paylaş/kopyala/kaydet) --- */
    .edit-data > div:nth-child(2) > button {
        width: 28% !important;
        height: 42px !important;
        margin-right: 3% !important;
    }

    /* --- 5) Edit sayfası: liste öğesi satırları --- */
    .edit-square-item {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        min-height: auto !important;
        height: auto !important;
        padding: 10px 3% !important;
        gap: 6px 2% !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        box-sizing: border-box !important;
    }
    .edit-square-item > div:nth-child(1) {
        width: 10% !important;
        height: auto !important;
        justify-content: flex-start !important;
    }
    .edit-square-item > div:nth-child(2) {
        width: 85% !important;
        height: auto !important;
    }
    .edit-square-item > div:nth-child(2) input {
        width: 100% !important;
        height: 40px !important;
    }
    .edit-square-item > div:nth-child(3) {
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .edit-square-item > div:nth-child(3) > div:nth-child(1) {
        flex: 1 1 auto !important;
        width: auto !important;
        height: auto !important;
        flex-direction: row !important;
        gap: 6px !important;
    }
    .edit-square-item > div:nth-child(3) > div:nth-child(1) input,
    .edit-square-item > div:nth-child(3) > div:nth-child(1) button {
        width: auto !important;
        flex: 1 !important;
        height: 38px !important;
    }
    .edit-square-item > div:nth-child(3) > div:nth-child(2) {
        width: 56px !important;
        height: 56px !important;
        flex-shrink: 0 !important;
    }
    .edit-square-item > div:nth-child(3) > div:nth-child(2) > div {
        width: 100% !important;
        height: 100% !important;
    }
    .edit-square-item > div:nth-child(3) > div:nth-child(2) img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        display: block !important;
    }

    /* --- 6) Listelerim / Çarklarım / Sorularım sekme ikonları gizli --- */
    #user-icon1, #user-icon2, #user-icon3 {
        display: none !important;
    }
}

/* =======================================================================
   KRAL FIX 4 — Mobil ek düzeltmeler (SADECE mobil, masaüstü etkilenmiyor)
   1) close-mesage / edit-page-close (X) butonları büyütüldü.
   2) add-list-image-values / edit-list-image-values (Url Giriniz) input
      yüksekliği artırıldı.
   3) Oluştur butonu (#ai-list-only) ekranın en altına sabitlendi.
   4) edit-page üst bölümü artık sabit yüzdelik yükseklik yerine içeriğe
      göre boyutlanıyor; paylaş/kopyala/kaydet butonları liste
      kartlarının arkasında kalmıyor.
   ======================================================================= */
@media screen and (max-width: 768px) {

    /* --- 1) Kapatma (X) butonları büyütüldü --- */
    #close-mesage {
        height: auto !important;
        min-height: 44px !important;
        padding: 8px 4% 0 !important;
        box-sizing: border-box !important;
    }
    #close-mesage button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-shrink: 0 !important;
    }
    #close-mesage svg {
        width: 55% !important;
        height: 55% !important;
    }
    .edit-page-close {
        height: auto !important;
        padding: 8px 4% 0 !important;
        box-sizing: border-box !important;
    }
    .edit-page-close div {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-shrink: 0 !important;
    }
    .edit-page-close div svg {
        width: 55% !important;
        height: 55% !important;
    }

    /* --- 2) Url Giriniz (resim linki) input yüksekliği artırıldı --- */
    .add-item-image-link input {
        height: 90px !important;
    }

    /* --- AI (sparkle) butonu büyütüldü, küçük kalmasın --- */
    #ai-list {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        flex-shrink: 0 !important;
        opacity: 1 !important;
    }
    #ai-list img {
        width: 60% !important;
        height: 60% !important;
    }

    /* --- edit-list-item-box (çark öğeleri) inputları büyütüldü --- */
    .edit-list-item-box div input {
        height: 44px !important;
    }

    /* --- 3) Oluştur butonu, beyaz mesaj kutusunun (#message-box) en
       altında sabit kalsın — ekranın değil, kartın altına yapışık --- */
    #message-box {
        position: absolute !important;
        overflow: hidden !important;
    }
    #ai-list-only {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 56px !important;
        border-radius: 0 0 15px 15px !important;
        z-index: 5 !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15) !important;
    }
    #ai-list-input {
        padding-bottom: 66px !important;
        box-sizing: border-box !important;
    }

    /* --- 4) Edit sayfası üst kısmı içeriğe göre boyutlansın, alttaki
       liste kartlarının arkasında kalan paylaş/kopyala/kaydet
       butonları artık tam görünsün --- */
    .edit-name {
        height: auto !important;
        padding-bottom: 10px !important;
    }
    .edit-page-name {
        height: auto !important;
        padding: 6px 0 !important;
        box-sizing: border-box !important;
    }
    .edit-page-name input {
        height: 44px !important;
    }
    .edit-data {
        height: auto !important;
    }
    .edit-data > div {
        height: auto !important;
        padding: 6px 0 !important;
    }
    .edit-data > div:nth-child(1) select {
        height: 38px !important;
    }
    .edit-data > div:nth-child(1) button {
        height: 40px !important;
    }
    @media screen and (max-width: 768px) {
    .add-item-image-link,
    .add-item-image-link input.add-list-image-values,
    .add-list-image-values {
        height: 40px !important;
        min-height: 40px !important;
    }
}
}