/*
 Theme Name: Resident Portal
 Author: Resident
 Version: 1.0
*/

/* Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* Ensure footer stays at the bottom */
html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(269deg, #f5f7fa, #e0e7f1);
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main {
    min-height: calc(100vh - 60px - 40px); /* Adjust the values based on the actual height of the header and footer */
    padding: 20px;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 10px 20px;
    color: #fff;
    font-family: 'Roboto', sans-serif; /* Gmail font */
}

.navbar .logo a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
}

.navbar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar nav ul li {
    margin-right: 20px;
}

.navbar nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.navbar nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

.navbar nav ul li a img {
    vertical-align: middle;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.navbar nav ul li a:hover img {
    opacity: 0.7;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}


/* Footer styles */
.site-footer {
    background-color: #f1f1f1; /* Light background color */
    color: #333;
    padding: 10px 0; /* Reduced padding */
    text-align: center;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* Add shadow for a more elegant look */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0;
    font-size: 10px; 
    line-height: normal;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Ensure items fit in one line */
}

.footer-nav ul li {
    margin: 0 5px; /* Reduced margin */
}

.footer-nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 11px; /* Reduced font size */
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #667eea; /* Matching gradient color */
}

input, select, button {
    padding: 6px 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Add styles for WordPress post content tags */
.generic-content p {
    font-size: inherit;
    margin-bottom: 1.5em;
}

.generic-content h1,
.generic-content h2,
.generic-content h3,
.generic-content h4,
.generic-content h5,
.generic-content h6 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.generic-content ul,
.generic-content ol {
    font-size: inherit;
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.generic-content ul li,
.generic-content ol li {
    font-size: inherit;
    margin-bottom: 0.5em;
}

.generic-content blockquote {
    font-size: inherit;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    border-left: 5px solid #ccc;
    color: #666;
}

.generic-content pre {
    background: #f5f5f5;
    padding: 10px;
    overflow: auto;
    border: 1px solid #ddd;
    margin-bottom: 1.5em;
}

.generic-content code {
    background: #f5f5f5;
    padding: 2px 4px;
    font-size: 90%;
    color: #c7254e;
    border-radius: 4px;
}

.generic-content table {
    width: 100%;
    margin-bottom: 1.5em;
    border-collapse: collapse;
}

.generic-content table th,
.generic-content table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.generic-content table th {
    background: #f5f5f5;
    text-align: left;
}

.editor-styles-wrapper, .entry-content {
    line-height: 1.5;
    letter-spacing: 0.5px;
    font-size: 1.2em;
}

article {
    margin: auto;
    width: 70%;
}

.rolling-info {
    background-color: black;
    color: red;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.rolling-info p {
    margin: 0;
    display: inline-block;
    animation: scroll-left 20s linear infinite; /* Adjust duration to fit the message */
}

@keyframes scroll-left {
    from {
        transform: translateX(50%); /* Start from the edge of the container */
    }
    to {
        transform: translateX(-100%); /* Move completely out of view */
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar nav ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar nav ul.active {
        display: flex; /* Show navbar items when active */
    }

    .navbar nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
        padding: 10px 0px;
    }

    .navbar nav ul li a {
        padding: 10px 0px;
    }

    .navbar .toggle-nav {
        display: block;
        cursor: pointer;
        font-size: 14px;
        margin-bottom: 10px;
        color: #fff;
    }

    .editor-styles-wrapper, .entry-content {
        font-size: 1.4em;
    }

    article {
        margin: auto;
        width: 90%;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 12px;
    }
}
