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

:root {
    --border-color: black;
    --bg-neutral-light: #f0f0f0;
    --bg-neutral-dark: #e0e0e0;
    --bg-neutral-hover: #d0d0d0;
    --text-color: white;
    --shadow-color: black;
    --highlight-color: #b0b0b0; /* Neutral grey */
    --sidebar-color: white; /* White for sidebar buttons */
    --polineutral-color: black; /* Black background for Polineutral */
    --footer-text-color: black; /* Black text for footer */
}

body {
    min-height: 100vh;
    padding: 2rem 2rem; /* More top and bottom spacing */
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    background-color: white;
    overflow: hidden;
}

.container {
    max-width: 60rem;
    max-height: 60rem;
    margin: auto;
    border: 2px solid var(--border-color);
    height: calc(100vh - 4rem); /* Account for increased padding */
    display: flex;
    overflow: hidden;
    background-color: white;
    box-shadow: 10px 10px 0 var(--shadow-color);
    border-radius: 12px;
}

.adsense-container {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
}

.adsense-left,
.adsense-right {
    width: 10rem; /* Adjust width as needed */
    background-color: var(--bg-neutral-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 0 10px var(--shadow-color);
    border-radius: 8px;
}

.sidebar {
    width: 8rem;
    display: flex;
    flex-direction: column;
    background-color: #f5f3ed;
    border-right: 2px solid var(--border-color);
    position: relative;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    color: var(--text-color);
    overflow-y: auto; /* Add this to enable vertical scrolling */
}

.introducing {
    background-color: #e3e1db;
    padding: .5rem;
    height: 2.5rem;
    text-align: center;
    position: sticky; /* Make it sticky */
    top: 0; /* Stick to the top */
    z-index: 3; /* Ensure it's on top of other elements */
    font-weight: 900;
    color: black;
    border-top-left-radius: 12px;
    border-bottom: 1px solid var(--border-color); /* Add black line below */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}
.introducing-link {
    background-color: #e3e1db;
    padding: .5rem;
    height: 2.5rem;
    text-align: center;
    position: sticky; /* Make it sticky */
    top: 0; /* Stick to the top */
    z-index: 3; /* Ensure it's on top of other elements */
    font-weight: 900;
    color: black;
    border-top-left-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.introducing:hover {
    background-color: #d6d4cd; /* Slightly darker on hover */
    transform: scale(1.05); /* Small hover effect */
    font-weight: bolder;
}

.introducing:active {
    transform: scale(0.95); /* Press effect */
}


.polineutral {
    background-color: #cfcdc7;
    width: 1.5rem;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    color: black;
    border-left: solid;
    border-radius: 12px;
}

.files {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.5rem;
    position: absolute;
    top: 2.5rem; /* Align below the "Introducing" bar */
    left: 1.5rem; /* Offset to prevent overlap with the blue sidebar */
    width: calc(100% - 1.5rem); /* Adjust width to stay within the sidebar */
}

.file-item {
    display: block;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-neutral-light);
    color: black;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, font-weight 0.2s;
    border-radius: 6px;
}

.file-item:hover {
    background-color: var(--bg-neutral-hover);
}

.file-item.selected {
    background-color: var(--highlight-color);
    color: black;
    font-weight: bold;
}


.main-content {
    background-color: #f2f0ea;
    padding-top: 0rem;
    padding-left: 0rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;

}

.footer {
    padding: 0.5rem;
    border-top: 0px solid var(--border-color);
    background-color: var(--bg-neutral-dark);
    text-align: center;
    position: sticky;
    bottom: 0rem;

    color: var(--footer-text-color);
    box-shadow: -2px -2px 0 var(--shadow-color); /* Fix bottom-right issue */
}

.content {
    background-color: #f2f0ea;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}



.footer-content {
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
}


  #cookie-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    display: none;
    z-index: 1000;
    font-size: 14px;
    text-align: center;
  }

  #cookie-settings {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
  }

  #cookie-settings::after {
    content: "🍪";
    font-size: 24px;
  }

  .cookie-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
  }

  #cookie-settings:hover {
    transform: scale(1.05); /* Small hover effect */
}


  button {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
  }

  #accept-cookies {
    background: #28a745;
    color: white;
  }

  #reject-cookies {
    background: #dc3545;
    color: white;
  }

  /* Optional: Tweak styles on smaller screens */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .container {
        max-width: 100%;
        box-shadow: none; /* remove or reduce shadow for small screens */
        border-radius: 0; /* optional */
    }

    .main-content {
        padding: 1rem;
    }
}
