body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
}

header, footer {
    background-color: #3211A6;
    color: white;
    text-align: center;
    padding: 1em 0;
}

header {
    display: flex;
    align-content: center;
    justify-content: center;
}

header nav ul {
    list-style-type: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 .25em;
}

header nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    flex: 1;
    padding: 2em;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

form {
    margin: 0 auto;
    padding: 1em;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

label, select, input, button, textarea {
    display: block;
    width: 100%;
    margin: 0.5em 0;
    padding: 0.5em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
}

input:focus, select:focus, textarea:focus, button:focus {
    outline: none;
    border-color: #3211A6;
    box-shadow: 0 0 5px rgba(50, 17, 166, 0.5);
}

button {
    background-color: #3211A6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 0.75em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #27108d;
}

#result {
    margin-top: 1em;
    padding: 1em;
    background: #e0f7fa;
    border: 1px solid #00796b;
    border-radius: 10px;
    margin: 1em auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #3211A6;
}

/* center nav  */
nav {
    margin: 0 auto;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.headdiv {
    display: flex;
    align-items: center;
    background-color: #3211A6;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.headdiv .openbtn {
    font-size: 16px;  /* Smaller font size */
    cursor: pointer;
    background-color: #111;
    color: white;
    border: none;
    border-radius: 5px;
    width: 50px;
    margin: auto;
}

.headdiv .openbtn:hover {
    background-color: #444;
}

.headdiv h1 {
    margin: 0;
    font-size: 1.5em;
    text-align: center;
}


/* Sidebar styling */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #3211A6;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    /* background color transparent; */
    background-color: #00000000;
}


@media screen and (max-height: 450px) {
    .sidebar {
        padding-top: 15px;
    }
    .sidebar a {
        font-size: 18px;
    }
}

/* hide openbtn on desktop */
@media screen and (min-width: 800px) {
    .openbtn {
        display: none;
    }
}

/* Hide regular nav on mobile */
@media screen and (max-width: 800px) {
    nav ul {
        display: none;
    }

    .openbtn {
        display: block;
    }

    .headdiv {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
}

.content {
    margin: 0 auto;
    text-align: left;
}

/* style for listing */

ul {
    list-style-type: none;
    padding: 0;
}

ol {
    list-style-type: decimal;
    padding: 0;
    padding-left: 1em;
}

li {
    margin: 0.5em 0;
    padding: 0.1em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

.breadcrumb-item {
    margin-right: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}
