/* Global */
:root {
    --intro-color: #1c581a;
    --date-color: #c02932;
    --meta-color: #082351;
    --h2-color: #16823f;
    --h3-color:#c02932;
    --h-f:#d0e0f7;
    --link:#383fd1;
    --hover:#bb404b;
    --list:#d3476f;
}
body {
    font-family: 'Lato', sans-serif;
    font-size:19px;
    margin: 0;
    background-color: #f7f7f7;
    color: #000000;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Epilogue', sans-serif;
}
h1 {
    font-size: 2em;
    text-align: center;
}
h2 {
    font-size: 1.5em;
    color: var(--h2-color);
}
p {
    line-height: 1.6;
}
a {
    text-decoration: none;
    color:var(--link);
}
a:hover {
    text-decoration: underline;
    color:var(--hover);
}
/* Header */
header {
    text-align: center;
    background-color: var(--h-f);
    padding: 17px 0;
    margin-bottom: 3px;
    top: 0;
}
h1.site-title, a.site-title {
    margin: 0;
    font-size: 1.9em;
    font-weight: bold;
    border-bottom: none;
    color: rgb(19, 104, 63);
}
header a.site-title {
    text-decoration: none;
}
header a.site-title:hover {
    color: red;
}
/* Footer */
footer {
    text-align: center;
    background-color: var(--h-f);
    padding: 3px;
    margin-top: 20px;
}
.footer-buttons {
    max-width: 700px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 20px auto;
}
.footer-button {
    margin: 7px;
    padding: 10px 20px;
    background-color: var(--h2-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    flex: 1 0 auto;
}
.footer-button:hover {
    background-color: #000;
    text-decoration: none;
    color: #FFFFFF;
}
/* Main Container */
.forum-container {
    max-width: 871px;
    margin: 20px auto;
    padding: 17px;
}
.forum-container h1 {
    font-size: 1.7em;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: left;
}
.query {
    line-height: 1.7;
    font-family: 'Epilogue', sans-serif;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    font-size:1.1em;
    background-color: #f4f2f2;
    border: 1px solid #d7d7d7;
}
.description {
    font-size: 1.3em;
    color: #000; 
    margin-bottom: 20px;
    max-width: 100%;
    color: #0056b3;
}
/* Forum Section */
.forum-section {
    background-color: #f0f6f7;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 13px;
}
.forum-section .category-description {
    margin-bottom: 20px;
    text-align: center;
    color: var(--meta-color);
}
.meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--meta-color);
    margin-bottom: 20px;
    font-style: italic;
}
.comments-section {
    margin-top: 20px;
}
.comment {
    background-color: #fff;
    margin-top: 10px;
    padding: 27px;
    border-radius: 5px;
    
}
.nested-comment {
    margin-top: 17px;
    margin-left: 20px;
}
.comment-author {
    font-weight: bold;
    margin-bottom: 17px;
    color: var(--h3-color);
    border-bottom: 1px solid #d7d7d7;
}
.comment-text {
    font-size: 1em;
    line-height: 1.7;
    margin-top: 15px;
}
.forum-card {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #d7d7d7;
}
.forum-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}
.forum-card h2 a {
    color: var(--h2-color);
}
.forum-card p.forum-meta {
    font-size: 0.9em;
    color: var(--meta-color);
}
.add-comment-button {
    background-color: #FF4500; /* Reddit Orange */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.add-comment-button:hover {
    background-color: #FF5733; /* Slightly Lighter Orange */
}
.auth-box {
    text-align: center;
    background-color: #d7d7d7;
 padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}
.auth-heading {
    color: #333;
    margin-bottom: 20px;
}

.auth-button {
    background-color: #007BFF; /* Bootstrap Blue */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin: 5px;
    transition: background-color 0.3s;
}
.auth-button.login {
    background-color: #28A745;
}
.auth-button.register {
    background-color: #4a28a7;
}
.auth-button:hover {
    opacity: 0.9;
    color: #fff;
    background-color: #000;
    text-decoration: none;
}
.registration-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.registration-form h1 {
    color: var(--h2-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box; /* Makes sure the width includes padding */
}

.submit-button {
    background-color: var(--h2-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

.submit-button:hover {
    background-color: var(--hover);
}
.switch-form {
    margin-top: 20px;
    font-size: 0.9em;
}

.switch-form a {
    color: var(--link);
    text-decoration: none;
}

.switch-form a:hover {
    text-decoration: underline;
}
.login-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.login-form h1 {
    color: var(--h2-color);
    margin-bottom: 20px;
}
.user-profile {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}

.user-profile h1 {
    color: var(--h2-color);
    margin-bottom: 20px;
}

.user-profile h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.user-details p {
    font-size: 1em;
    margin: 10px 0;
}
.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    margin-top: 10px;
    height: 5px;
    border-radius: 2px;
    overflow: hidden;
    display: none; /* Start hidden */
}

.progress-bar .progress {
    height: 100%;
    width: 0%;
    background-color: #007bff;
    animation: progress-animation 3s linear forwards;
}

@keyframes progress-animation {
    from { width: 0%; }
    to { width: 100%; }
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 10px;
    display: none; /* Start hidden */
}
.registration-progress {
    display: none;
    margin: 20px auto;
    border: 5px solid #f3f3f3; /* Light gray border */
    border-top: 5px solid #3498db; /* Blue border */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



