/* Import custom font - assuming the font file is in the 'Fonts' folder */
@font-face {
    font-family: 'DMSerifDisplay';
    src: url('Fonts/DMSerifDisplay-Regular.ttf') format('truetype');
}

/* Global body style */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}

/* Header style */
header {
    background-color: #51FAF0;
    color: white;
    width: 40%;
    margin: 20px auto 0; /* Adjusted top margin, removed bottom margin */
    padding: 1px 20px; /* Increased vertical padding for visual balance */
    box-sizing: border-box;
    text-align: center; /* Center align the text within the header */
    border-radius: 5px;
    border: 2px solid black; /* Added a 2px solid black border */
}

/* Style for Deetvibe text in the header */
.header-text {
    font-family: 'DMSerifDisplay', serif;
    font-size: 48px;
    font-weight: bold;
    color: black;
    margin: auto; /* Auto margins for horizontal centering */
}

/* Date style moved outside of header */
#date-container {
    text-align: center; /* Center align the date */
    color: #4a4a4a;
    font-size: 18px;
    font-style: italic;
    opacity: 0.7;
    color: rgba(0, 0, 0, 0.7);
    margin: 0 auto; /* Center the date block */
    padding: 20px 0; /* Space above and below the date */
    display: block; /* Ensure the date is on a new line */
    width: 100%; /* Ensure full width to center content */
}

/* Main content style */
main {
    width: 40%; /* Make the main content area as wide as the header */
    margin: 20px auto; /* Center the main content area */
    box-sizing: border-box;
    line-height: 2.2; /* Increase line spacing */
}

/* Style for the section title */
main h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px; /* Add space below the title */
}

/* Style for the paragraph text */
main p {
    font-size: 16px;
    margin-bottom: 20px; /* Add space between paragraphs */
}

/* Style for bold text */
main p strong {
    font-weight: bold;
}

/* Adjusted newsfeed margin to account for the moved date */
#newsfeed {
    width: 40%;
    margin: 20px auto; /* Increased top margin to separate from the date */
    box-sizing: border-box;
}

/* Style for the section tab */
.section-tab {
    font-weight: bold;
    font-size: 14px;
    padding: 0; /* Remove padding */
    margin-bottom: 10px; /* Space between title and border */
    /* Removed background and positioning properties */
}

/* Style for each news item */
.news-item {
    /* Removed top border */
    background-color: white;
    padding: 20px;
    margin-bottom: 40px;
    position: relative;
}

/* Content area within each news item, including the separator */
.content {
    border-top: 1px solid black; /* This acts as the horizontal line separator */
    padding-top: 20px; /* Add padding at the top to space the content away from the border */
    line-height: 2.4;
    margin-bottom: 50px; /* Space below each content item */
}

/* Style for the dropdown content that is always visible */
.dropdown-content {
    padding: 10px;
    background-color: #ffffff; /* Background color for the dropdown content area */
    margin-bottom: 50px; /* Space below the dropdown content */
    line-height: 2.4;
}


/* Individual content elements - General styling */
.news-item .content .headline,
.news-item .content .summary,
.news-item .content .historicalContext,
.news-item .content .meaning,
.news-item .content .definition,
.news-item .content .transliteration,
.news-item .content .author { 
    margin-bottom: 15px;
    padding: 5px 0;
}

/* Style for the headline */
.news-item .content .headline {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 5px 0;
}



/* Specific styling for reduced margin */
.news-item .content .term,
.news-item .content .title { 
    margin-bottom: 0px; 
    padding: 5px 0;
    font-weight: bold;
}


/* Style for the dropdown button */
.dropbtn {
    background-color: white;
    color: black;
    padding: 7px 12px;
    font-size: 14px;
    border: 1px solid black;
    cursor: pointer;
    position: absolute;
    bottom: 20px;
    right: 20px;
    outline: none;
    border-radius: 4px;
    opacity: 0.8;
}

/* Style for the dropdown content */
.dropdown-content {
    display: none;
    padding: 10px;
    background-color: #ffffff;
    margin-bottom: 50px;
    border-left: 2px solid #4A4A4A; /* Soft charcoal color for the border */
}

/* Style for paragraphs in the dropdown content */
.dropdown-content p {
    color: black;
    margin-top: 12px; /* Increased top spacing between paragraphs */
    margin-bottom: 12px; /* Increased bottom spacing between paragraphs */
    padding-left: 20px; /* Padding to align with the border */
}

/* Style for headings (like 'Deets' and 'Historical Context') in the dropdown content */
.dropdown-content h4 {
    color: black;
    margin: 0; /* Resetting default margins */
    padding-left: 20px; /* Padding to align with the paragraphs */
    font-weight: bold;
}

.image-container {
    text-align: center;
    margin-bottom: 20px; /* Adjust as needed */
    width: 35%;
    margin-left: auto;
    margin-right: auto;
}

.center-image {
    max-width: 15%;
    height: auto;
    border: none;
    outline: none;
}

.quote-container {
    text-align: center;
    width: 35%;
    margin-left: auto;
    margin-right: auto;
}

.quote {
    font-style: italic;
    color: #676767; /* Adjust color as needed */
    margin: 0 20px; /* Horizontal margin */
    line-height: 2.2;
    padding-top: 15px;

}

.quote-attribution {
    font-size: 0.9em;
    color: #676767;
    margin-bottom: 20px;
    padding-top: 10px; /* Additional top padding for better separation */
    padding-bottom: 15px;
}






footer {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Style for links in the footer */
footer a {
    color: #4a4a4a; /* Elegant dark grey color */
    margin: 0 20px; /* Increased spacing for a more open look */
    font-size: 16px; /* Maintaining a readable font size */
    text-decoration: none; /* No underline for a cleaner look */
}


/* Media queries for responsive design on mobile screens */
@media screen and (max-width: 768px) {
    header, main, #newsfeed, footer {
        width: 90%;
    }

    .header-text {
        font-size: 32px;
    }

    #date-container {
        font-size: 16px;
        padding: 10px 0;
    }

    main h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    main p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .center-image {
        max-width: 50%;
    }

    .quote-container {
        width: 100%;
    }

    .quote {
        margin: 0;
        padding: 10px;
        line-height: 1.6;
    }

    .quote-attribution {
        margin-bottom: 15px;
        padding-top: 5px;
        padding-bottom: 10px;
    }
}





