/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.35;
}

/* General styling */
/* Center the container */
body {
    font-family: 'Courier New', Courier, monospace;
    background-color: rgb(30, 30, 30);
    color: azure;
    display: flex; /* Flexbox layout for the body */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100vh; /* Full viewport height */
    margin: 0; /* Remove default margin */
}

/* Container styling */
.container {
    padding: 20px; /* Add some padding */
    border-radius: 10px; /* Optional: Rounded corners */
    text-align: center; /* Center align text and content inside */
}

#canvas{
    display:none;
}


/* Navigation styling */
.about-nav {
    position: absolute;
    top: 25px;
    left: 20px;
    padding:-20%;
}
.about-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.about-nav ul li {
    display: inline;
}
.about-nav ul li a {
    text-decoration: none;
    padding: 10px 15px;
    background-color: rgb(30, 30, 30);
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.about-nav ul li a:hover {
    text-decoration: underline;
}

/* Overlays */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.869);
    z-index: 1000; 
}

.overlay2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.979);
    z-index: 1000; 
}

.overlay-content {
    position: absolute;
    text-align: left;
    width: 40%;
    color: white;
    padding: 30px;
    border-radius: 10px;
    overflow-y: scroll; /* Enable vertical scrolling */
    max-height: 100vh; /* Limit the height to allow scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.overlay-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for WebKit browsers */
}

.overlay-content h2 {
    margin-bottom: 20px;
}

.overlay-content2 h2 {
    margin-bottom: 20px;
    font-weight: lighter;
}
.overlay-content img {
    width:100%;
    height:auto;
    margin-bottom: 20px;
}

.row{
    display: flex;
    gap:10px;
}
.row img{
    width:20%;
    height:auto;
}
img {
    width:50%;
    height:auto;
   padding-top: 10px;
   padding-bottom: 30px;
}

.overlay-content #poemOutputDisplay {
   position: absolute;
    text-align: left;
    width: 40%;
    color: white;
    padding: 30px;
    border-radius: 10px;
    overflow-y: scroll; /* Enable vertical scrolling */
    max-height: 100vh; /* Limit the height to allow scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.overlay-content2 {
    position: fixed; /* Fix the position relative to the viewport */
    text-align: center;
    width: 40%;
    color: rgb(0, 0, 0);
    padding: 30px;
    overflow-y: scroll; /* Enable vertical scrolling */
    max-height: 100vh; /* Limit the height to allow scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    top: 50%; /* Position the element in the vertical center */
    left: 50%; /* Position the element in the horizontal center */
    transform: translate(-50%, -50%); /* Adjust position to truly center */
}

.overlay-content2::-webkit-scrollbar {
    display: none; /* Hide scrollbar for WebKit browsers */
}

.close-btn {
    background-color: #ff4d4d00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.close-btn:hover {
    background-color: #cc000000;
}

/* Buttons and Inputs */
textarea, input[type="file"] {
    font-size: 1em;
    padding: 8px;
    margin: 10px 0;
    background-color: rgb(255, 255, 255);
    color: white;
    border: 1px solid #555;
    width: 100%;
    color: black;
}

button {
    font-size: 1em;
    padding: 10px 15px;
    color: white;
    background-color: rgb(40, 40, 40);
    border: 1px solid #555;
    cursor: pointer;
}
button:hover {
    background-color: rgb(60, 60, 60);
}


/* Header styling */
h1 {
    font-size: 1.5em;
    font-weight: lighter;
    margin-bottom: 20px;
    
}

h4{
    padding-bottom: 1em;
}

p{
    padding-bottom: 1em;
}