/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: rgb(235, 52, 52) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(235, 52, 52) !important;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

header h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #f0f0f0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.subtitle {
    font-size: 1.1em;
    color: #e0e0e0 !important;
    font-style: italic;
}

/* Print Button */
.print-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FFD700 !important;
    color: #000000 !important;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    font-weight: bold;
}

.print-btn:hover {
    background-color: #FFC700 !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Introduction Section */
.intro-section {
    margin-bottom: 30px;
}

.info-card {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.info-card h3 {
    color: #ffffff !important;
    font-size: 1.6em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.info-card p {
    color: #f0f0f0 !important;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2em;
    color: #ffffff !important;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Paragraphs Section */
.paragraphs-section {
    margin-bottom: 40px;
}

.paragraph-card {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.paragraph-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4) !important;
}

.paragraph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.paragraph-header h3 {
    color: #ffffff !important;
    font-size: 1.4em;
    flex-grow: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.toggle-btn {
    background-color: #FFD700 !important;
    color: #000000 !important;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.toggle-btn:hover {
    background-color: #FFC700 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.toggle-btn.active {
    background-color: #FF4444 !important;
    color: #ffffff !important;
}

.toggle-btn.active:hover {
    background-color: #CC0000 !important;
}

.paragraph-content {
    display: none;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.paragraph-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paragraph-content h4 {
    color: #FFD700 !important;
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.paragraph-content p {
    color: #f0f0f0 !important;
    margin-bottom: 10px;
    line-height: 1.6;
}

.paragraph-content p strong {
    color: #FFD700 !important;
}

.paragraph-content ul {
    list-style-type: disc;
    padding-left: 30px;
    color: #f0f0f0;
}

.paragraph-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.paragraph-content ul li strong {
    color: #FFD700 !important;
}

/* Comment Section */
.comment-section {
    background-color: rgb(52, 235, 58) !important;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(0, 0, 0, 0.3);
}

.comment-section h2 {
    color: #000000 !important;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.comment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.comment-table thead {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

.comment-table th,
.comment-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    color: #000000 !important;
}

.comment-table th {
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.comment-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

.comment-table tbody tr:last-child td {
    border-bottom: none;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    background-color: rgba(255, 255, 255, 1) !important;
}

.form-group button {
    padding: 14px 35px;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    font-weight: bold;
}

.form-group button:hover {
    background-color: #333333 !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

footer p {
    margin: 5px 0;
    color: #ffffff !important;
    font-size: 1em;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .print-btn {
        display: none;
    }
    
    .toggle-btn {
        display: none;
    }
    
    .paragraph-content {
        display: block !important;
    }
    
    .comment-section {
        background-color: #34eb3a;
    }
    
    header {
        background: none;
    }
    
    .paragraph-card {
        page-break-inside: avoid;
        border: 1px solid #000;
        background: white;
    }
    
    .paragraph-header h3 {
        color: black;
    }
    
    .paragraph-content ul li,
    .paragraph-content p {
        color: black;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    header h2 {
        font-size: 1.3em;
    }
    
    .paragraph-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toggle-btn {
        margin-top: 10px;
        width: 100%;
    }
    
    .print-btn {
        position: static;
        margin-top: 15px;
        width: 100%;
    }
    
    .comment-table {
        font-size: 14px;
    }
    
    .comment-table th,
    .comment-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    header h2 {
        font-size: 1.1em;
    }
    
    .paragraph-card {
        padding: 15px;
    }
}