@charset "utf-8";
/* CSS Document */
 body {
            font-family: "Nunito Sans", sans-serif;
            margin: 0;
            padding: 0px;
            background-color: rgb(40, 44, 52);
            display: flex;
            flex-direction: column;
            align-items: center; font-weight: 300;
        }

header { height: 60px; width: 100%; position: fixed; top:0; left: 0; background-color: rgba(0,0,0,.5); text-align: center; z-index: 2; }
header h1 { height: 60px; line-height: 60px; margin: 0; color: #FFF; font-size: 130%; font-weight: 500;}
#setting,#close { width: 60px; height: 60px; cursor: pointer; position: absolute; top:0; right:0; background-position: center; background-repeat: no-repeat; background-size: 28px;}
#setting { background-image: url("../img/setting.svg");}
#close { background-image: url("../img/close.svg");}

        .container {
            width: 100%;
        }
.delete { display: none;}

        .controls {
            background: #0E1012; width: 100%; height: 100svh; box-sizing: border-box; position: fixed; top:0; right: 0; z-index: 2;
            padding: 0px 0;
            margin-bottom: 20px; transform: translateX(100%); transition: all .4s ease 0s; color: #FFF;
        }
.controls .inner { height: calc( 100% - 60px); overflow-y: auto; margin-top: 60px; padding: 0 25px;}
.controls .inner .inners { max-width: 600px; margin-left: auto; margin-right: auto;}
.open .controls { transform: translateX(0);}
        .control-group {
            flex: 1; border-bottom: 1px solid rgba(255,255,255,.2); padding: 20px 0;
        }
.control-group select { width: 100%;}
        h1 {
            color: #333;
            margin-bottom: 20px;
        }
        h2 {
            font-size: 20px;
            margin: 0 0 10px 0;font-weight: 500;
        }
h3 { margin-top: 0;font-weight: 500;}
        canvas {
            background: white;
            border-radius: 0;
            width: 100%;
        }



        button {
            background: #4a6fa5;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.3s;
            margin-right: 10px;
            margin-bottom: 10px;font-family: "Nunito Sans", sans-serif;font-weight: 500;
        }
        button:hover {
            background: #385785;
        }
        button:disabled {
            background: #cccccc;
            cursor: not-allowed;
        }

#resetBtn { height: 60px; border-radius: 0; background-color: transparent; color: #0071E3; width: 100%; margin: 0; position: absolute; left: 0; bottom: 0; display: none;}
#generateBtn{ height: 60px; border-radius: 0; background-color: #0071E3; width: 60px; margin: 0; position: fixed; left: 50%; bottom: 40px; border-radius: 30px; transform: translateX(-50%); text-indent: -9999px; background-image: url("../img/refresh.svg"); background-size: 30px; background-repeat: no-repeat; background-position: center;}

        select, input {
            padding: 8px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
input[type=range] { width:calc( 100% - 0em); margin: 0; box-sizing: border-box;}
select { background-color: rgba(255,255,255,.3); border: none; color: #FFF; }
option { color: #000;}

#saveBtn { width: 60px; height: 60px; background-color: transparent; background-image: url("../img/download.svg"); background-repeat: no-repeat; background-position: center; background-size: 24px; text-indent: -9999px; position: fixed; bottom: 40px; right: 20px; margin: 0; background-color: rgba(0,0,0,.2); border-radius: 50%;}

        .info {
            margin-top: 20px;
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .loading-text {
            background: #000; color: #FFF;
            padding: 20px;
            border-radius: 10px;
        }
        .slider-container {
            /*display: flex;*/
            align-items: center;
        }
        .slider-value {
            margin-left: 10px;
            min-width: 45px;
        }
.slider-value { width: 100%; text-align:center; display: block; margin: 0; display: none;}
        .advanced-toggle {
            margin-top: 10px;
            cursor: pointer;
            color: #0071E3;
            user-select: none;
        }
        .advanced-controls {
            display: none;
            margin-top: 15px;
            padding-top: 15px; display: block!important;
        }
        .show {
            display: block;
        }
        .checkbox-container {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        .checkbox-container input[type="checkbox"] {
            margin-right: 8px;
        }
        .style-selection {
            margin-top: 10px;
            padding: 10px;
            background-color: rgba(255,255,255,.1);
            border-radius: 4px;
            border: 0px solid #eee;
        }
        .style-option {
            margin: 6px 0;
        }
		
		#painting { position: fixed; bottom: 0; left: 0;}
		#canvasContainer { width: 100%; position: fixed; top:50%; left: 0; transform: translateY(-50%); text-align: center;}
@media (orientation: landscape) {
  canvas {
            width: auto; height: 100%;
        }
	#canvasContainer { width: 100%; height: 100%;}
	#generateBtn,#saveBtn {  bottom: 20px;}
}
