.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

button img {
    width: 200px;
    height: auto;
    transition: 0.3s;
}


a {
    margin-top: 20px;
    display: inline-block;
    color: blue;
}


.top-right {
    position: absolute;
    top: 10px;  /* Distance from the top */
    right: 20px; /* Distance from the right */
}

.alert-info {
    text-align: center;
}

.alert-danger {
    padding: 10px;
}

.flashes {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.alert {
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 80%;
    max-width: 600px;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card-item {
    width: 280px;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    margin-bottom: 15px;
}

.card-item-dash {
    width: 280px;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.card-item-results {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    padding: 15px;
    transition: transform 0.3s;
}

.card-item:hover {
    transform: scale(1.05);
}

.card-details {
    padding: 15px;
    background-color: #f8f9fa;
    flex-grow: 1;
}

.vote-history-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.vote-cards {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.winner {
    border: 3px solid gold;
    border-radius: 8px;
}
.vote-card-img {
    width: 100px;
    height: auto;
}
.vote-details {
    font-size: 0.9rem;
    color: #6c757d;
}
/* Optional: Add some margin below the tabs */
.nav-tabs {
        margin-bottom: 1.5rem; /* Adjust as needed */
}

.progress {
    display: flex; /* Bootstrap often uses flexbox for progress bars */
    height: 20px; /* Or whatever height you desire */
    overflow: hidden; /* Important for rounded corners and clipping */
    line-height: 0; /* Prevent potential extra space */
    background-color: #e9ecef; /* Light grey background */
    border-radius: .25rem; /* Optional: Rounded corners */
    margin-bottom: 0.5rem; /* Optional: Spacing below */
}

.progress-bar {
    width: inherit !important; /* Let the width-XX classes control this */
    background-color: #28a745 !important; /* Ensure our color */
    height: 100% !important;
    color: #fff !important;
    text-align: center !important;
    transition: width 0.6s ease-in-out !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    display: flex; /* To center the text if needed */
    align-items: center;
    justify-content: center;
    font-size: .75rem; /* Adjust text size */
}


.forgot-password-container {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.forgot-password-header {
    text-align: center;
    margin-bottom: 30px;
}
.forgot-password-header h1 {
    color: #343a40;
    font-size: 28px;
    font-weight: bold;
}
.form-label {
    font-weight: 500;
    color: #495057;
}

.btn-forgot-password {
    background-color: #dc3545;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.btn-forgot-password:hover {
    background-color: #b02a37;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .forgot-password-header {
        text-align: center;

    }

    .forgot-password-container {
        /* max-width: 400px;
        width: 100%;
        padding: 30px;
        margin-bottom: 12vh;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
        padding: 20px;
        margin-bottom: 0;
    }
}



.mt-3 {
    margin-top: 1.5rem;
}
.alert {
    margin-bottom: 1rem;
}

.sign-out {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
}

.voting-container {
    max-width: 900px;
    margin: 0 auto;
}
.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #dc3545;
    color: white;
    font-weight: bold;
    font-size: 24px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.card-buttons {
    display: flex;
    position: relative;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}
.card-btn {
    width: 48%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    border-radius: none;
}
.card-btn:hover {
    transform: translateY(-10px);
}
.card-btn:hover .card-wrapper {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.card-wrapper {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.card-img {
    width: 100%;
    height: auto;
}
.card-name {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #212529;
}
.choose-text {
    text-align: center;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #6c757d;
}



.login-container {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 50px;
    margin-bottom: 20px;
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header h1 {
    color: #343a40;
    font-size: 28px;
    font-weight: bold;
}
.login-header img {
    width: 100px;
    margin-bottom: 15px;
}

.btn-login {
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}
.btn-login:hover {
    background-color: #0056b3;
}
.signup-link {
    text-align: center;
    margin-top: 25px;
    color: #6c757d;
}
.signup-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.signup-link a:hover {
    text-decoration: underline;
}
.pokemon-bg {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 150px;
    opacity: 0.3;
    z-index: -1;
}

/* .container-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
} */


.container-wrapper {
    display: flex; /* Changed from flex-direction: row; */
    flex-direction: column; /* To stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 10px;
}


.disclaimer {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-top:0;
}



/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .pokemon-bg {
        position: absolute;
        bottom: 0;
        right: 10px;
        opacity: 0.5;
        width: auto;
        height: auto;
        max-width: 80px;
        max-height: 80px;
        margin: 0;
        order: 2; /* Place it visually at the end initially */
    }

    .pokemon-bg svg {
        width: 100%;
        height: 100%;
    }

    .login-container {
        padding: 20px;
        margin-top: 1vh;
        margin-bottom: 1vh;
        order: 1; /* Place it visually in the middle */
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .container-wrapper {
        flex-direction: column;
        justify-content: flex-start; /* Align items to the top */
        align-items: center;
        gap: 10px; /* Adjust the gap as needed */
        min-height: 100vh; /* Ensure it takes up at least the full viewport height */
        position: relative; /* Positioning context for pokemon-bg */
        padding-bottom: 70px; /* Add padding at the bottom for the pokemon-bg */
        padding-top: 2vh;
    }

    .disclaimer {
        margin-top: auto; /* Push it to the bottom */
        order: 3; /* Place it visually at the end */
        text-align: center;
        width: 100%; /* Ensure it spans the full width */
        padding: 10px; /* Add some padding for better spacing */
        box-sizing: border-box; /* Include padding in the width and height */
    }
}
/* @media (max-width: 576px) {
    .login-container {
        border-radius: 0;
        box-shadow: none;
        padding: 20px;
    }
} */
.alert-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}
.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

 
.reset-password-container {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.reset-password-header {
    text-align: center;
    margin-bottom: 30px;
}
.reset-password-header h1 {
    color: #343a40;
    font-size: 28px;
    font-weight: bold;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}
.btn-reset-password {
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.btn-reset-password:hover {
    background-color: #0056b3;
}

.header {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    position: relative;
}
.card-list {
    list-style-type: none;
    padding: 0;
}

.card-image {
    width: 120px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
}

.card-votes {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}
.card-rank {
    width: 40px;
    height: 40px;
    background-color: #343a40;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}
.nav-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    text-decoration: none;
    margin: 0 10px;
    transition: background-color 0.3s;
}
.nav-button:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.sign-out:hover {
    text-decoration: underline;
    color: #f8f9fa;
}
.navigation-links {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 20px;
}

@media (max-width: 768px) {
    .nav-button {
        text-align: center;
    }
}

.trophy-icon {
    color: gold;
    font-size: 24px;
    margin-right: 10px;
}

body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px; /* Included padding-bottom */
} 

.signup-container {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.signup-header {
    text-align: center;
    margin-bottom: 15px;
}
.signup-header h1 {
    color: #343a40;
    font-size: 28px;
    font-weight: bold;
}

.btn-signup {
    background-color: #28a745;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.btn-signup:hover {
    background-color: #1e7e34;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .signup-container {
        max-width: 400px;
        width: 100%;
        padding: 10px;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-bottom: 3vh;
    }
    .signup-header {
        text-align: center;
        margin-bottom: 15px;
    }
}


.login-link {
    text-align: center;
    margin-top: 10px;
    color: #6c757d;
}
.login-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.body-index {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
    padding-bottom: 40px;
    display: block; /* Override flex display */
    align-items: initial; /* Override align-items */
    justify-content: initial; /* Override justify-content */
    text-align: left; /* Adjust as needed */
    min-height: auto; /* Override min-height */
}

.body-dashboard {
    display: block; /* Body is a block-level element */
    margin: 8px; /* Most browsers apply an 8px margin */
    font-family: sans-serif; /* A default sans-serif font */
    font-size: 16px; /* A common default font size */
    line-height: normal; /* The default line height */
    background-color: white; /* Default background color */
    color: black; /* Default text color */
    text-align: left; /* Default text alignment */
    min-height: auto; /* Ensure it doesn't force a minimum height */
    align-items: initial;
    justify-content: initial;
}

/* In your static/style.css file */

@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .card-buttons {
      flex-direction: column; /* Stack the buttons vertically */
      align-items: center; /* Center the buttons horizontally */
    }
  
    .card-btn {
      width: 100%; /* Make each button take full width */
      margin-bottom: 15px; /* Add some space between them */
    }
  
    .vs-badge {
      /* Optionally adjust the VS badge position */
      margin: -5px 0;
    }
  
    .card-wrapper {
      width: 100%; /* Ensure the card wrapper also takes full width */
    }
  
    .card-img {
      width: 100%; /* Make the image fill the container */
      height: auto; /* Maintain aspect ratio */
    }
  }


  @media (max-width: 768px) {
    .navbar > .container {
      display: flex;
      justify-content: center; /* Center items horizontally */
      align-items: center; /* Center items vertically (optional, but good for overall alignment) */
    }
  
    .navbar-brand {
      /* You might need to adjust or remove other styles on it */
      margin-right: 0; /* Remove default right margin that might exist */
    }
  
    /* Ensure the toggler is positioned correctly */
    .navbar-toggler {
        position: absolute;
        top: 10px;
        left: 5px;
    }
  
    .navbar-collapse {
      text-align: center;
    }
  
    .navbar-nav {
      margin: 0 auto;
    }
    .navbar-dark .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        /* Solid white color */
      }
  
}

.terms-container {
    max-width: 800px; /* Increased max-width for readability */
    margin: 50px auto; /* Increased margin for spacing */
    padding: 30px;      /* Increased padding for content spacing */
    background-color: #ffffff;
    border-radius: 10px; /* Slightly more rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow, same as login container */
    margin-top: 10px;
    margin-bottom: 10px;
}
.terms-header {
    text-align: center;
    margin-bottom: 30px; /* Increased margin */
}
.terms-header h1 {
    font-size: 2rem; /* Larger heading */
    font-weight: bold;  /* Make the heading bold */
    color: #343a40; /* Darker heading color */
    margin-bottom: 1rem;
}
.terms-content {
    font-size: 1.1rem; /* Slightly larger font size for body */
    line-height: 1.7;  /* Improved line height for readability */
    color: #495057; /* Slightly darker body text */
}
.terms-section-title {
    font-size: 1.5rem; /* Larger section titles */
    font-weight: bold;
    color: #2c3e50; /* Darker section title color */
    margin-top: 2rem; /* Increased margin before section title */
    margin-bottom: 1rem; /* Add margin after section title */
    border-bottom: 1px solid #dee2e6; /* Add a border */
    padding-bottom: 0.5rem;
    text-align: justify; /* Justify text for better readability */
}
.terms-paragraph {
    margin-bottom: 1rem; /* Consistent spacing between paragraphs */
    text-align: justify; /* Justify text for better readability */
}

/* Responsive adjustments (optional - adjust as needed) */
@media (max-width: 992px) {
    .terms-container {
        max-width: 95%;
        padding: 20px;
    }
    .terms-header h1 {
        font-size: 1.75rem;
    }
    .terms-content {
        font-size: 1rem;
        line-height: 1.6;
    }
     .terms-section-title {
        font-size: 1.25rem;
    }
}
@media (max-width: 768px) {
    .terms-container {
        padding: 15px;
    }
    .terms-header h1 {
        font-size: 1.5rem;
    }
    .terms-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .terms-section-title {
        font-size: 1.1rem;
    }
}

.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 0px;
    gap: 20px;
}

.back-button {
    background-color: #007bff;
    /* Bootstrap primary color */
    color: white;
    border: none;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.back-button:hover {
    background-color: #0056b3;
    /* Darker shade on hover */
}

.agree-terms-container {
    display: flex;
    align-items: center; /* Vertically align items in the container */
    margin-bottom: 1rem; /* Add some bottom margin for spacing */
}

.agree-terms-checkbox {
    margin-right: 0.5rem; /* Add some space between checkbox and text */
    margin-top: 0.25rem; /* Adjust top margin for better visual alignment */
}

.agree-terms-label {
    margin-bottom: 0;
    line-height: 0.5; /* Reduce the line height */
}

.agree-terms-label {
    margin-bottom: 0; /* Remove default bottom margin from label */
}

.disabled-button {
    opacity: 0.6;
    cursor: not-allowed;
}

/* This is the container for all your social links */
.social-links-fa {
  display: flex;           /* 1. Use Flexbox for alignment */
  justify-content: center; /* 2. Horizontally centers the icons */
  align-items: center;     /* 3. Vertically centers all items */
  gap: 10px;               /* 4. Use `gap` for consistent spacing between icons */
}

.social-links-fa a {
  color: #333;             /* 5. Set the default color for your Font Awesome icons */
  font-size: 24px;
  /* Removed margin because `gap` handles it now */
}

.social-links-fa a:hover {
  color: #007bff;          /* 6. This handles the hover color for Font Awesome icons */
}

.social-links-fa a img {
  width: 24px;
  height: 24px;
  /* Removed margin and vertical-align as Flexbox handles alignment and spacing */
}

@media (max-width: 768px) {
    .navbar-brand .logo {
        height: 100px; /* Adjust this value to your preferred height */
        width: auto; /* Maintains the aspect ratio */
        /* You can add more styles like margin or padding if needed */
    }
}

.navbar-brand {
    padding-top: 0px;
    padding-bottom:0px;
    margin-top:0px;
    margin-bottom:0px;
}

.navbar-brand .logo {
  margin-top: 0px;
  height: 80px; /* Adjust this value to your preferred height */
  width: auto; /* Maintains the aspect ratio */
  /* You can add more styles like margin or padding if needed */
}

.width-0 { width: 0% !important; }
.width-5 { width: 5% !important; }
.width-10 { width: 10% !important; }
.width-15 { width: 15% !important; }
.width-20 { width: 20% !important; }
.width-25 { width: 25% !important; }
.width-30 { width: 30% !important; }
.width-35 { width: 35% !important; }
.width-40 { width: 40% !important; }
.width-45 { width: 45% !important; }
.width-50 { width: 50% !important; }
.width-55 { width: 55% !important; }
.width-60 { width: 60% !important; }
.width-65 { width: 65% !important; }
.width-70 { width: 70% !important; }
.width-75 { width: 75% !important; }
.width-80 { width: 80% !important; }
.width-85 { width: 85% !important; }
.width-90 { width: 90% !important; }
.width-95 { width: 95% !important; }
.width-100 { width: 100% !important; }