* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('img/BACKGROUND.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
}

header {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff9800;
}

section {
    padding: 100px 20px 60px 20px;
    max-width: 1200px;
    margin: auto;
}

section#home .hero {
    text-align: center;
    border-radius: 10px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 48px;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-weight: bold;
}

p {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 22px;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
}

.hero .social-links,
footer .social-links {
    text-align: center;
    margin-top: 20px;
}

.hero .social-links a,
footer .social-links a {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.hero .social-links a:hover,
footer .social-links a:hover {
    transform: scale(1.1);
}

.hero .social-links .social-icon,
footer .social-links .social-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
}

.hero .banner-container {
    position: relative;
    max-width: 60%;
    margin: 0 auto;
}

.hero .banner-image {
    width: 100%;
    height: auto;
    display: block;
    border: 5px solid #fff;
    border-radius: 10px;
}

.hero-title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.nft-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid #ff9800;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 1200px;
}

.nft-item {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nft-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nft-item img {
    max-width: 100%;
    border-radius: 5px;
}

.nft-item h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #333;
}

.nft-item p.description {
    font-size: 14px;
    color: #666;
}

.nft-item p.quantity {
    font-size: 16px;
    color: #666;
}

.nft-item p.price {
    font-size: 18px;
    color: #f08080;
    /* Светло-красный для цены */
    margin: 5px 0;
}

.nft-item button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nft-item button:hover {
    background-color: #0056b3;
}

.nft-item button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.locked {
    opacity: 0.4;
    filter: grayscale(100%);
    pointer-events: none;
}

.progress-container {
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.progress-container h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #ff9800;
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    height: 30px;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    border-radius: 25px 0 0 25px;
    transition: width 0.5s ease-in-out;
}

#progressText {
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 5px;
}

#percentageText {
    font-size: 1em;
    color: #fff;
}

.framed-text {
    border: 2px solid #ff9800;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.framed-text p {
    font-size: 11px;
    color: #fff;
    line-height: 1.6;
}

#unlocking {
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

#unlocking h2 {
    color: #ff9800;
}

#unlocking p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.unlocked-nft h3 {
    color: #ff9800;
}

/* Футер */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.dimmed {
    opacity: 0.5;
    filter: grayscale(100%);
    pointer-events: none;
}

.token-info {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.token-description {
    font-size: 23px;
    margin-bottom: 20px;
}

.token-details {
    list-style-type: none;
    padding: 0;
}

.token-details li {
    margin-bottom: 10px;
    font-size: 16px;
}

.detail-label {
    font-weight: bold;
    display: inline-block;
    width: 200px;
}

.token-value {
    font-size: 20px;
    color: #007bff;
    font-weight: 600;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    transition: max-height 0.3s ease-in-out;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ff9800;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contract-address {
    font-size: 18px;
    color: #c6ff5a;
    font-weight: normal;
}

.game-button {
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #d1a500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.game-button .new-text {
    color: red;
}

.game-button:hover {
    transform: scale(1.1);
    background-color: #444;
}

.game-button:active {
    transform: scale(1);
}



@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .contract-address {
        font-size: 11px;
        color: #c6ff5a;
        font-weight: normal;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 117px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        max-height: 0;
        overflow: hidden;
        z-index: 1000;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    nav ul.show {
        max-height: 300px;
    }

    .menu-toggle {
        display: flex;
    }
}



@media (max-width: 1200px) {
    .nft-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .nft-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    section#home .hero {
        padding: 150px 20px 80px 20px;
    }

    .nft-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}