* {
    box-sizing: border-box;
}

body {
    font-family: 'trebuchet ms', sans-serif;
    padding: 20px;
    background: #4E90BB;
}

.header {
    padding: 10px;
    font-size: 20px;
    text-align: center;
    background: white;
}

.leftcolumn {
    float: left;
    width: 75%;
    height: 90vh;
    overflow-y: visible;
}

.rightcolumn {
    float: left;
    width: 25%;
    padding-left: 20px;
}

.img {
    width: 100%;
    padding: 20px;
}

.card {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.footer {
    padding: 20px;
    text-align: center;
    background: #ddd;
    margin-top: 20px;
}

@media screen and (max-width: 800px), screen and (max-width: 600px), screen and (orientation: portrait) {
    body {
        padding: 5px;
    }
    .row {
        display: block;
        margin: 0;
    }
    .leftcolumn,
    .rightcolumn {
        width: 100%;
        padding: 0;
        float: none;
        display: block;
        clear: both;
        height: auto;
        min-width: 0;
        box-sizing: border-box;
    }
    .card {
        margin-top: 10px;
        padding: 10px;
    }
    .header {
        font-size: 18px;
        padding: 5px;
    }
}

.navbar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    background-color: black !important;
    font-family: 'trebuchet ms', sans-serif;
    padding-right: 15px;
    padding-left: 15px;
}

.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar button {
    background-color: black;
    margin-left: 10px;
    border-radius: 10px;
    padding: 10px;
    width: 90px;
}

.navbar li {
    list-style: none;
    display: inline-block;
}

.navbar li a,
.navbar button a {
    font-family: 'trebuchet ms', sans-serif;
    font-weight: bold;
}

.navbar li a {
    color: white;
    font-size: 18px;
    margin-right: 25px;
}

.navbar button a {
    color: white;
    font-size: 15px;
}

.scrollcard {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: white;
    padding: 20px;
    margin-top: 20px;
}

.scroll-container {
    height: calc(100% - 40px);
    overflow: hidden;
    position: relative;
}

.scroll-container nav {
    position: absolute;
    top: 0;
    width: 100%;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        top: 100%;
    }
    100% {
        top: -100%;
    }
}

/* =============================================================================
   ENHANCED USER EXPERIENCE STYLES
   ============================================================================= */

/* Reading Progress Bar */
#reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}

#reading-progress {
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
    width: 0%;
    transition: width 0.1s ease;
}

/* Enhanced hover effects for images */
.enhanced-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.enhanced-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Table of contents styling */
.table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

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

.table-of-contents li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.table-of-contents li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #007bff;
}

/* Enhanced link styling */
.link-container a {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.link-container a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}

/* Warning/Info boxes */
.info-box {
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border-left: 4px solid #2196f3;
    padding: 16px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #ffc107;
    padding: 16px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Enhanced button styling */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin: 10px 0;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
    color: white;
    text-decoration: none;
}
