* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1004ac, #9b59b6);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    overflow: hidden;
    position: relative;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    width: 70px;
    height: 100%;
    background: #333;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: width 0.5s;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 30px;  /* Increased from 20px to 30px */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    display: block;
    align-items: center;
    padding: 10px;
}

nav ul li a i {
    margin-right: 10px;
    display: none;  /* Icons are hidden by default */
}

nav ul li a span {
    display: none;  /* Text is hidden by default */
}

nav ul li a:hover {
    transform: scale(1.2);
}

header:hover {
    width: 200px;  /* Sidebar expands on hover */
}

header:hover nav ul li a i,
header:hover nav ul li a span {
    display: inline;  /* Icons and text are shown on hover */
}

#content {
    z-index: 999;
    max-width: 1200px; /* Increase this value to make the content area wider */
    text-align: center;
    width: calc(100% - 100px);
    height: calc(100vh - 70px);
    position: relative;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
    overflow-y: auto;
}

#content h1,
#content h2,
#content p,
#content a {
    margin-bottom: 40px;  /* Increased from 10px to 20px */
}

a {
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #f4f4f4;
}

body.dimmed {
    background-color: rgba(0, 0, 0, 0.5);
}

header:hover ~ #content {
filter: brightness(50%);
}

.pdf-content {
    padding: 0;
}

.desktop-pdf-view, .fallback-message {
    display: none;
}

.mobile-pdf-download {
    display: block;
}

@media screen and (min-width: 769px) {
    .desktop-pdf-view, .fallback-message {
        display: block;
    }
    .mobile-pdf-download {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    /* For mobile devices: */
    header {
        width: 100%;
        height: 70px;
    }

    header:hover {
        height: 200px;
    }

    #content {
        width: calc(100% - 20px);
        margin-top: 70px;
    }
}

@media only screen and (min-width: 769px) {
    /* For larger screens: */
    header {
        width: 70px;
        height: 100%;
    }

    header:hover {
        width: 200px;
    }

    #content {
        width: calc(100% - 100px);
    }
}
