/*
body{
    background-color: #EFF6FF;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Helvetica, sans-serif;
}
    */
body {
    background-color: #EFF6FF;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Helvetica, sans-serif;
    margin: 0;
    padding: 10px;
    height: 100dvh; /* Ekranın tamamını kapla, kaymayı engelle */
    overflow: hidden;
    box-sizing: border-box;
}

/*
#canvas{
    display: block;
    background-color: white;
    cursor: crosshair;
}
    */
#canvas, #gridCanvas {
    display: block;
    touch-action: none; /* Mobilde çizerken sayfanın kaymasını engeller (Kritik!) */
}
#anaKapsayici {
    display: flex; /* Grid yerine Flex kullanmak boyutlandırmayı kolaylaştırır */
    flex-direction: row;
    flex: 1; /* Kalan tüm boşluğu kapla */
    gap: 20px;
    min-height: 0; /* İçeriğin taşmasını engeller */
}
#solTaraf {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}
#tuvalKapsayici {
    flex: 1;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: white;
}
#gridCanvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}


#palette1Container{
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px
}
/* Renk paleti */
#palette1{
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    gap: 5px;
    padding: 20px;
    background-color: #F3E8FF;
    border-radius: 15px;
}
#satir1, #satir2{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Silgi */
#palette2{
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Seçili renk */
#palette3{
    width: 5%;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 5px;
}

/* Kalınlık */
#palette5{
    width: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
}

/* Restart - Kaydet */
#palette6{
    width: 15%;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 5px;
}

#site{
    display: flex;
    justify-content: center;
    align-items: center;
}

.container{
    display: flex;
}

.kutu{
    width:50px;
    height:50px;
    border-radius: 60%;
    cursor: pointer;
    transition: all 0.2s ease;
}

#renkSecici {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width:50px;
    height:50px;
    border-radius: 60%;

    background-color: transparent;

    border: none;
    cursor: pointer;
    padding: 0;
}

#renkSecici::-webkit-color-swatch {
    border: none;
    border-radius: 60%;
    
    background-image: url('img/color-picker.png'); 
    background-size: 65%; 
    background-position: center;
    background-repeat: no-repeat;
}

#renkSecici::-moz-color-swatch {
    border: none;
    border-radius: 60%;
    
    background-image: url('img/color-picker.png'); 
    background-size: 65%; 
    background-position: center;
    background-repeat: no-repeat;
}

#renkSecici::-webkit-color-swatch-wrapper {
    padding: 0;
}


.kenar{
    box-shadow: 0 0 0 2px black;

    transform: scale(1.1); 
}

p, label{
    font-size: 14px;
}

button{
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 
                0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-radius: 15px;


    border: none; 
    background-color: #ffffff;
    
    padding: 8px 16px;
    cursor: pointer;

    width: 120px;
    height: 80px;
}
button:hover{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

input{
    border-radius: 6px;

    border: 1px solid #d1d5db;

    padding: 8px 12px; 
    font-size: 14px;

    outline: none;
}

#ekranGoruntusu{
    background-image: url('img/save.png'); 
    background-size: 40%; 
    background-position: center;
    background-repeat: no-repeat;
    width: 120px;
    height: 60px;
}

#sil{
    background-image: url('img/reset.png'); 
    background-size: 40%; 
    background-position: center;
    background-repeat: no-repeat;
}

#silgi{
    background-image: url('img/eraser.png'); 
    background-size: 50%; 
    background-position: center;
    background-repeat: no-repeat;
}

#doldur{
    background-image: url('img/fill-bucket.png'); 
    background-size: 60%; 
    background-position: center;
    background-repeat: no-repeat;
}

#undo{
    height: 60px;
    width: 80px;
    background-image: url('img/undo.png'); 
    background-size: 50%; 
    background-position: center;
    background-repeat: no-repeat;
}


#redo{
    height: 60px;
    width: 80px;
    background-image: url('img/redo.png'); 
    background-size: 50%; 
    background-position: center;
    background-repeat: no-repeat;
}


.sablonButon{
    display: block;
    transition: all 0.3s ease;

    width: 60px;
    height: 60px;
    background-color:#38D9A9;
    border-radius:25px;
}
.sablonButon:hover{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sekilButon{
    width: 40px;
    height: 40px;
    background-color:#38D9A9;
    border-radius:15px;
}
#dinozor{
    background-image: url('img/dinasour.png'); 
    background-size: 100%; 
    background-position: center;
    background-repeat: no-repeat;
}
#cicek{
    background-image: url('img/flower.png'); 
    background-size: 80%; 
    background-position: center;
    background-repeat: no-repeat;
}
#agac{
    background-image: url('img/tree.png'); 
    background-size: 80%; 
    background-position: center;
    background-repeat: no-repeat;
}
#roket{
    background-image: url('img/rocket.png'); 
    background-size: 80%; 
    background-position: center;
    background-repeat: no-repeat;
}

#bomba{
    background-color: #F44336;
    background-image: url('img/bomb.png'); 
    background-size: 80%; 
    background-position: center;
    background-repeat: no-repeat;
}

#damgalar{
    display: flex;
    flex-direction: column;
    justify-content: space-around; 
    align-items: center;
    gap: 5px;
    padding: 10px;
    background-color: #F3E8FF;
    border-radius: 15px;
}

#pati{
    background-image: url('img/paw.png'); 
    background-size: 90%; 
    background-position: center;
    background-repeat: no-repeat;
}
#yaprak{
    background-image: url('img/leaf.png'); 
    background-size: 90%; 
    background-position: center;
    background-repeat: no-repeat;
}
#balik{
    background-image: url('img/fish.png'); 
    background-size: 90%; 
    background-position: center;
    background-repeat: no-repeat;
}
#kalp{
    background-image: url('img/heart.png'); 
    background-size: 90%; 
    background-position: center;
    background-repeat: no-repeat;
}

#yaziButonDiv{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}
.yaziButonu{
    height: 40px;
    width: 40px;
    border-radius: 5px;
    padding: 0px 0px;
}

#daireCizim{
    background-image: url('img/paintCircular.png'); 
    background-size: 90%; 
    background-position: center;
    background-repeat: no-repeat;
}
#kareCizim{
    background-image: url('img/paintRectanular.png'); 
    background-size: 90%; 
    background-position: center;
    background-repeat: no-repeat;
}
#aynaCizim{
    background-image: url('img/paintMirror.png'); 
    background-size: 90%; 
    background-position: center;
    background-repeat: no-repeat;
}

/*BURASI KONTROL EDİLECEK*/
#popupBackground{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
#popupDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2%;
    border-radius: 30px;
    height: 55%;
    width: 30%;
    box-shadow: 0 20px 80px 15px rgba(0, 0, 0, 0.5);
}
#innerPopupDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2%;
    border-radius: 30px;
    height: 90%;
    width: 100%;
}

#e-postaButon{
    background-color: #38D9A9;
    background-image: url('img/email-icon.png'); 
    background-size: 50%; 
    background-position: center;
    background-repeat: no-repeat;
    width: 120px;
    height: 60px;
    margin-bottom: 10%;
}


#savedBackground{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
#savedDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 2%;
    border-radius: 30px;
    height: 20%;
    width: 25%;
    box-shadow: 0 20px 80px 15px rgba(0, 0, 0, 0.5);
}

#emailBackground{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
#savedEmailDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 2%;
    border-radius: 30px;
    height: 20%;
    width: 25%;
    box-shadow: 0 20px 80px 15px rgba(0, 0, 0, 0.5);
}

#errorBackground{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
#errorDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 2%;
    border-radius: 30px;
    height: 20%;
    width: 25%;
    box-shadow: 0 20px 80px 15px rgba(0, 0, 0, 0.5);
}

#kaydedildiKapatButon, #emailKapatButon, #errorKapatButon{
    background-color: #38D9A9;
    width: 120px;
    height: 60px;

}


#popupAc{
    background-image: url('img/download.png'); 
    background-size: 60%; 
    background-position: center;
    background-repeat: no-repeat;
}



@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    #anaKapsayici {
        flex-direction: column; /* Mobilde alt alta diz (Üst menü ve Tuval) */
        gap: 10px;
    }

    /* Sol menüyü üst yatay kaydırılabilir menü yap */
    #solTaraf {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding: 5px;
        gap: 15px;
        justify-content: flex-start;
        /* Kaydırma çubuğunu gizlemek istersen (isteğe bağlı) */
        scrollbar-width: none; 
    }
    #solTaraf::-webkit-scrollbar {
        display: none;
    }

    #damgalar {
        flex-direction: row; /* Damgaları mobilde yan yana diz */
    }

    /* Alt menüyü yatay kaydırılabilir yap */
    #altCont {
        display: flex;
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap; /* Asla alt satıra geçmesin */
        gap: 15px;
        margin-top: 5px;
        padding-bottom: 5px;
        scrollbar-width: none;
    }
    #altCont::-webkit-scrollbar {
        display: none;
    }

    /* Alt menüdeki flex elemanlarının boyutlarını sabitle ki daralmasınlar */
    #palette1Container, #palette2, #palette3, #palette5, #palette6 {
        width: max-content;
        flex-shrink: 0; /* Sıkışmalarını engelle */
    }

    /* Renk paletini yatayda hizala */
    #palette1 {
        flex-direction: row;
        padding: 10px;
    }

    #undo, #redo {
        width: 60px;
        height: 60px;
    }
}
/*
@media (max-width: 768px) {
    #altCont{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-left: 10%;
    }
        /* Silgi *//*
    #palette2{
        width: 30%;
        gap: 0px;
    }

        /* Seçili renk *//*
    #palette3{
        width: 30%;
        gap: 0px;
    }

    #palette1Container{
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px
    }

    /* Renk paleti *//*
    #palette1{
        width: 100%;
        gap: 0px;
        padding: 10px;
        margin-right: 13%;
    }

    /* Kalınlık *//*
    #palette5{
        width: 30%;
        margin-right: 10%;
    }

    /* Restart - Kaydet *//*
    #palette6{
        width: 40%;
        gap: 5px;
        margin-left: 10%;
        justify-content: center;
    }

    #undo{
        width: 100px;
        height: 60px;
    }

    #redo{
        height: 60px;
        width: 100px;
    }

    #popupDiv{
        width: 80%;
    }
    #savedDiv{
        height: 20%;
        width: 80%;
    }
    #savedEmailDiv{
        height: 20%;
        width: 80%;
    }
}
*/



/* İMLEÇ DEĞİŞTİRME
.canvasCross{
    cursor: crosshair;
}
.canvasSil{
    cursor: url('eraser-cursor.png'), crosshair;
}
.canvasDoldur{
    cursor: url('fill-bucket.png'), crosshair;
}
*/



/*          Eski piksel ayarlama ayarları
#palette4{
    width: 35%;
    display: flex;
    align-items: center;
    gap: 10px;
}

#palette4 p{
    margin: 0;
}
*/

