
/* Base font size for different screen sizes */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Focus styling for buttons and form elements */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(37, 140, 251, 0.5); /* Bootstrap-like focus shadow */
}

/* Ensure full height of the page */
html {
    position: relative;
    min-height: 100%;
}

/* Body styling */
body {
    margin-bottom: 60px;
    background-color: #f8f9fa; /* Light background for a modern look */
}

/* Container for login and authentication pages */
.auth-container, .login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to start to push the form up */
    padding-top: 40px; /* Adjust to move the form higher */
}

/* Styling for login and authentication boxes */
.auth-box, .login-box {
    background-color: white;
    padding: 30px;
    border-radius: 0.5rem; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    max-width: 400px;
    width: 100%;
}

/* Form control styling */
.form-control {
    margin-bottom: 1rem; /* Consistent margin with Bootstrap spacing */
}

/* Base button style */
.btn-primary {
    background-color: #949494; /* Primary button color */
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* Bootstrap's standard button rounding */
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-primary:hover {
        background-color: #A41E56; /* Lighter version of #A41E56 */
        color: white;
        transform: scale(1.02); /* Slight pop effect on hover */
    }

/* Secondary button style */
.btn-secondary {
    background-color: #949494; /* Secondary button color */
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* Bootstrap's standard button rounding */
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-secondary:hover {
        background-color: #E7570D; /* Lighter version of #E7570D */
        color: white;
        transform: scale(1.02); /* Slight pop effect on hover */
    }

/* Tertiary button style */
.btn-tertiary {
    background-color: #6A649E; /* Lighter version of #3B3870 */
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* Bootstrap's standard button rounding */
    text-decoration: none; /* Remove underline */
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-tertiary:hover {
        background-color: #3B3870; /* Tertiary button color */
        color: white;
        transform: scale(1.02);
    }

/* Orange button style */
.btn-orange {
    background-color: #949494; /* orange button color */
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-orange:hover {
        background-color: #FFC24D; /* Lighter version of #FB9B06 */
        color: white;
        transform: scale(1.02);
    }

/* Teal button style */
.btn-teal {
    background-color: #076E86; 
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-teal:hover {
        background-color: #48A3B0; /* Lighter version of #076E86 */
        color: white;
        transform: scale(1.02); /* Slight pop effect on hover */
    }

/* Styling for links in forms */
.auth-links, .login-links {
    margin-top: 1rem;
    text-align: center;
}

    .auth-links a, .login-links a {
        color: #3B3870; /* Link color */
        text-decoration: none;
        font-weight: 500;
    }

        .auth-links a:hover, .login-links a:hover {
            text-decoration: underline;
        }

/* Divider styling */
.divider {
    margin: 1rem 0;
    color: #076E86;
    font-weight: 600;
}

/* Responsive adjustments for account settings */
@media (min-width: 768px) {
    .account-settings-container {
        display: flex;
    }

    .account-content {
        flex-grow: 1;
    }
}

/* Page header styles */
h2 {
    font-size: 2.5rem;
    color: #3B3870;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #076E86;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 10px;
    color: #3B3870;
}

/* Navigation menu for account settings */
.account-nav {
    margin-right: 2rem;
}

    .account-nav a {
        display: block;
        padding: 0.5rem 1rem;
        margin-bottom: 0.5rem;
        background-color: #f8f9fa;
        color: #076E86;
        text-decoration: none;
        border-radius: 0.375rem;
        transition: background-color 0.3s ease;
    }

        .account-nav a:hover,
        .account-nav a.active {
            background-color: #A41E56;
            color: white;
        }


.btn-danger {
    background-color: #E7570D;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-danger:hover {
        background-color: #A41E56;
    }

/* Styling for account content area */
.account-content {
    background-color: white;
    padding: 20px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

    .account-content p {
        color: #333;
        font-size: 1rem;
        margin-bottom: 1rem;
    }

/* Footer styling */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #f8f9fa;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    font-size: 0.875rem;
}

    footer a {
        color: #076E86;
        text-decoration: none;
        margin: 0 5px;
    }

        footer a:hover {
            color: #A41E56;
            text-decoration: underline;
        }

/* Custom primary background color for the navbar */
.bg-custom-primary {
    background-color: #3B3870; /* Purple color for navbar background */
}

/* Navbar link styling */
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff; /* White text for links */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition */
    border-radius: 0.375rem; /* Rounded corners */
    padding: 10px 15px;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        background-color: #A41E56; /* Hover color */
        transform: scale(1.05); /* Pop effect on hover */
        color: white; /* Ensure text stays white on hover */
    }

/* Navbar brand styling */
.navbar-brand {
    color: #ffffff; /* White text for the brand */
    font-weight: bold;
}

    .navbar-brand:hover {
        color: #A41E56; /* Change to pink shade on hover */
    }

/* Adjusting the navbar toggle icon for mobile view */
.navbar-toggler-icon {
    background-color: #ffffff; /* White icon for contrast */
    border-radius: 3px;
}

/* Styling for the left navigation menu */
.nav-pills .nav-link {
    background-color: #f8f9fa;
    color: #3B3870;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

    .nav-pills .nav-link:hover {
        background-color: #A41E56;
        color: white;
    }

    .nav-pills .nav-link.active {
        background-color: #3B3870;
        color: white;
    }


/* When the checkbox is checked */
.form-check-input:checked {
    background-color: #076E86;
    border-color: #076E86; /* Border color when checked */
    focus-border-color: #076E86;
}

/* Additional styling for external logins */
#external-logins {
    margin-top: 10px;
}

/* Below this is CSS for Sam's topic page that he migrated */
.SUBTOPIC {
    border: 2px solid black;
    display: flex;
    flex-direction: column;
}

.TITLE {
    text-align: center;
}

.INFO {
    text-align: center;
}

.PLUS {
    flex: 1;
    background-color: transparent;
    text-align: center;
    font-size: 70px;
    border-color: black;
    border-style: solid;
    justify-content: center;
    vertical-align: top;
}

.IMAGE_CONTAINER {
    display: flex;
    justify-content: center;
}

.IMAGE {
    max-width: 50%;
    max-height: 500px !important;
}

/*CSS for Subtopic Row*/
.ROW {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.SUBTOPIC_TITLE {
    text-align: center;
}

.MAIN_COMMENTS{
    position:relative;
    padding: 0.75rem 1.5rem;
    border-style: solid;
    border-color: #c7c7c7;
    border-width: 1.75px;
    border-radius: 0.375rem;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
}

    .MAIN_COMMENTS:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        background-color: #f5f5f5;
        transform: scale(1.02);
        border-color: #a7a7a7;
    }

/* Delete button as an 'X' for main comments */
.btn-deleteComment {
    position: absolute;
    top: -15px; /* Position slightly above */
    right: 0; /* Align to the right */
    font-size: 2.25rem; /* Larger font size */
    color: #dc3545; /* Red color for delete */
    text-decoration: none; /* Remove underline */
    background: none; /* No background */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    line-height: 1; /* Ensure proper alignment */
}

.btn-deleteComment:hover {
    color: #c82333; /* Slightly darker red on hover */
}





.btn-editComment {
    position: absolute;
    bottom: 0.5rem; /* Adjust distance from the bottom */
    right: 0.5rem; /* Adjust distance from the right */
    background-color: #007bff; /* Blue for edit */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-editComment:hover {
    background-color: #0056b3;
}







.SUB_COMMENTS {
    position: relative;
    margin-left: 10%;
    padding: 0.75rem 1.5rem;
    border-style: solid;
    border-color: #c7c7c7;
    border-width: 1.75px;
    border-radius: 0.375rem;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
}

    .SUB_COMMENTS:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        background-color: #f9f9f9;
        transform: scale(1.02);
        border-color: #a7a7a7;
    }

/* Edit button for sub-comments */
.btn-editSubcomment {
    position: absolute;
    bottom: 0.5rem; /* Position at the bottom */
    right: 0.5rem; /* Align to the right */
    background-color: #007bff; /* Blue for edit */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
}

    .btn-editSubcomment:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }

/* Delete button for sub-comments */
.btn-delteSubcomment {
    position: absolute;
    top: -15px; /* Position slightly above */
    right: 5px; /* Align to the right */
    font-size: 2.25rem; /* Larger font size */
    color: #dc3545; /* Red color for delete */
    text-decoration: none; /* Remove underline */
    background: none; /* No background */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    line-height: 1; /* Ensure proper alignment */
}

    .btn-delteSubcomment:hover {
        color: #c82333; /* Slightly darker red on hover */
    }


#newComment {
    border: 1px solid black;
}


/* Styling for the Create New Topic Button */
.btn-create-topic {
    background-color: #A41E56;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

    .btn-create-topic:hover {
        background-color: #c75276;
    }

/* Form Container for Create Topic Page */
.form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin: 20px auto;
    max-width: 600px; /* Keeps form contained */
}

    /* Title and Body Labels */
    .form-container label {
        font-weight: bold;
        font-size: 1.1rem;
        color: #3B3870;
        display: block;
        margin-bottom: 10px;
    }

    /* Title Input and Body Textarea Styling */
    .form-container input[type="text"],
    .form-container textarea {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        outline: none;
        resize: vertical; /* Allows textarea resizing */
    }

    /* Checkbox Styling */
.form-container .checkbox {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.form-container .checkbox label {
    margin-left: 8px;
    font-weight: bold;
    color: #3B3870;
}

.form-container .checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid #3B3870;
    border-radius: 3px;
    margin-right: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-container .checkbox input[type="checkbox"]:checked {
    background-color: #A41E56;
    border-color: #A41E56;
    position: relative;
}

.form-container .checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/*Form for comments by Kevin*/
/* Form Container for Create Comment Page */
.form-comments {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin: 20px auto;
    max-width: 600px; /* Keeps form contained */
}

    /* Title and Labels */
    .form-comments label {
        font-weight: bold;
        font-size: 1.1rem;
        color: #3B3870;
        display: block;
        margin-bottom: 10px;
    }

    /* Textarea and Inputs */
    .form-comments input[type="radio"],
    .form-comments textarea,
    .form-comments select {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        outline: none;
        resize: vertical; /* Allows textarea resizing */
    }

    /* Textarea specifically */
    .form-comments textarea {
        height: 150px; /* Set default height */
        resize: vertical;
    }

    /* Radio buttons */
    .form-comments input[type="radio"] {
        margin-right: 10px;
        accent-color: #A41E56; /* Matches theme */
        transform: scale(1.2); /* Slightly larger for visibility */
    }

    /* Dropdown (categories) */
    .form-comments select {
        max-width: 100%; /* Keeps it contained */
        cursor: pointer;
    }

    /* Submit button */
    .form-comments button[type="submit"] {
        background-color: #A41E56;
        color: #ffffff;
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

        .form-comments button[type="submit"]:hover {
            background-color: #861645; /* Darker shade of red */
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow */
        }


.form-check {
    margin-bottom: 10px;
}



/* Form Container for Sub-Comments by Kevin  */
.form-subcomments {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin: 20px auto;
    max-width: 600px; /* Keeps form contained */
}

    /* Title and Labels */
    .form-subcomments label {
        font-weight: bold;
        font-size: 1.1rem;
        color: #3B3870;
        display: block;
        margin-bottom: 10px;
    }

    /* Textarea and Inputs */
    .form-subcomments input[type="radio"],
    .form-subcomments input[type="text"] {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        outline: none;
    }

    /* Radio buttons */
    .form-subcomments input[type="radio"] {
        margin-right: 10px;
        accent-color: #A41E56; /* Matches theme */
        transform: scale(1.2); /* Slightly larger for visibility */
    }

    /* Submit button */
    .form-subcomments button[type="submit"] {
        background-color: #A41E56;
        color: #ffffff;
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

        .form-subcomments button[type="submit"]:hover {
            background-color: #861645; /* Darker shade of red */
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow */
        }









/* Form Container for Edit Comments */
.form-editcomment {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin: 20px auto;
    max-width: 600px; /* Keeps form contained */
}

    /* Title and Labels */
    .form-editcomment label {
        font-weight: bold;
        font-size: 1.1rem;
        color: #3B3870;
        display: block;
        margin-bottom: 10px;
    }

    /* Textarea and Inputs */
    .form-editcomment input[type="radio"],
    .form-editcomment textarea,
    .form-editcomment select {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        outline: none;
        resize: vertical; /* Allows textarea resizing */
    }

    /* Radio buttons */
    .form-editcomment input[type="radio"] {
        margin-right: 10px;
        accent-color: #A41E56; /* Matches theme */
        transform: scale(1.2); /* Slightly larger for visibility */
    }

    /* Dropdown (categories) */
    .form-editcomment select {
        max-width: 100%; /* Keeps it contained */
        cursor: pointer;
    }

    /* Submit button */
    .form-editcomment button[type="submit"] {
        background-color: #A41E56;
        color: #ffffff;
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

        .form-editcomment button[type="submit"]:hover {
            background-color: #861645; /* Darker shade of red */
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow */
        }




/* Styling for charts */
.chartDiv {
    width: 40%;
    height: 40%;
    margin: auto;
}

/* Styling for Category List */
.CAT_LIST {
    background-color: #FB9B06; /* orange button color */
    border: none;
    color: white;
    padding: 0.10rem 0.10rem;
    border-radius: 0.375rem; /* Bootstrap's standard button rounding */
}

.CAT_ROW {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    height:20%;
    overflow-y:auto;
}

pre {
    text-align: left;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: Arial, Helvetica, sans-serif;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-lg-4, .col-md-6 {
    display: flex;
    flex-direction: column;
}

.card {
    flex-grow: 1; /* Ensures all cards take up equal space */
    display: flex;
    flex-direction: column;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to the bottom of the card */
    align-items: center; /* Horizontally center the content */
    text-align: center; /* Ensure text is centered */
    height: 100%; /* Make sure the card body takes full height */
}


.card-img img {
    max-height: 200px; /* Set max height of the image */
    width: 100%; /* Make sure the image takes full width of its container */
    object-fit: contain; /* Optional: Maintains aspect ratio and covers the box */
    margin-bottom: 15px; /* Spacing between image and content */
}


.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.list-group-item:hover {
    background-color: #3B3870;
    color: white;
    font-weight: bold;
    transform: scale(1.02); /* Slight pop effect on hover */
}