/* General styles for the top navigation */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    position: relative; 
}

.dropdown-links{
    font-size: large;
    display: flex;
    align-items: center;
}

/* Style for the navigation links */
.topnav a {
    color: black;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.user-icon {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    padding-right: 0px;
}
.user-section {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 12px;
    text-align: left;
}
.user-section:hover .dropdown-content {
    display: block;
}
.dropdown-content p {
    margin: 0;
    color: black;
}

.dropdown-content button {
    margin-top: 10px;
    width: 100%;
}            
.topnav a:hover {
    background-color: #ddd;
    color: #333;
}

/* Styles for username tag */
#username_tag {
    color: black;
    margin-right: 10px;
}

/* Styles for the logout button */
#logoutButton {
    padding: 6px 12px;
    color: #f2f2f2;
    background-color: #f44336; /* red */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#logoutButton:hover {
    background-color: #d32f2f; /* dark red */
}


.user-section {
    display: flex;
    align-items: right;
}
.nav-links {
    display: flex;
    align-items: right;
}

/* Emoji logo styles */
.app-icon {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    padding-left: 0px;
}



/* Style the buttons */
.Like-button {
    padding: 10px;
    background-color: #007bff; /* Button background color */
    color: #fff; /* Button text color */
    border: 1px solid transparent; /* Remove default button border */
    border-radius: 6px; /* Add some border radius for a rounded look */
    cursor: pointer; /* Change cursor to pointer on hover */
    min-width: 100px; /* Set a minimum width for buttons */
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto; 
}
/* Style the buttons */
.Unlike-button {
    padding: 10px;
    background-color: #FFF; /* Button background color */
    color: #007bff; /* Button text color */
    border: 1px solid #007bff; /* Remove default button border */
    border-radius: 6px; /* Add some border radius for a rounded look */
    cursor: pointer; /* Change cursor to pointer on hover */
    min-width: 100px; /* Set a minimum width for buttons */
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto; 
    
}

/* Style the form to fill the width horizontally */
.recipe-form {
    width: 100%;
    max-width: 500px; /* Adjust the maximum width as needed */
    margin: 0 auto; /* Center the form horizontally */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
}

/* Create a div to contain the buttons */
.button-container {
    display: flex;
    justify-content: space-between; /* Distribute buttons evenly */
    align-items: center; /* Center buttons vertically */
    flex-wrap: wrap; /* Allow buttons to wrap to a new line if necessary */
    margin-top: 20px; /* Add spacing between the buttons and other elements */
}

/* Style the buttons */
.recipe-form button {
    padding: 10px;
    background-color: #007bff; /* Button background color */
    color: #fff; /* Button text color */
    border: none; /* Remove default button border */
    border-radius: 6px; /* Add some border radius for a rounded look */
    cursor: pointer; /* Change cursor to pointer on hover */
    min-width: 100px; /* Set a minimum width for buttons */
    margin-right: 10px; /* Add spacing between buttons */
    margin-bottom: 10px;
}

/* Remove margin-right for the last button to avoid extra spacing */
.recipe-form button:last-child {
    margin-right: 0;
}

/* Hover effect for buttons */
.recipe-form button:hover {
    background-color: #0056b3; /* Darker background color on hover */
}
.topnav a:hover {
    color: rgba(0, 0, 0, 0.586);
}
/* Style for the recipe containers */
.recipe-card {
    border-radius: 15px;
    border: 2px solid pink;
    background-color: white; /* Orange color */
    box-shadow: 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto; /* Center horizontally */
    width: 50%; /* Take up 50% of screen width */
    position: relative; /* Required for button positioning */

}

.recipe-name {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.recipe-desc {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #666;
    white-space: pre-line; /* Allow text to wrap */
    margin-bottom: 10px;
}

/* Additional styles for the body or other elements if needed */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
}

/* General styles for the login container */
.login-container {
    width: 400px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 50px auto;
    font-family: Arial, sans-serif;
}

/* Styles for the input fields */
.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 5px;
    font-size: 16px;
 }

.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
    border-color: #007BFF;
}


/* Style the buttons */
.login-container button {
    background-color: #007bff; /* Button background color */
    color: #fff; /* Button text color */
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
}

/* Remove margin-right for the last button to avoid extra spacing */
.login-container button:last-child {
    margin-bottom: 0;
}

/* Hover effect for buttons */
.login-container button:hover {
    background-color: #0056b3; /* Darker background color on hover */
}

#error-message {
    color: red;           /* Red text color for error messages */
    
}

#loading {
    text-align: center;     /* Centers inline or inline-block elements horizontally */
    width: 100%;            /* Full width of the parent container */
}

#loading img {
    width: 88px;                 /* Width of the image */
    height: 58px;                /* Height of the image */
    display: inline-block;  /* Makes the image an inline-block element */
    margin: 0 auto;         /* Centers the image in the div */
}

.header{
    font-size: x-large;
}

@media screen and (max-width: 800px) {
    .recipe-form button:last-child{
        margin-right:10px;
    }

    .recipe-card{
        width: 80%;
    }

    .login-container {
        width: 70%; 
    }

    .header{
        font-size: x-large;
    }

    .dropdown-links {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        background-color: #f9f9f9;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
        padding: 12px;
        text-align: left;
    }
    .nav-links:hover .dropdown-links {
        display: block;
    }
    .nav-links {
        position: relative;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .nav-links a{
        padding: 0;
        display: inline-block;
        text-decoration: none;
        white-space: nowrap; /* Prevents breaking of text inside each link */
    }
    .nav-links a:last-child {
        margin-right: 0;
    }

    .dropdown-links a:last-child{
        margin-top: 5px;
    }
}