/* Contains styling for informational pages */


/* T&Cs NAVIGATION */
/* Styling for Table of Contents */

#know-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-blue);
    min-height: calc(100vh - 100px);
    position: relative;
    width: 100%;
}

.know-content {
    width: 70%;
    max-width: 1000px;
    margin: 0px 30px 50px 50px;
    border-radius: 30px;
    background-color: var(--off-white);
    padding: 17px 65px 35px 65px;
}

.know-content-top{
    margin-top: 120px;
}

.know-content > p {
    text-align: justify;
}



/* Contains styling for informational pages */

/* Info page styling */
#info-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-blue);
    min-height: calc(100vh - 200px);
    position: relative;
    width: 100%;
    line-height: 1.4; 
}

.info-content {
    width: 70%;
    max-width: 1000px;
    margin: 0px 30px 50px 50px;
    border-radius: 30px;
    background-color: var(--off-white);
    padding: 17px 65px 35px 65px;
}

.info-content-top {
    margin-top: 120px;
}

.info-content > p {
    text-align: justify;
    margin-bottom: 20px;
}

.info-content > h2 {
    margin-top: 20px;
}

.info-content ul {
    list-style-type: disc; /* Ensures bullet points are displayed */
    /* margin-left: 20px; Indent the list to align with paragraph text */
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--dark-blue);
}

/* Spacing for list items */
.info-content ul li {
    margin-bottom: 10px; /* Space between each bullet point */
}

.info-content ul li:last-child {
    margin-bottom: 20px; /* Space under the last bullet point */
}




/* T&Cs NAVIGATION */
/* Styling for Table of Contents */

#table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
}

#table-of-contents ul li {
    margin-bottom: 10px;
}

#table-of-contents ul li a {
    text-decoration: none;
    color: var(--mid-blue);
    font-weight: bold;
}

#table-of-contents ul li a:hover {
    text-decoration: underline;
    color: var(--dark-blue);
}

/* Add a margin at the top of each section to account for the fixed header */
#terms, #privacy, #ip {
    scroll-margin-top: 120px; /* Adjust this value based on the height of your fixed menu bar */
}

/* Smooth scroll behavior for better navigation */
html {
    scroll-behavior: smooth;
}



/* CONTACT FORM */
/* Styling for the form elements */
/* 
#contact-form > form,
#knowledge-section > form {
    margin-top: 30px;
} */

/* #contact-form label,
#knowledge-section label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--dark-blue);
}

#contact-form input[type="text"], 
#contact-form input[type="email"], 
#contact-form textarea,
#knowledge-section input[type="email"]{
    width: 100%;
    padding: 10px;
    margin-top: 1%;
    margin-bottom: 20px;
    border: 1px solid var(--mid-blue);
    border-radius: 5px;
    font-size: 1.2rem;
    box-sizing: border-box;
} */




/* Button styling */
/* #contact-form .button,
#knowledge-section .button {
    background-color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top:5px;
}

#contact-form .button:hover,
#knowledge-section .button:hover {
    background-color: var(--green);
} */

/* Email address styling */
/* #contact-form a,
#knowledge-section a {
    color: var(--mid-blue);
    text-decoration: none;
}

#contact-form a:hover,
#knowledge-section a:hover {
    text-decoration: underline;
} */


/* Modal container (hidden by default) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Stay on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(1, 26, 83, 0.5); /* Black with opacity */
}

/* Modal content */
.modal-content {
    background-color: var(--off-white);
    margin: 40% auto; /* 15% from the top and centered */
    padding: 20px;
    border-radius: 5px;
    width: 50%; /* Width of the modal */
    text-align: center;
}

/* Close button */
.close {
    color: var(--mid-blue);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--dark-blue);
    text-decoration: none;
    cursor: pointer;
}


/* USER ROUTES CSS */

/* Password strength indicator */
.password-strength {
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.password-strength.weak {
    color: red;
}

.password-strength.medium {
    color: orange;
}

.password-strength.strong {
    color: green;
}

/* Checkbox styling */
#registration-form label input[type="checkbox"] {
    margin-right: 8px;
}


/* Spinner on loading info */
.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner-circle {
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* STYLING FOR DAILY EMAIL TEMPLATE */
/* styles/know-page.css */

.email-table-main {
    max-width:650px; 
    background-color: #EBF1FF; 
    padding: 0; 
    margin: 30px auto 0 auto;
}

main table {
    border: 0;
    border-collapse: collapse;
    width: 100%;
}

main td, main th, main tr {
    padding: 0;
    margin: 0;
    border: none;
}

main tr {
    border-bottom: none !important;
}

/* nav {
    margin-top: 90px;
    margin-left: 30px;
    margin-right: 30px;
    padding-top: 0px;
} */

nav.buttons {
    text-align: center;          /* Center-align the buttons */
    margin: 50px 0 0 0;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    border-color: #007bff;
}
.button.disabled {
    background-color: #ccc;
    pointer-events: none;
    border-color: #ccc;
}

#email-holder {
    max-width: 650;
    margin: auto;
}


/* Specific formatting of email content */
.email-content-injected {
    padding: 0; 
    margin: 0;
}


.email-content-injected main, .email-content-injected p, .email-content-injected a, .email-content-injected span, .email-content-injected h1 {
    font-family: Arial, sans-serif !important;
    letter-spacing: normal !important;
}

.email-content-injected h1 {
    margin-bottom: 0;
    margin-top: 20px;
}

p {font-size: 14px;}

table td:first-child, table th:first-child {
    font-weight: normal;
}

.daily_email_date {
    font-size: 25px;
    margin-left: 30px; 
    margin-right: 30px;
    margin-bottom: 0px;
    margin-top: 30px;
    font-weight: bold !important;
    text-align: center;
}



/* FORMATTING FOR DAILY MARKET EMAILS */

/* ul {
    list-style: none;
    padding: 0;
}
li {
    margin: 5px 0;
} */
/* a {
    text-decoration: none;
    color: var(--mid-blue);
} */
/* a:hover {
    text-decoration: underline;
} */




/* Container for each month */
.month-section {
    margin-bottom: 30px;
}

/* Month header styles */
.month-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Grid container for day links */
.day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));  /* Adjust the min-width as needed */
    gap: 10px;
}

/* Day link styles */
.day-link {
    display: block;
    text-align: center;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.day-link:hover {
    background-color: #d0e4ff;
}

.day-link:visited {
    color: #0056b3;
}

.month-section {
    margin-bottom: 30px;
}

.month-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Grid container for weeks */
.week-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Row for each week */
.week-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* 5 weekdays per row */
    gap: 10px;
}

/* Cell for each day */
.day-cell {
    padding: 10px;
    background-color: var(--mild-blue);
    border-radius: 8px; /* Slightly increased the radius for a softer look */
    text-align: center;
    font-weight: normal;
    text-decoration: none; /* Remove underline for a cleaner button look */
    display: inline-block; /* Ensure padding applies consistently */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for raised effect */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.day-cell:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2); /* Make shadow more prominent on hover */
    transform: translateY(-2px); /* Subtle lift effect */
    background-color: var(--mid-blue);
    font-weight: bold;
}

.day-cell:active {
    transform: translateY(0); /* Remove lift effect when button is tapped */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Reduced shadow for tap interaction */
}


.day-cell.empty {
    background-color: transparent;
    pointer-events: none;
}

@media (max-width:899px) {
    .know-content-top {
        margin-top: 0px;
    }
    
    .info-content-top {
        margin-top: 10px;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    #nav-bar-spacer {
        display: none;
    }

    #main-content {
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width:624px) {
    .info-content {
        margin: 0px 10px 15px 10px;
        width: calc(100vw - 20px);
        max-width: 100%;
        padding: 15px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .info-content-top {
        margin-top: 10px;
    }

    .info-content > h2 {
        margin-top: 10px;
    }

    .email-table-main {
        margin: 10px auto 0 auto;
    }
}

/* Remove padding at top of fact of the day */
.email-table-main > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(1) > td {
    padding-top: 0px !important;
}



.know-report-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fafafa;
}

.know-report-image {
    width: 120px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.know-report-text {
    flex: 1;
}

.report-text h3 {
    margin-top: 0;
}

.know-download-link {
    display: inline-block;
    margin-top: 0.5em;
    color: #0070f3;
    text-decoration: underline;
}

#login-modal.show {
    display: block; /* Show the modal */    
}
