/* Importing a handwriting font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

body {
    font-family: Arial, sans-serif;
    background: rgba(134, 134, 165, 0.2)
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%239C92AC" fill-opacity="0.8" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E');
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    position: -webkit-sticky;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #4e0281;
    color: #fff;
    box-shadow: 0 2px 5px rgba(20, 6, 148, 0.1);
    position: relative;
    z-index: 2;
}

header h1 {
    margin: 0;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
}

#burger-menu {
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: block;
    transition: color 0.3s ease;
    z-index: 3;
}

#burger-menu:hover {
    color: #ddd;
}

.main-body {
    display: grid;
    grid-template-columns: minmax(300px, auto) 1fr;
    grid-template-areas: "navbar mainContent";
    grid-gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

nav#navbar {
    grid-area: navbar;
    position: fixed;
    background-color: #fcfcfc;
    color: #fff;
    width: 250px;
    height: 70vh;
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1;
    left: -250px;
}

nav#navbar.active {
    left: 0;
}

nav#navbar a {
    display: block;
    border: 1px solid #948c8c;
    padding: 12px;
    margin: 10px 0;
    text-decoration: none;
    color: #fff;
    background-color: #910873;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

nav#navbar a:hover {
    background-color: #10e01b;
    border-color: #3009dd;
}

main#main-doc {
    grid-area: mainContent;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: relative;
    margin-left: 30px;
    background: linear-gradient(white 20px, transparent 20px) repeat-y,
                linear-gradient(to right, #ccc 30px, transparent 30px);
    background-size: 100% 20px, 40px 100%;
    padding-left: 40px;
    z-index: 0;
    font-family: 'Patrick Hand';
    font-size: 20px;
}

code {
    background-color: #f5f5f5;
    display: block;
    padding: 20px;
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    margin-bottom: 20px;
}

.line-number {
    position: absolute;
    left: 0;
    width: 30px;
    text-align: right;
    padding-right: 10px;
    color: #ce0606;
    font-family: 'Patrick Hand', cursive;
}

@media (max-width: 768px) {
    nav#navbar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1;
    }

    nav#navbar.active {
        left: 0;
    }

    .main-body {
        grid-template-columns: 1fr;
        grid-template-areas: "mainContent";
    }

    main#main-doc {
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    #burger-menu {
        display: block;
    }
}

/* Scroll to top button */
#scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    width: 50px;
    height: 50px;
    background-color: #4e0281;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    text-align: center;
    line-height: 50px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#scroll-to-top:hover {
    background-color: #910873;
    transform: translateY(-5px);
}

/* Button Styles */
.dynamic-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    font-size: 24px;
    background: linear-gradient(45deg, #910873, #f330c9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    overflow: hidden;
    width: 40px;
    height: 35px;
    right: 0;
    top: 100px;
}

.dynamic-button i {
    font-size: 24px;
    color: #fff;
}

.dynamic-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.5s;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 0;
}

.dynamic-button:hover::before {
    transform: translate(-50%, -50%) scale(0.5);
}

.dynamic-button:hover {
    background: linear-gradient(45deg, #380374, #601dfc);
    transform: scale(1.1);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.dynamic-button:active {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(98, 0, 255, 0.1);
}

.dynamic-button:focus {
    outline: none;
}









button{
    border:none;
    background-color:offwhite;
    
    
    text-transform:capitalize;
    cursor:pointer;
    transform:all 0.3s;
    position:relative;
  }
  button:before{
    content:"";
    position :absolute;
    width:24px;
    height:24px;
    top:-5px;
      left:-5px;
    border-top:2px solid #e921be;
    border-left:2px solid #e921be;
    transition:all 0.25s;
  }
  button:hover:before ,button:hover:after{
    width:104%;
    height:110%;
  }
  button:after{
    content:"";
    position :absolute;
    width:24px;
    height:24px;
    bottom:-5px;
      right:-5px;
    border-bottom:2px solid #e921be;
    border-right:2px solid #e921be;
    transition:all 0.30s;
  }



/* Paper Roll Styles */
.paper-roll {
    width: 20%;
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 2s ease-out, transform 2s ease-out;
    transform-origin: top;
    position: fixed;
    bottom: 10px;
    left: 6%;
    z-index: -1;
    padding: 10px;
    opacity: 1;
}

.paper-roll.open {
    max-height: 400px; /* Adjust height as needed */
    animation: rollOpen 2s ease-out forwards;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes rollOpen {
    0% {
        transform: scaleY(0);
        border-radius: 10px;
    }
    100% {
        transform: scaleY(1);
    }
}

.paper-content {
    padding: 20px;
    overflow: hidden;
}

.roller {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background-color: #910873;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-roller {
    top: -20px;
}

.bottom-roller {
    bottom: -20px;
}

.paper-roll::before, .paper-roll::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    background-color: #910873;
    border-radius: 5px;
}

.paper-roll::before {
    top: -10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.paper-roll::after {
    bottom: -10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Icon Colors */
.icon-on {
    color: #fcd34d; /* Yellow */
}

.icon-off {
    color: #000; /* White */
}
