@charset "utf-8";
/* CSS Document */
body {
            font-family: "Noto Serif JP", serif;
            margin: 0 auto;
            background-color: #f5f2e9;
            color: #333;
        }
        h1 {
            color: #333;
            text-align: center;
            width: 100%; position: fixed; top:50%; left: 0; transform: translateY(-50%); margin: 0; font-size: 9vw; font-weight: 500;
        }

@media (orientation: landscape) {
  h1 {
           font-size: 5vw;
        }
}

        .container {
            background-color: white;
            
        }
        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
            justify-content: center; display: none;
        }
        button {
            background-color:rgba(255,255,255,.8);
            border: none;
            color: white;
            text-align: center;
            text-decoration: none;
            font-size: 16px;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.3s; text-indent: -9999px; width: 60px; height: 60px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: auto 30px; transition: background-color 1s ease 0s;
        }
.pause button {background-color:rgba(255,255,255,0);}
        button:disabled {
            
            cursor: not-allowed; display: none;
        }
        button.play-btn {
             background-image: url("../img/play.svg"); width: 80px; height: 80px; background-size: auto 40px;
        }
        button.play-btn:hover {
        }
        button.stop-btn {
             background-image: url("../img/pause.svg"); width: 80px; height: 80px; background-size: auto 40px;
        }
        button.stop-btn:hover {
           
        }
#generateBtn { background-image: url("../img/next.svg");}
.dummy { opacity: 0; cursor: default;}
        #styleSelect {
            padding: 10px;
            border-radius: 4px;
            border: 1px solid #ddd;
            font-size: 16px;
            min-width: 150px;
        }
        .text-section { position: relative; z-index: 1; transition: all 1s ease 0s;}
        #result {
            margin-top: 0px; height: 80svh; position: absolute; top:0; left: 50%; transform: translateX(-50%);
            line-height: 1.8;
            padding: 20px;
            font-size: 16px;
            white-space: pre-wrap; box-sizing: border-box;writing-mode: vertical-rl;
        }
        .main-content {
            gap: 0px; height: 100svh; position: fixed; top:0; left: 0; width: 100%;
        }
        
        .drawing-section {
                position: absolute; top:0; left: 0; width: 100%; height: 100svh; transition: all 1s ease 0s;
            }
.pause .drawing-section,.pause .text-section { opacity: 0;}
        .drawing-container {width: 100%; height: 100svh;}
        
        .charcoal-drawing { width: 100%; height: 100%; object-fit: cover;}
        
        @media (min-width: 768px) {
            .main-content {
            }
            .text-section {
            }
            .drawing-section {
                left: 50%; transform: translateX(-50%);
            }
        }
        .drawing-container {
            background-color: #000;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .charcoal-drawing {
           
        }
        .description {
            margin-top: 20px;
            color: #666;
            font-size: 14px;
            text-align: center;
        }
        footer {
            margin-top: 30px;
            text-align: center;
            font-size: 12px;
            color: #888;
        }
        .audio-controls {
            margin-top: 20px;
            display: flex;
            justify-content: center;align-items: center;
            gap: 20px;
        }
        #controls { position: fixed; bottom: 40px; width: 100%; left: 0;}
        .audio-visualization {
            margin-top: 15px;
            width: 100%;
            height: 60px;
            background-color: #f0f0f0;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }
        .visualizer-canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

