/* 🕶️ WILD DARK MODE OVERRIDES */
.dark-mode {
    background-color: #0d0d0d;
    color: #e6e6e6;
}

/* Nav & Footer */
.dark-mode .navbar,
.dark-mode .navbar_pc,
.dark-mode .navbar_mobile,
.dark-mode .footer_container {
    background-color: #151515;
    color: #f0f0f0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.512);
}

/* Containers */
.dark-mode .sidebar,
.dark-mode .right-sidebar,
.dark-mode .feed,
.dark-mode .signup-box,
.dark-mode .post {
    background: linear-gradient(145deg, #1e1e1e, #2b2b2b);
    color: #f5f5f5;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Inputs & Forms */
.dark-mode input,
.dark-mode .marketplace-item,
.dark-mode .post #comment-input,
.dark-mode select,
.dark-mode textarea,
.dark-mode .search-bar input,
.dark-mode .top-bar input,
.dark-mode #match-form input,
.dark-mode #match-form select,
.dark-mode .signup-box input,
.dark-mode .signup-box select {
    background-color: #222;
    color: #f5f5f5;
    border: 1px solid #555;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.28);
}

/* Skill & Community Tags */
.dark-mode .skills ul li,
.dark-mode .communities ul li {
    background-color: #333;
    color: hsl(0, 0%, 100%);
    border: 1px solid #f1c40f;
    box-shadow: 0 0 4px #f1c40f;
}

/* Typography */
.dark-mode .profile h2,
.dark-mode .feed h2,
.dark-mode .feed p,
.dark-mode .profile p,
.dark-mode .feed-menu span,
.dark-mode .right-sidebar span,
.dark-mode .right-sidebar h3 {
    color: #ffffff;
}

/* Buttons */
.dark-mode button,
.dark-mode .save-btn,
.dark-mode #match-form button,
.dark-mode .right-sidebar button,
.dark-mode .navbar button,
.dark-mode .signup-box button {
    background-color: #f1c40f;
    color: #111;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.28);;
    transition: all 0.3s ease;
}

/* Top bar styling */
.dark-mode .top-bar {
    background-color: #1a1a1a;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.28);;
}
.dark-mode .post .dropdown-button{
    color: white;
}
.dark-mode .modal-content {
    background-color: #222;
    color: #f5f5f5;
    border: 1px solid #555;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.28);
}
/* Link colors */
.dark-mode a {
    color: #ffffff;
    transition: color 0.2s ease;
}
.dark-mode .profile a {
    color: black;
}
.dark-mode a:hover {
    color: #f1c40f;
    text-shadow: 0 0 5px #f1c40f83;
}
#dark_mode .dark_icon {
    display: none;
}
#dark_mode .light_icon {
    display: none;
}
body {
    font-family: "Anton", sans-serif;
    background-color: #e1e1e1;
    color: #333;
    margin: 0 auto;
    padding: 0;
    line-height: 1.6;
}

.dark-mode {
    background-color: #1e1e1e;
}

.dark-mode .feed {
    background-color: #555;
}

a {
    text-decoration: none;
    color: inherit;
}


.navbar .navbar_pc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.navbar_mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo h1 {
    font-size: 22px;
    margin-left: 10px;
    color: #f1c40f;
}

.search-bar input {
    margin-left: 20px;
    padding: 10px;
    width: 350px;
    border-radius: 25px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;

}

.nav-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-icons span {
    font-size: 16px;
    cursor: pointer;
}

.navbar button {
    background-color: #f1c40f;
    border: none;
    padding: 5px;
    color: #1e1e1e;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 50px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.navbar button#logout-btn {
    margin: 0;
    padding: 12px 0 12px 0;
    width: 100px;
}
.profile_img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #f1c40f;
    margin-bottom: 15px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.profile_img_mobile {
    margin-left: 5px;
    border-radius: 50%;
    border: 1px solid #f1c40f;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.profile h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.profile p {
    color: #555;
    font-size: 14px;
}

button {
    background-color: #f1c40f;
    border: none;
    padding: 10px 20px;
    color: #1e1e1e;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}


.skills,
.communities {
    margin-top: 30px;
}

.skills h3,
.communities h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.skills ul li,
.communities ul li {
    display: inline-block;
    background-color: #e1e1e1;
    padding: 5px;
    gap: 20px;
    margin: 5px;
    border-radius: 15px;
    font-size: 14px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.skills ul, .communities ul {
    list-style: none;
    padding: 0;
}

.feed header {
    margin-bottom: 20px;
}

.feed-menu {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.feed-menu span {
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

#match-form button {
    background-color: #f1c40f;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    color: #1e1e1e;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f1f1;
    padding: 1px 15px;
    border-radius: 25px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.top-bar input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 25px;
    border: none;
    background-color: #e1e1e1;
    color: #333;
}

.post {
    background-color: #f9f9f9;
    margin-top: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}
.post #comment-input{
    background-color: #f1f1f1;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}
.save-btn {
    background-color: #f1c40f;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    color: #1e1e1e;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

#match-form input,
select {
    width: 100%;
    padding: 8px 0px 8px 0px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 20px;
    background-color: #f1f1f1;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

#match-form .profile_img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #f1c40f;
    margin-bottom: 15px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
    object-fit: cover;
}
.container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 100px;
    margin: 125px 0 25px 0;
    padding: 0 25px;
    min-height: 100vh;
}

.sidebar,
.right-sidebar,
.feed {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.right-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.right-sidebar ul {
    list-style: none;
    padding: 0;
}

.right-sidebar li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.right-sidebar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.right-sidebar button {
    background-color: #f1c40f;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #1e1e1e;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.right-sidebar span {
    font-size: 12px;
    color: #999;
}


.footer_container {
    background-color: #2a2a2a;
    color: #fff;
    text-align: center;
    padding: 20px;
    position:relative;
    bottom: 0;
}
.footer_container_mobile {
    display: none;
}

.mobile_canva {
    display: none;
}

/* -------------- SIGNUP ------------- */

.feed {
    grid-column: 2;
}

.signup-box {
    max-width: 500px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    text-align: center;
}

.signup-box h2 {
    font-size: 26px;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.signup-box input,
.signup-box select {
    margin-top: 15px;
}

.signup-box button {
    margin-top: 25px;
}

.signup-box p {
    font-size: 14px;
    color: #777;
    margin-top: 15px;
}
.navbar .navbar_mobile {
    display: none;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        grid-template-columns: 0fr 4fr 0fr;
        gap: 0px;
        margin: 125px 0 25px 0;
    }

    .feed {
        width: 100%;
        padding: 0px;
    }

    .sidebar,
    .right-sidebar {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .top-bar input {
        width: 100%;
    }
    #gameCanvas {
        display: none;
    }
    .mobile_canva {
        padding: 200px 0 0 55px;
        display: flex;
    }
}

@media (max-width: 800px) {
    .container {
        flex-direction: column;
        grid-template-columns: 0fr 4fr 0fr;
        gap: 0px;
        margin: 125px 0 25px 0;
    }

    .feed {
        width: 100%;
        padding: 0px;
    }

    .sidebar,
    .right-sidebar {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .top-bar input {
        width: 100%;
    }
    .navbar .navbar_mobile {
        display: none;
    }
    .footer_container_mobile {
        display: none;
    }
    #gameCanvas {
        display: none;
    }
    .mobile_canva {
        padding: 250px 0 0 225px;
        display: flex;
    }
    .light-mode #dark_mode .dark_icon  {
        display: inline;
        max-width: 35px;
    }
    .dark-mode #dark_mode .light_icon  {
        display: inline;
        max-width: 35px;
    }
    #dark_mode .text {
        display: none;
      }
}

@media (max-width: 450px) {
    .container {
        flex-direction: column;
        margin: 60px 0 70px 0;
    }
    .feed {
        grid-column: span 3;
        width: 100%;
        padding: 0px;
        gap: 5px;
        margin: 0px;
    }

    .sidebar,
    .right-sidebar {
        display: none;
        width: 0;
        height: 0;
        opacity: 0;
        visibility: collapse;
    }

    .top-bar input {
        width: 100%;
    }

    .top-bar {
        position: fixed;
        padding: 0;

    }

    .navbar {
        padding: 0;
        height: 70px;
    }

    .navbar .navbar_mobile {
        display: flex;
        padding: 0;
        line-height: 1.2;
        height: 120px;
        margin: 0;
        justify-content: space-evenly;
    }

    .navbar .navbar_pc {
        display: none;
    }

    .navbar input {
        display: none;
    }

    .navbar .nav-icons,
    #toggleButton {
        display: none;
    }
    .feed header input {
        display: none;
    }
    .feed-menu {
        margin-top: 6px;
        margin-bottom: 0px;
        padding: 10px;
        gap: 10px;
    }

    .footer_container {
        height: 6%;
        position: fixed;
        width: 100%;
        padding: 7px 0 0 0;
        line-height: 1.2;
        justify-content: space-evenly;
        align-content: space-evenly;
    }

    .footer_container_pc {
        display: none;
    }

    .footer_container_mobile {
        display: block;
        font-size: xx-small;
    }

    .parent_footer {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 12px;
        grid-row-gap: 5px;
    }

    .div1_footer {
        grid-area: 1 / 1 / 2 / 2;
    }

    .div2_footer {
        grid-area: 1 / 2 / 2 / 3;
    }

    .div3_footer {
        grid-area: 1 / 3 / 2 / 4;
    }

    .div4_footer {
        grid-area: 1 / 4 / 2 / 5;
    }

    .div5_footer {
        grid-area: 1 / 5 / 2 / 6;
    }

    .div6_footer {
        grid-area: 2 / 1 / 3 / 2;
    }

    .div7_footer {
        grid-area: 2 / 2 / 3 / 3;
    }

    .div8_footer {
        grid-area: 2 / 3 / 3 / 4;
    }

    .div9_footer {
        grid-area: 2 / 4 / 3 / 5;
    }

    .div10_footer {
        grid-area: 2 / 5 / 3 / 6;
    }

    .parent_navbar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        width: 100%;
        line-height: 0;
    }

    .div1_navbar {
        grid-area: 1 / 1 / 2 / 4;
        justify-self: left;
        align-self: center;
        padding-left: 20px;
    }

    .div2_navbar {
        grid-area: 1 / 5 / 2 / 6;
        justify-self: right;
        align-self: center;
        padding-right: 20px;
    }

    .div3_navbar {
        grid-area: 2 / 1 / 3 / 2;
        justify-self: center;
        align-self: center;
        padding-left: 20px;
    }

    .div4_navbar {
        grid-area: 2 / 2 / 3 / 3;
        justify-self: center;
        align-self: center;
        padding-right: 20px;
    }

    .div5_navbar {
        grid-area: 2 / 5 / 3 / 6;
        justify-self: right;
        align-self: center;
        padding-right: 20px;
    }
    #gameCanvas {
        display: none;
    }
    .mobile_canva {
        padding: 200px 0 0 55px;
        display: flex;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}

input, select  {
    width: 100%;
    padding: 10px 0 10px 0;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #f1c40f;
    cursor: pointer;
}
.player-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.player-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.player-image.placeholder {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.player-info {
    flex: 1;
}

.player-rank {
    font-weight: bold;
    margin-right: 10px;
}

.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}