/* Reset some default styles in the browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--light-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the top */
    align-items: center; /* Centers content horizontally */
    background-color: var(--dark-background);
    color: var(--dark-text);
    overflow-x: hidden;
}


main { /* assuming your main content is wrapped in a <main> element */
    flex: 1 0 auto;
    width: 100%;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 0px;
    /* any other styles you have for the main content */
}


header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--header-footer-text);
    padding: 5px;
    margin: 5px;
    text-align: center;
    background-color: var(--dark-background);
}


header h1 {
    margin: 0;
    padding-bottom: 10px;
    font-size: 2.5em;
    color: var(--primary-color);
}

header p {
    margin: 0;
    font-size: 1.2em;
    color: var(--light-text);
}

.no-style {
    text-decoration: none;
}

:root {
    /* existing variables */

    --header-footer-text: #ff0000;
    --dark-background: #1a1d22;
    --dark-background-card: #000000;
    --dark-text: #abb2bf;
    --dark-header-footer-bg: #282c34;
    --dark-header-footer-bg2: #293346;
    --dark-header-footer-text: #abb2bf;
    --primary-color: #61dafb;

    /* new variables */

    --selected-text: #282c34;
    --light-background: #f5f5f5;
    --light-text: #999;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;

    --lieutenant: #440c3b;
}

.topinfo a {
    color: var(--primary-color);  /* Change the text color */
    text-decoration: none;  /* Remove the underline */;
}

.topinfo a:hover {
    text-decoration: underline;  /* Add an underline on hover */
}


/* CSS */
.topinfo {
  padding: 6px;
  margin: 6px auto; /* center the element horizontally */
  border-radius: 5px;
  background-color: var(--dark-background);
  color: var(--dark-text);
  text-align: center;
  max-width: 1024px;
  align-items: center;
  border: 1px solid #fff; /* corrected border property */
}


#images-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Card styles */
.image-card {
    border-radius: 5px;
    overflow: hidden;
    margin: 3rem auto; 
    max-width: 1024px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: var(--dark-background-card);
    color: var(--light-text);
}


.image-card img {
    max-width: 100%;  /* Prevents the image from growing beyond the width of the parent */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Images are inline by default, this will make it a block element */
    margin: auto; /* Centers the image in the parent container */
    object-fit: contain;

}


.image-card .card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-background-card);
    color: var(--light-text);
}


.image-card:hover {
    transform: scale(1.0);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}



.image-card .card-content {
    margin-bottom: 1rem; /* Adjusts spacing between the prompt and the favorite heart icon */
}

.prompt {
    margin-left: .5rem;
    margin-right: .5rem;
    margin-bottom: .5rem;
    font-size: 0.9rem;
}



.image-card .card-content .favorite {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    font-size: 1.2rem; /* Adjusts the size of the favorite heart icon and count */
}

.image-card .card-content .favorite i {
    color: var(--light-text); /* the color of the heart icon */
    cursor: pointer; /* change the cursor to a hand when hovering over the heart icon */
    margin-right: 0.5rem; /* add some space between the icon and the count */
}

.image-card .card-content .favorite i:hover {
    color: red; /* change the color of the heart when hovered */
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}

.pagination-link {
    color: #b3b3b3;
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: #ddd;
    color:#333;
}

/* Media Query for mobile devices */
@media (max-width: 768px) {
    .image-card {
        width: 100%;
    }
 
    #about-page {
        max-width: 748px;
    }

    header h1 {
        margin: 0;
        padding-bottom: 10px;
        font-size: 2.0em;
        color: var(--primary-color);
    }

    html, body {
        font-size: 16px; /* adjust base font size for mobile readability */
    }
    
    main {
        min-width: 0;
        padding: 5px; /* reduce padding on mobile */
    }

    header {
        padding: 5px;
        margin: 5px;
    }
    .nav-content {
        flex-direction: column;
        align-items: start;
    }

    .nav-content h3 {
        margin-bottom: 2vw; /* Adjust this to a value that suits your layout */
    }

    nav ul li {
        margin-right: .5vw; /* Adjust this to a value that suits your layout */
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        width: 100%;
        max-width: 1200px;
    }
}
/* This will ensure the image fits its container */
#about-image {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 0 auto;  /* This will center it horizontally */
}

/* Assuming the image's container has an id or class, this is how you'd use Flexbox to center it both horizontally and vertically */
#image-container {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center;     /* Vertical centering */
    height: 100%;            /* Assuming you want the container to fill its parent's height */
    margin-top: 10px;
    margin-bottom: 10px;
}




/* Media Query for mobile devices */
@media screen and (max-width: 1024px) {
    .image-card {
        width: 100%;
    }
 
    html, body {
        font-size: 16px; /* adjust base font size for mobile readability */
    }
    
    main {
        min-width: 0;
        padding: 5px; /* reduce padding on mobile */
    }
    
    #about-page {
        max-width: 748px;
    }

    header {
        padding: 5px;
        margin: 5px;
    }
    .nav-content {
        flex-direction: column;
        align-items: start;
    }

    .nav-content h3 {
        margin-bottom: 2vw; /* Adjust this to a value that suits your layout */
    }

    nav ul li {
        margin-right: 1vw; /* Adjust this to a value that suits your layout */
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        width: 100%;
        max-width: 1200px;
    }
}


footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-top:10px;
    margin-bottom:20px;
}

footer a {
    
    color: var(--primary-color);  /* Change the text color */
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 20px;
}

footer p {
    margin-left: 6px;
}

footer a:hover {
    border-bottom: 2px solid var(--primary-color);
}


.auth-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    text-align: left;
}

.auth-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.auth-section a:hover {
    border-bottom: 2px solid var(--secondary-color);
}

.auth-section p {
    padding: 6px;
}

.auth-section .info-message {
    margin: 10px 0;
    padding: 10px;
    font-size: 1.1rem;
    text-align: left;
    color: var(--success-color);
}

.auth-section form, .profile-section form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.auth-section .input-field, .profile-section .input-field {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.auth-section button, .profile-section button {
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.profile-section {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    margin-bottom: 5px;
    width: 100%; /* Ensure nav takes full width */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap; /* Add this line */
}

nav ul {
    display: flex;
    flex-wrap: nowrap; /* Prevents list items from wrapping to the next line */
    list-style: none;
}


nav ul li {
    margin-right: 2vw; /* Adjust this to a value that suits your layout */
}

nav ul li:last-child {
    margin-right: 0;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

nav a:hover {
    border-bottom: 2px solid var(--secondary-color);
}


.no-style {
    text-decoration: none;
    color: inherit;
}


.form-container {
    display: flex;
}

.form-column {
    flex: 1;
    padding: 10px;
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-group label {
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Ensures checkbox doesn't grow to match text and select inputs */
.form-group input[type="checkbox"] {
    width: auto;
}


button {
    padding: 10px 20px;
    border: none;
    margin: 10px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

.green-button {
    background-color: #4CAF50;
}

.green-button:hover {
    background-color: #45a049;
}

.red-button {
    background-color: #f44336;
}

.red-button:hover {
    background-color: #d32f2f;
}

.blue-button {
    background-color: #2196F3;
}

.blue-button:hover {
    background-color: #1976D2;
}


#content {   /* Assuming your {% block content %} corresponds to an element with id 'content' in your base.html */
    display: flex;
}


#tabs {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
  }
  
  a.tab {
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--light-text);
    border: 1px solid var(--light-text);
    border-radius: 5px;
    text-decoration: none;  /* remove the default link underline */
}

a.tab:hover {
    background-color: var(--light-text);
    color: var(--dark-text);
}

a.tab.selected {
    background-color: var(--light-text);
    color: var(--selected-text);
}

  
  .share-link {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.share-link:hover {
    background-color: #0056b3;
}

#about-page {
    max-width: 800px; 
    margin: 0 auto; 
    padding: 1em; 
  }
  
  #about-page h2 {
    text-align: center;
    margin-bottom: 1em; 
  }
  
  #about-page p {
    text-align: left;
    line-height: 1.6; 
  }


  .lieutenant-user-div {
    background-color: var(--dark-background);
    color: var(--dark-text);
    padding: 10px;
    border-radius: 5px;
    border: 12px solid var(--lieutenant);
    margin-bottom: 20px;
    
    max-width: 95%;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lieutenant-user-div .lieutenant-text {
    margin-bottom: 5px; /* creates some space between the text and the buttons */
}

.lieutenant-user-div .lieutenant-message {
    font-size: 0.8em;
    color: var(--secondary-color);
}

.lieutenant-user-div p {
    margin-right: 15px; /* creates some space between the elements */
}

.lieutenant-user-div .lieutenant-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin:4px;
}

#topsub {
    color: var(--success-color);
}

.lieutenant-user-div .lieutenant-buttons a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px; /* smaller padding to reduce button size */
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    margin-right: 4px;                
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lieutenant-user-div .lieutenant-buttons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-background);
}

#my_images_header h2 {
    display: flex;
    justify-content: center;  /* aligns the child element(s) horizontally in the center */
    align-items: center;  /* aligns the child element(s) vertically in the center */
}



.tokens-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - var(--header-footer-height));
    color: var(--dark-text);
    background-color: var(--light-background);
}

.tokens-container h2 {
    margin-bottom: 20px;
}

.tokens-container form {
    margin-top: 20px;
}

.tokens-container input[type=submit] {
    color: var(--light-background);
    background-color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tokens-container input[type=submit]:hover {
    background-color: var(--primary-color);
    color: var(--light-background);
}

.warning-message {
    color: var(--danger-color);
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--dark-background-card);
}

.crew-user-div {
    background-color: var(--dark-background);
    color: var(--dark-text);
    padding: 5px;
    border-radius: 5px;
    border: 2px solid var(--dark-header-footer-text);
    margin-bottom: 10px;
    
    max-width: 95%;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.crew-user-div .crew-text {
    margin-bottom: 5px; /* creates some space between the text and the buttons */
}

.crew-user-div .crew-message {
    font-size: 0.8em;
    color: var(--secondary-color);
}

.crew-user-div p {
    margin-right: 15px; /* creates some space between the elements */
}

.crew-user-div .crew-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding:4px;
}

.crew-user-div .crew-buttons a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px; /* smaller padding to reduce button size */
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    margin-right: 4px;                
    transition: background-color 0.3s ease, color 0.3s ease;
}

.warning-message a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px; /* smaller padding to reduce button size */
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    margin-right: 4px;                
    transition: background-color 0.3s ease, color 0.3s ease;
}

.generate-section a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px; /* smaller padding to reduce button size */
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    margin-right: 4px;                
    transition: background-color 0.3s ease, color 0.3s ease;
}


.crew-user-div .crew-buttons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-background);
}


.earn-section {
    width: 80%;
    margin: auto;
    padding-top: 4px;
}

.earn-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.card {
    background-color: var(--dark-background);
    color: var(--dark-text);
    border: 2px solid var(--dark-header-footer-text);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--light-color);
    margin-bottom: 10px;
}

.action-button {
    background-color: var(--primary-color);
    color: var(--dark-background);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
}

#invite-link {
    width: 60%; /* you can adjust this value according to your design */
    margin-right: 10px;
    padding:10px;
}

.copy-button {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}


.invite-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

.invite-cta {
    background-color: var(--dark-background);
    color: var(--dark-text);
    padding: 20px;
    margin:10px;
    border-radius: 5px;
    border: 2px solid var(--success-color);
    margin-bottom: 20px;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.invite-cta h2 {
    font-size: 1.2em;
    color:#fff;
    margin-bottom: 15px;
}

.invite-cta a {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.invite-cta p {
    font-style: italic;
}


.nebula-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border: 2px solid #555;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.4);
}

.nebula-container p {
    text-align: left;
}


button#waitlist-btn {
    display: block;
    width: 200px;
    height: 50px;
    margin: 20px auto;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button#waitlist-btn:hover {
    background-color: #45a049;
}

.note {
    font-style: italic;
    text-align: center;
}



.gold-container {
    max-width: 800px;
    margin: 10px auto;
    padding-bottom: 20px;
    background-color: var(--dark-background);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.benefits-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
}

.benefits-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.benefit-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.purchase-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.purchase-btn:hover {
    background-color: #0056b3;
}

#waitlist-success {
    margin: 20px;
    padding:8px;
    border: 2px solid #00491b;   
}
