/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka One', cursive;
    background-color: #f5eedc;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f5eedc;
    position: relative;
    z-index: 1;
}

.logo img {
    height: 110px;
}

.title {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title img {
    max-height: 80px;
    margin: auto;
}

.socials {
    display: flex;
    align-items: center;
}

.socials a {
    margin-left: 10px;
    text-decoration: none;
}

.socials img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s;
}

.socials a:hover img {
    transform: translateY(-5px);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    width: 100%;
}

.home {
    width: 100%;
    max-width: 4000px;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.home-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.copy-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5eedc;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.copy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

.contract-address {
    font-size: 18px;
    color: white;
    background-color: #ff6600;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transform: perspective(500px) rotateX(5deg);
    box-sizing: border-box;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

.copy-button {
    font-family: 'Fredoka One', cursive;
    padding: 10px 20px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s, background-color 0.3s;
    transform: rotate(-5deg) perspective(500px) rotateY(5deg);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
}

.copy-button:hover {
    background-color: #cc5200;
    transform: rotate(5deg) perspective(500px) rotateY(-5deg);
}

.about {
    display: flex;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    flex-direction: row;
}

.about-images {
    display: flex;
    width: 100%;
    position: relative;
}

.left-image-container, .right-image-container {
    width: 50%;
    overflow: hidden;
    position: relative;
}

.left-image, .right-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    font-size: 1.2em;
}

.about-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1em;
}

/* How to Buy Section */
.how-to-buy-section {
    padding: 40px 20px 88px 20px;
    background-color: #f5eedc;
}

.how-to-buy-section .section-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 60px;
    color: #ff6600;
    text-align: center;
    margin-bottom: 48px;
}

.grid {
    display: grid;
    gap: 32px 32px;
    grid-template-columns: repeat(2, 1fr);
}

.bounceTop {
    animation: bounceTop 2s ease-in-out infinite alternate;
}

.bounceBottom {
    animation: bounceBottom 2s ease-in-out infinite alternate;
}

.bg-orange {
    background-color: #ff6600;
    padding: 32px;
}

.image-container {
    border: 2px solid white;
    padding: 0;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ff6600;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
}

.image-container h3 {
    margin-top: 32px;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 24px;
    color: white;
    text-align: center;
}

/* PFP Creator Section */
.pfp-creator-section {
    padding: 50px 0;
    text-align: center;
    background-color: #f5eedc;
}

.pfp-creator-section .section-title {
    font-size: 60px;
    font-family: 'Bubblegum Sans', cursive;
    color: #ff6600;
    text-align: center;
    margin-bottom: 48px;
}

.pfp-creator {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.pfp-preview {
    position: relative;
    width: 300px;
    height: 300px;
    border: 2px solid #ff6600;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.pfp-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfp-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    max-width: 300px;
}

.option-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.option-button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1em;
}

.category-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.pfp-option {
    width: 80px;
    height: 80px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid #ff6600;
    border-radius: 5px;
}

.pfp-option:hover {
    transform: scale(1.1);
}

.download-btn, .random-btn {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.5em;
    color: white;
    background-color: #ff6600;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    margin-right: 10px;
}

/* Tokenomics Section */
.tokenomics-section {
    padding: 50px 0;
    text-align: center;
    background-color: #ff6600;
    width: 100%; /* Ensure the section takes the full width */
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
}

.tokenomics-section .section-title {
    font-size: 60px;
    font-family: 'Bubblegum Sans', cursive;
    color: white;
    text-align: center;
    margin-bottom: 48px;
}

.tokenomics-content {
    display: flex;
    justify-content: space-between; /* Add space between the pie chart and the image */
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add padding to provide space on the sides */
}

.tokenomics-chart {
    display: flex;
    flex-direction: column; /* Stack the pie chart and the info vertically */
    align-items: center;
    max-width: 500px; /* Limit the width to ensure space for the image */
    margin-right: 20px; /* Add margin to create space between the chart and the image */
}

.pie-chart {
    position: relative;
    width: 300px;
    height: 300px;
    background-color: white;
    border-radius: 50%;
    margin-bottom: 20px; /* Add space between the pie chart and the info */
}

.pie-chart .slice {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: white;
    border-radius: 100% 0 0 100% / 50% 0 0 50%;
    transform-origin: 100% 50%;
    clip: rect(0, 150px, 300px, 0);
    transform: rotate(calc(var(--value) * 1deg));
}

.pie-chart .slice:nth-child(2) {
    background-color: white;
    transform: rotate(calc(var(--value) * -1deg));
}

.tokenomics-info {
    list-style: none;
    padding: 0;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.5em;
    color: white;
    text-align: center;
}

.tokenomics-info li {
    margin: 10px 0;
}

.tokenomics-image-container {
    width: 500px;
    height: 500px;
    overflow: hidden;
    border-radius: 20px; /* Add rounded corners to the image */
}

.tokenomics-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px; /* Ensure the image itself has rounded corners */
}

/* Footer Section */
.footer-section {
    padding: 20px;
    background-color: #f5eedc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-text p {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1em;
    color: black;
}

.footer-logo img {
    height: 50px;
}

/* Mobile-specific styling */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .logo img, .title img {
        max-height: 60px;
    }

    .socials {
        margin-top: 10px;
    }

    .about-images {
        flex-direction: column;
    }

    .left-image-container, .right-image-container {
        width: 100%;
    }

    .left-image, .right-image {
        width: 100vw;
        height: auto;
    }

    .about-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        width: 90%;
        font-size: 0.8em;
    }

    .about-text h2 {
        font-size: 1.5em;
    }

    .about-text p {
        font-size: 0.8em;
    }

    .copy-container {
        flex-direction: column;
        align-items: center;
    }

    .contract-address, .copy-button {
        margin-bottom: 10px;
        text-align: center;
        word-wrap: break-word;
    }

    .contract-address {
        font-size: 16px;
        padding: 5px;
        transform: none;
        max-width: 90vw;
        box-sizing: border-box;
    }

    .copy-button {
        font-size: 14px;
        padding: 5px 10px;
        transform: none;
        max-width: 90vw;
        box-sizing: border-box;
    }

    .home {
        width: 100vw;
    }

    .home-image {
        width: 100vw;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .how-to-buy-section .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .how-to-buy-section .image-container img {
        width: 100%;
        height: auto;
        border-radius: 1.5rem;
    }

    .how-to-buy-section .image-container h3 {
        margin-top: 12px;
        font-size: 20px;
    }

    .bounceTop {
        animation: bounceTopMobile 2s ease-in-out infinite alternate;
    }

    .bounceBottom {
        animation: bounceBottomMobile 2s ease-in-out infinite alternate;
    }

    /* Tokenomics Section Mobile */
    .tokenomics-content {
        flex-direction: column;
        align-items: center;
    }

    .tokenomics-chart {
        margin: 0 0 20px 0;
    }

    .tokenomics-image-container {
        margin: 20px 0 0 0;
        width: 100%;
        height: auto;
    }

    .tokenomics-image-container img {
        width: 100%;
        height: auto;
    }
}

@keyframes bounceTop {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-30px);
    }
}

@keyframes bounceBottom {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(30px);
    }
}

@keyframes bounceTopMobile {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes bounceBottomMobile {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}
