/* Basic website styles and design for the login and sign-up pages */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    color: #000;
    background-color: #fff;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://images.pexels.com/photos/1640774/pexels-photo-1640774.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2");
    background-size: cover;
    filter: blur(2px) brightness(0.9);
    opacity: 0.5;
    z-index: -1;
}

/* Register form container */
.form-container {
    background-color: #fff;
    opacity: 0.95;
    padding: 30px;
    margin: 60px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.form-container h1 {
    margin-bottom: 20px;
    color: #333;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.form-container form input[type="text"],
.form-container form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.form-container form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 2px #000;
    font-weight: bold;
    transition: background-color 280ms ease-in-out;
}

.form-container form input[type="submit"]:hover {
    background-color: #45a049;
}

.Button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.Button button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 2px 2px 2px #000;
    transition: background-color 280ms ease-in-out;
}

.Button button:hover {
    background-color: #0056b3;
}


/* Error and Success Messages */
.form-container p.error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

.form-container p.success {
    color: green;
    font-size: 14px;
    margin-top: 10px;
}

.register-form p.login-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #333;
}

.register-form p.login-text a {
    color: #007BFF;
    text-decoration: none;
}

.register-form p.login-text a:hover {
    text-decoration: underline;
}

/* Sidebar  */
.sidebar {
    background-color: #4dbf4a;
    width: 220px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.sidebar h2 {
    text-align: center;
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin: 15px 0;
    font-size: 16px;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #ffe600;
}

/* Main content area – recipe posts and search section */

.content {
    margin-left: 240px;  
    padding: 20px;
    text-align: left;
}

#head {
    text-align: left;        
    padding: 20px;
    background-color: transparent !important; 
    margin: 20px 0;        
    border-radius: 0;       
    box-shadow: none;       
}

/* Search Form */
.search-form {
    text-align: left; 
    margin: 20px 0;
}

.search-form input[type="text"],
.search-form textarea,
.search-form select {
    width: 60%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

.search-form input[type="text"]:focus,
.search-form textarea:focus,
.search-form select:focus {
    border-color: #4CAF50;
    outline: none;
}

#container {
    width: 100%;
    max-width: 900px;
    margin: 20px 0 30px 0; 
    padding: 20px;
    background-color: rgba(211, 211, 211, 0.9);
    border: none;
    text-align: left; 
}

.post {
    background-color: rgba(211, 211, 211, 0.9); 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left; 
    box-shadow: none; 
}

.post h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}


.post p {
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
}


.post .author {
    font-size: 14px;
    color: #777;
    text-align: left; 
}
