body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        /* Darken overlay */
        url('../images/background2.jpg');
    /* Background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Keeps background fixed */
    min-height: 100vh;
    /* Ensures it spans at least the full viewport */
}

.community {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: #00000079;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

h2,
a {
    color: rgba(255, 255, 255, 0.877);
}

p,
ul li {
    color: #fffdfd91;
}

.community h1 {
    text-align: center;
    color: #0073e6;
    margin-bottom: 20px;
}

.join-community {
    text-align: center;
    margin: 30px 0;
}

.join-community button {
    padding: 10px 20px;
    font-size: 1.1em;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.join-community button:hover {
    background-color: #005bb5;
}

.recent-discussions,
.popular-resources {
    margin-top: 40px;
}

.recent-discussions h2,
.popular-resources h2 {
    color: #0073e6;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.discussion {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #00000065;
    border-radius: 4px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion h3 {
    margin: 0;
    font-size: 1.2em;
}

.discussion h3 a {
    text-decoration: none;
    color: #c2c0c0;
    transition: color 0.3s;
}

.discussion h3 a:hover {
    color: #0073e6;
}

.discussion p {
    color: #818181;
    margin: 5px 0;
}

.discussion span {
    font-size: 0.9em;
    color: #888;
}

.popular-resources ul {
    list-style-type: none;
    padding: 0;
}

.popular-resources ul li {
    margin-bottom: 10px;
}

.popular-resources ul li a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.popular-resources ul li a:hover {
    color: #0073e6;
}




/* === FAN BUILDS SECTION === */
.fanbuilds-container {
    margin-top: 40px;
    background-color: #00000079;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.fanbuilds-container h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Form styling */
.fanbuild-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.fanbuild-form input,
.fanbuild-form textarea,
.fanbuild-form select
 {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #f0f0f0;
    outline: none;
}

.fanbuild-form input::placeholder,
.fanbuild-form textarea::placeholder
{
    color: #888;
}

.fanbuild-form select:invalid{
    color: #d8d8d8;
}

.fanbuild-form button {
    padding: 10px;
    font-size: 1em;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fanbuild-form button:hover {
    background-color: #005bb5;
}

/* Fan build card */
.fanbuilds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.fanbuild-card {
    background-color: #00000065;
    color: #fffdfd91;
    border-radius: 8px;
    padding: 15px;
    width: 280px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

.fanbuild-card h3 {
    color: #7abdff;
    margin-top: 0;
}

.fanbuild-card p {
    margin: 5px 0;
    color: #d1d1d1;
}

.fanbuild-card img {
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
    object-fit: cover;
    height: 160px;
}

.fanbuild-card .card-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.fanbuild-card .card-buttons button {
    flex: 1;
    margin: 0 5px;
    padding: 6px;
    background-color: #444;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fanbuild-card .card-buttons button:hover {
    background-color: #0073e6;
}

/* Modal Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999; /* Make sure it's on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Scroll if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Dim background */
  }
  
  /* Modal Content Box */
  .modal-content {
    background-color: #1c1c1c;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  /* Close Button */
  .modal-content button[type="button"] {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
  }
  
  .modal-content button[type="button"]:hover {
    background: #666;
  }
  
  /* Inputs inside modal */
  #editModal input,
  #editModal textarea,
  #editModal select {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2b2b2b;
    color: white;
  }
  
  #editModal button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #00aaff;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  #editModal button[type="submit"]:hover {
    background-color: #008fcc;
  }
  
  /* Fade animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
  