:root {
    --primary-color: #22B14C;
    --secondary-color: #2f3542;
    --accent-color: #70a1ff;
    --text-light: #ffffff;
    --nav-height: 80px;
    --transition: all 0.3s ease;
}

body {
    font-family: sans-serif;
    background: #f0f0f0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

/* --- Header Container --- */
header {
    width: 100%;
    background-color: var(--secondary-color);
    height: var(--nav-height);
    display: flex;
    /* align-items: center; */
    position: sticky;
    z-index: 10; /* Keeps header on top */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
    align-items: center;
    /* margin: 20; */
    justify-content: space-evenly;
    align-items: center;
}

/* --- Logo Styling --- */
.logo {
    font-family: 'Bungee', cursive;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 2rem;
    height: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.nav-discord {
    background-color: #5865F2;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 0px #3e48ae;
}

.nav-discord:hover {
    box-shadow: 0 6px 0px #3e48ae;
    background-color: #4752c4 !important;
}

.nav-discord:active {
    box-shadow: 0 2px 0px #3e48ae;
}

/* --- Footer Styles --- */
.main-footer {
    background-color: var(--secondary-color);
    color: #ced4da;
    width: 100%;
    padding: 60px 0 20px 0;
    z-index: 10; /* Keeps header on top */
    margin-top: 80px; /* Separates content from footer */
    border-top: 4px solid var(--primary-color); /* Colorful accent line */
    flex-shrink: 0;
    /* flex-shrink: 0; Prevents the footer from squishing */
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-content h4 {
    color: var(--text-light);
    font-family: 'Bungee', cursive;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* --- Global Styles --- */
.content-wrapper {
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    flex: 1;
}

h1 {
    text-align: center;
    font-family: 'Bungee',
    cursive;
    font-size: 4rem;
    margin: 20px 0;
    color:var(--primary-color);
}

/* --- Home Page --- */
.discord-btn {
    font-size: 40px;
    padding-bottom: 30px;
}

/* --- Skin Gallery --- */
.skin-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skin-gallery a {
    text-decoration: none;
    color: inherit;
}

.card { 
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 250px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.skin-gallery .card{
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-content {
    text-align: center;
    padding: 15px;
    min-height: 200px;
}

/* --- Skin Selection --- */
.skin-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skin-choices .card {
    border-style: solid;
    border-width: 5px;
    border-color: var(--accent-color);
}

button.select-btn {
    margin-top: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.card.active-skin {
    border-color: var(--primary-color);
}

.active-skin .select-btn {
    background: var(--primary-color);
    pointer-events: none;
}

/* --- Skin Details --- */
.skin-presentation {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.skin-preview {
    flex-shrink: 0;
    width: 400px;
    background-color: whitesmoke;
}

.skin-preview model-viewer {
    width: 100%;
    height: 550px;
    border-radius: 10px 10px 0 0;
    border-width: 1px;
    border-style: solid;
    border-color: #ccc;
}

.skin-preview .object-name {
    height: auto;
    border-radius: 0 0 10px 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #ccc;
}


.skin-presentation {
    display: flex;
    justify-content: space-between;
    /* margin: 20px 0; */
}

.skin-display {
    flex-grow: 1;
}

.skin-description, .skin-info, .playerList {
    background-color: #ffffff;
    padding: 20px;
    margin: 0 0 10px 20px;
    text-align: left;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #ccc;
}

.skin-display p, .skin-display h3 {
    overflow-wrap: break-word;
    margin: 0;
}

.playerList .list{
    word-spacing: 0.15rem;
    text-align: justify !important;
}

.playerList a {
    text-decoration: none;
    /* color: inherit; */
}