html, body, head, footer {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    
    background-color:#3422a5;
    min-height: 100vh;
    height: auto;
}

h1, h2, h3, label, p, li, span { /* Resets the text elements (EXCEPT H4) */
    color: white;
    font-family: Gudea, sans-serif;
    margin: 0;
    margin-block: 0;
    margin-inline: 0;
    padding: 0;
}

#page_header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.5em 1em;
    background-color: #0E0E52;
}

#page_header button {
    display: block;

    font-size: 1.5rem;
    width: 6rem;
    height: auto;
    margin: 0.5em 0;
}

#page_header img {
    width: 6vw;
}

/* Pre-defined sizes for each type of font (we need to discuss) */
h1 { 
    font-size: 5rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: thin;
}

p, label, li, span {
    font-size: 1rem;
}

main { /*base area (the middle rectangle) */
    /* OLD
    background-color: #150578;
    margin: 0em 5em;
    padding: 2em; */
    display:grid;
    min-height: 1vh;
    grid-template-columns: 1fr 5fr; /* Use when having the Topics side bar OTHERWISE OVERRIDE*/
    height: auto;
    flex-grow: 1;
}

footer { /* creates footer style */
    background-color: #0E0E52;
    height: 5em;
    flex-shrink: 0;
    margin-top:auto;
}

button { /* base button settings (do adjust per button as buttons change base on their use/position) */
    background-color: #FB8B24;
    color: white;
    border-radius: 1em;
    border: 0px;
    font-weight: bold;

    height: auto;
    /* max-height: 2em;
    width: 20em;
    max-width: 100%; */

    font-size: 1.2em;
    padding: 0.25em 0.5em;
}

button:hover {
    background-color: #aa0000;
    cursor: pointer;
}

button.delete {
    background-color: red;
}

button:hover {
    cursor: pointer;
}

img { /* this creates the circular image style for the profile image in the top right corner */
    width: 5vw; /* 20% of the viewport width */
    max-width: 200px; /* Prevents it from getting too big */
    height: auto; /* Maintains aspect ratio */
    aspect-ratio: 1 / 1; /* Ensures it stays square */
    border-radius: 50%;
    object-fit: cover;
    
}

input, textarea {
    display: block;
    border-radius: 3em;
    border: none;
    width: 80%;
    margin: 0 1em;
    height: 1em;
    padding: 1em;
}

/* Confirmation Pop-up Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
}


.popup-content {
    background-color: white;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px; /* Fixed width for the pop-up */
}

.popup-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    color:black;
}

.popup-content textarea {
    border: 1px gray solid;
}

.popup-buttons {
    display: flex;
    justify-content: space-between;
}

.popup-buttons button {
    padding: 0.5em 1em;
    font-size: 1rem;
    border-radius: 2em;
    border: none;
    cursor: pointer;
}

#confirmButton {
    background-color: #3422a5; /* Match your site's theme */
    color: white;
}

#cancelButton {
    background-color: #f4f4f4; /* Light gray for cancel */
    color: #333;
}

#cancelButton:hover {
    background-color: #ddd; /* Hover effect for cancel */
}

.topicMenu {
    background-color:#150578;
    padding: 2em;
}

.topicMenu p {
    margin: 1em 0;
    font-size: 1.2rem;
    text-align: center;
}

.contentMenu {
    padding: 2em;
}

li {
    margin: 1em 1em;
}

ul {
    list-style-type: none; /* Removes the bullet points */
    padding-left: 0; /* Removes default padding */
}

#user_profile {
    display: flex;
    align-items: center;
}

#user_profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

#user_profile button {
    margin: 0.25em 0.5em;
    padding: 0.5em 1em;
    font-size: 1rem;
    border-radius: 2em;
    color: white;
    border: none;
    cursor: pointer;
}