* {
    white-space: pre-line;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f0f0f0;

}

#titleBar {
    margin-top: 100px;
    color: rgb(0, 0, 0);
    padding: 10px;
    text-align: center;
    width: 100%;
}

#hitokoto {
    font-size: 16px;
}


#importButton {
    margin-bottom: 10px;
    padding: 20px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

#reviewPanel {
    position: relative;
    width: auto;
    height: auto;
    min-width: 800px;
    min-height: 400px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-align: center;
    transition: transform 0.5s ease, background-color 0.3s ease;
    transform-style: preserve-3d;
    /* 保持子元素在3D空间中 */
    perspective: 800px;
    /* 设置透视距离 */
}


#reviewPanel.flipped {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    transform: rotateY(180deg);
}

#reviewContent {
    position: absolute;
    transform: rotateY(0deg) scaleX(1);
    backface-visibility: hidden;
    z-index: 0;
    text-align: left; /* 左对齐 */
    padding: 0 20px;
    
}


#reviewContent.flipped {
    transform: rotateY(180deg) scaleX(-1);
    z-index: 99;
}

.controlButton {
    flex: 1;
    margin: 50px 100px;
    padding: 30px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

#buttonsContainer {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 100px;
}

#buttonsContainer div {
    margin-bottom: 100px;
}

.controlButtons {
    display: flex;
    align-items: center;
}

.randomModeContainer {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-left: 15px;
}

.randomModeCheckbox {
    font-size: 20px;
    margin-right: 10px;
}

.randomModeLabel {
    cursor: pointer;
}

/* 媒体查询：当屏幕宽度小于等于 600px 时应用以下样式 */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    #reviewPanel {
        min-width: 300px;
        /* 设置最小宽度 */
        max-width: none;
        /* 可以尝试去掉这行，或者设置为一个较大的值，以适应大屏幕 */
    }

    #buttonsContainer {
        flex-direction: column;
    }

    .controlButton {
        margin: 20px;
    }
}