/* Reset body for navbar-specific rules */
body {
    background: url("../images/background.png") center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* Make textareas resizable */
textarea {
    resize: both;
}

/* Make the room prompt text area resizable the text box should be a light grey background */
#prompt-text {
    resize: both;
    overflow: auto;
    min-height: 150px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: gainsboro; !important;/* Light grey background */
}

/* Specific styling for the navbar */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;  /* Full width for the navbar */
    background-color: #343a40;  /* Dark background */
    z-index: 2;  /* Make sure it's on top of other elements */
}

/* Aligning the navbar links to the right */
.navbar-nav {
    margin-left: auto;
}

/* Navbar link colors */
.navbar-nav .nav-link {
    color: white !important;
}

/* Customizing the navbar-toggler button */
.navbar-toggler {
    border-color: white;  /* White border for the hamburger icon */
}

/* Custom hamburger icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Additional styles for mobile view */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #343a40; /* Background for collapsed menu */
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 10px 0;
    }
}

#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px; /* Adjust based on navbar height */
}

/*Login_button*/
.login-button {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Login Container */
/* center this container horizontally and vertically */
.login-container, .register-container {

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);


    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 400px;
    z-index: 1;
}

.login-container h2, .register-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.success-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.success-container h1 {
    margin-bottom: 20px;
}

.success-container p {
    margin-top: 20px;
}

.success-container a {
    color: #007bff;
    text-decoration: none;
}

.success-container a:hover {
    text-decoration: underline;
}

.form-group button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.form-group button:hover {
    background-color: #0056b3;
}

/* Background */
#back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    z-index: -1;
}

#back .back-container {
    position: absolute;
    top: -600px;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 15px;
    z-index: -1;
    color: #fff
}

#back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

#back h1 {
    margin: 0 0 10px 0;
    font-size: 48px;
    font-weight: 600;
    line-height: 56px;
    color: #2e242c;
}

#back h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.btn:disabled,
.btn[disabled] {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 0.65;
}
