@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');

/* General Layout Styles for Guestbook */
body.guestbook-layout {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #27d1d1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: block;
    background-color: rgb(125, 81, 230);
    color: white;
    padding: 10px;
    text-align: center;
}

.transitional-header h1 {
    font-family: 'Dancing Script','Raleway', sans-serif;
    font-size: 60px;
    color: white;
    text-align: center;
    opacity: 0.25;
    transform: translateY(-20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.transitional-header.scrolled h1 {
    opacity: 1;
    transform: translateY(0);
}

.navigation-menu ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.navigation-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.navigation-menu ul li a:hover {
    color: #ffdd57;
}


.container {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px; /* Added gap between main and sidebar */
}

/* Main area */
main {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9; /* Added background color */
    border-radius: 8px;        /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
}

main h2 {
    font-family: 'Dancing Script';
    font-size: 50px;
    text-align: center;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    background-color: #fff;  /* White background for the form */
    padding: 20px;
    border: 1px solid #ddd;  /* Border for section feel */
    border-radius: 8px;      /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for section feel */
}

form label {
    margin-top: 10px;
    font-weight: bold; /* Make labels stand out */
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button[type="submit"] {
    background-color: #ffdd57;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: rgb(125, 81, 230);
}

.required {
    color: red;
}



/* RIGHT SIDE SEARCH BAR AREA */
/* This contains the styles for the SEARCH BAR, the POEM Menu */

.right-side-search {
    width: 25%;
    background-color: white; /* Background to define space */
    border: 1px solid #ddd;     /* Border to match form styling */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for floating issue */
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.right-side-search h3 {
    text-align: center;
    padding: 10px;
    margin: 10px;
}

#mySearch {
    font-size: 1.1em;
    padding: 8px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;

}

/* Search Results List Styling */
#myMenu {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

#myMenu li {
    padding: 5px 0;
}

#myMenu li a {
    color: #27d1d1;
    text-decoration: none;
}

#myMenu li a:hover {
    text-decoration: underline;
    color: rgb(125, 81, 230); /* Hover effect for search results */
}

#poem-count {
    text-align: center;
    padding: 20px;
}

#count {
    font-size: 24px;
    font-weight: bold;
  }
  

.ads {
    margin-top: 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: rgb(125, 81, 230);
    color: white;
    text-align: center;
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .right-side-search {
        width: 100%;
        padding: 10px;
    }
}
