/* Basic reset for margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%; /* Ensures the image does not exceed its container */
    height: auto; /* Maintain the aspect ratio */
    display: block; /* Removes extra spacing */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #c7b0f6;
    margin: 0;
    padding: 20px;
}

/* Title container styling */
.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    color: #384f09;
}

h1 {
    color: #384f09;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: #384f09;
    margin-bottom: 20px;
    text-align: center;
}

p {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.poem{
    text-align: left;
}

/* Navigation styling */
nav {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    margin-bottom: 20px;
}

nav a {
    text-decoration: none;
    color: #384f09;
    margin-right: 10px;
}

nav a:hover {
    color: #384f09;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropimg {
    width: 40px;
    height: auto;
    cursor: pointer;
    border: 5px solid #384f09;
    border-radius: 50%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content.show {
    display: block;
}

/* Big Red Button styling */
.big-red-button {
    background-color: #184a2c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.big-red-button:hover {
    background-color: darkred;
}

/* Typing effect container */
.typing-container {
    font-size: 24px;
}

#cursor {
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Scrapbook styles */
.scrapbook {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.photo-frame {
    width: 250px;
    height: 250px;
    background-color: white;
    padding: 3px;
    border: 3px solid #ccc;
    border-radius: 3px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the frame while maintaining aspect ratio */
}

.photo-frame:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    margin-top: 30px;
    font-size: 0.9em;
    color: #777;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    border: 5px solid #fff;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.lightbox-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}

.prev, .next {
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}
