/* static/css/styles.css */

/* Reset some default styles */
body, h1, p, a {
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: inherit;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Background styles for home, register, and profile pages */
.home-background {
    background: url("/static/img/home_bg.jpg") no-repeat center center;
    background-size: cover;
}

.register-background {
    background: url("/static/img/registration_bg.jpg") no-repeat center center;
    background-size: cover;
}

.profile-background {
    background: url("/static/img/profile_bg.jpg") no-repeat center center;
    background-size: cover;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: white;
    padding: 10px 20px;
    position: relative;
}

.header-left .logo {
    height: 40px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-title {
    font-size: 1.5rem; /* Adjust as needed */
    color: white; /* Ensure sufficient contrast */
}

/* Common button styles */
.button {
    background-color: #1e90ff; /* DodgerBlue color */
    color: #b38600;; /* Ensure sufficient contrast */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid transparent; /* Add border for focus state */
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.button:hover {
    background-color: #1e90ff; /* DodgerBlue color */
}

.button:focus {
    outline: none;
    border-color: #b38600;; /* Visible focus state */
}

.header-right .button {
    margin-left: 10px;
}

/* Get Started button styles */
.get-started {
    background-color: #b38600;; /* Visible focus state */
    color: white; /* Ensure sufficient contrast */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid transparent; /* Add border for focus state */
    display: inline-block;
    text-align: center;
    cursor: pointer;
    margin-top: 20px; /* Add margin to separate from other content */
    width: 100%; /* Full width */
    max-width: 200px; /* Set a maximum width */
}

.get-started:hover {
    background-color: #1e90ff; /* DodgerBlue color */
}

.get-started:focus {
    outline: none;
    border-color: #ffcc00; /* Visible focus state */
}

/* Main content styles */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px); /* Adjust height to fill the viewport minus header and footer */
    padding: 20px;
    margin: 0; /* Remove margin to avoid whitespace */
}

.main-content {
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 500px; /* Limit the width of the form */
}

/* Home page content styles */
.home-content {
    text-align: center;
    color: white; /* Ensure text is readable */
}

.home-content .main-title,
.home-content .subtext {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add subtle text shadow for readability */
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    color: rgb(244, 250, 74); /* Ensure text is readable */
}

/* Register page content styles */
.register-content {
    text-align: left; /* Left-align the form fields and instructions */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add a subtle shadow for better visibility */
    padding: 20px;
    border-radius: 10px;
}

.register-content label {
    color: rgba(244, 250, 74, 0.691); /* Match the color of the home page's subtext section */
}

.register-content .main-title {
    text-align: center; /* Center the title */
    margin-bottom: 20px;
    font-size: 2rem; /* Use relative units */
    color: rgb(244, 250, 74); /* Ensure text is readable */
}

.register-content .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.register-content .form-group input {
    width: 100%; /* Ensure input boxes are aligned */
    max-width: 300px; /* Set a maximum width */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.register-content .form-group .get-started {
    margin: 20px auto 0; /* Center the button and add margin */
}


/* Login page content styles */
.login-content {
    text-align: left; /* Left-align the form fields and instructions */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add a subtle shadow for better visibility */
    padding: 20px;
    border-radius: 10px;
}

.login-content label {
    color: rgba(244, 250, 74, 0.691); /* Match the color of the home page's subtext section */
}

.login-content .main-title {
    text-align: center; /* Center the title */
    margin-bottom: 20px;
    font-size: 2rem; /* Use relative units */
    color: rgb(244, 250, 74); /* Ensure text is readable */
}

.login-content .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.login-content .form-group input {
    width: 100%; /* Ensure input boxes are aligned */
    max-width: 300px; /* Set a maximum width */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.login-content .form-group .get-started {
    margin: 20px auto 0; /* Center the button and add margin */
}


/* Profile page content styles */
.profile-content {
    text-align: left; /* Left-align the content */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add a subtle shadow for better visibility */
    padding: 20px;
    border-radius: 10px;
}

.profile-content .main-title {
    text-align: center; /* Center the title */
    margin-bottom: 20px;
    font-size: 2rem; /* Use relative units */
    color: rgb(244, 250, 74); /* Ensure text is readable */
}


/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 80px; /* Adjust based on header height */
    left: 0;
    width: 200px;
    height: calc(100vh - 80px); /* Adjust based on header height */
    background-color: #333;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #b38600;
    color: #000;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
}

.sidebar .button:hover {
    background-color: #FFC700;
}

/* Subtext styles */
.subtext {
    margin-bottom: 20px;
    font-size: 1.2rem; /* Use relative units */
    color: rgba(244, 250, 74, 0.691); /* Ensure text is readable */
}

/* Tooltip styles */
.tooltip {
    display: none;
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 10;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Error message styles */
.error {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.profile-footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}