/* Page Layout */
body {
    background-color: black;
    margin: 0;
    padding: 0;
}

.background_img {
    background-image: url("../images/digital-library.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh; 
    width: 100vw;  
    margin: 0;
    padding: 0;
}

.background_img2 {
    background-image: url("../images/under_construction.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh; 
    width: 100vw;  
    margin: 0;
    padding: 0;
}

.main_content {
    margin-left: 120px;
    padding: 0px 10px;
    padding-top: 60px;
    color: whitesmoke;
}

/* Form Layout */
.submit_btn {
    text-align: center;
    margin-top: 15px;
    font-family: 'Times New Roman', Times, serif;
}

input {
    margin-top: 15px;
    margin-left: 200px;
}

.name {
    margin-left: 10px;
}

/* Score Popup */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #4584b6;
    font-family: 'Times New Roman', Times, serif;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: black;
}

/* Table Layout */
table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    text-align: left;
    border: 1px solid #444;
}

tr {
    background-color: #646464;
}

th {
    background-color: #202020;
    color: #fff;
    text-align: center;
}

/* Image Sizing*/
img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.django_img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 25%;
}

/* Headings Fonts & Styling */
h1 {
    text-align: center;
    font-weight: bolder;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 50px;
}

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 80px;
}

/* Top Navigation Bar */
.topnav {
    display: flex;
    background-color: #202020;
    padding: 10px;
    position: fixed;
    margin-left: 100px;
    width: calc(100% - 100px);
  /*  z-index: 1000; */ 
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    background-color: #04AA6D;
    color: white;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background-color: transparent;
    border: none;
    color: #f2f2f2;
    font-size: 17px;
    text-align: left;
    padding: 6px 8px 6px 16px;
    width: 100%;
    cursor: pointer;
    display: block;
}

.dropdown-btn:hover {
    background-color: #ddd;
    color: black;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    max-width: 500px;
    min-width: 300px;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #2a2a2a;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: #f2f2f2;
    padding: 5px;
    gap: 5px;
    display: none;
}

.dropdown-content a {
    display: block;
    padding: 4px 6px;
    text-decoration: none;
    font-size: 14px;
    color: #f2f2f2;
    width: 100%;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #444;
}

.dropdown:hover .dropdown-content {
    display: grid;
    flex-direction: column;
}

.topnav .icon {
    display: none;
}

.topnav .search-container {
    flex-grow: 1; 
    display: flex;
    justify-content: flex-end;
}

.topnav input[type=text] {
    float: right;
    padding: 6px;
    border: none;
    margin-top: 8px;
    margin-right: 16px;
    font-size: 17px;
}

/* Side Navigation Bar */
.sidebar {
    height: auto;
    width: 120px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #202020;
    overflow-x: hidden;
    padding-top: 20px;
}

.sidebar a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 17px;
    color: #f2f2f2;
    display: block;
}

.sidebar a:hover {
    background-color: #ddd;
    color: black;
}

/* --- Python Styling ---- */

.python_heading1 {
    text-align: center;
    color: #646464;
}

.python_heading2 {
    text-align: center;
    color: #4584b6;
}

.python_heading3 {
    margin-left: 150px;
    color: #ffde57;
}

.python_heading4 {
    margin-left: 250px;
    color: #4584b6;
}

.python_heading5 {
    margin-left: 80px;
    color: white;
}

.python_highlight {
    color: #4584b6;
    font-weight: bold;
}

.python_highlight_return {
    color: #ffde57;
    font-weight: bold;
}

.python_highlight_important {
    color: #ff2800;
    font-weight: bold;
}

.python_highlight_helpful {
    color: #04AA6D;
    font-weight: bold;
}

.python_highlight_special {
    color: palevioletred;
    font-weight: bold;
}

.python_comments {
    color: green;
    font-weight: bold;
}

@media screen and (max-height: 450px) {
    .python_sidebar {
        padding-top: 15px;
    }

    .python_sidebar a {
        font-size: 18px;
    }
}
.python_heading_mini {
    color: #ffde57;
}


/* --- HTML 5 Styling ---- */

.html_heading1 {
    text-align: center;
    color: #ebebeb ;
}

.html_heading2 {
    text-align: center;
    color: #e34c26;
}

.html_heading3 {
    margin-left: 150px;
    color: #f06529;
}

.html_heading4 {
    margin-left: 250px;
    color: #848B98 ;
}

.html_highlight {
    color: #0000FF;
    font-weight: bold;
}

.html_highlight2 {
    color: purple;
    font-weight: bold;
}

.html_highlight_important {
    color: #ff0000;
    font-weight: bold;
}

.html_highlight_helpful {
    color: #00ff00;
    font-weight: bold;
}