/* static/css/styles.css */

/* Form container styling to narrow the form width and center it */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Field styling for form inputs */
.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

.input, .textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    resize: vertical;
}

/* Actions button styling - center the submit button */
.actions {
    text-align: center; /* Center the submit button */
}

.actions .primary {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.actions .primary:hover {
    background-color: #45a049;
}

/* Additional global styles for responsive design */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

span[recorded="true"] {
    background-color: #e4f2fd;
    padding: 1px 1px;
    border-radius: 1px;
}

h1 {
    font-size: 2.5em;
    margin-top: 20px;
}

.text_title {
    text-align: center;
    margin-bottom: 20px;
}

.text_content {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    padding: 20px;
}

p {
    text-align: justify;
    margin-bottom: 20px;
    
}

.word {
    display: inline-block;
    margin-right: 2px;
}

.popup {
    position: absolute;
    display: none;
    background-color: #ccffcc; /* Light pastel green background */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translate(50px, -35px);  /* Move the popup window up by 5px */
    /* Arrow pointing to the left bottom */
    clip-path: polygon(0 85%, 10% 85%, 10% 100%, 20% 85%, 100% 85%, 100% 0, 0 0);
}
/* Buttons styling */
.popup button {
    background-color: #ff6699; /* Pink background for contrast */
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

/* Button hover effect */
.popup button:hover {
    background-color: #ff3366; /* Darker pink on hover */
}

/* Button focus effect */
.popup button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ff99cc; /* Lighter pink border on focus */
}
.popup-large {
    position: absolute;
    display: none;
    background: #f0f0f5; /* 素雅的纯色背景 */
    border: none; /* 去掉边框 */
    padding: 20px; /* 增加内边距 */
    z-index: 200;
    width: 40vw; /* 宽度为视口宽度的40% */
    max-height: 30vh; /* 最大高度为视口高度的30% */
    overflow-y: auto; /* 超出内容时自动添加垂直滚动条 */
    
    /* 添加美化效果 */
    border-radius: 12px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06); /* 阴影 */
    transition: all 0.3s ease; /* 增加动画效果 */
}
