@font-face {
    font-family: 'RetroComputer';
    src: url('../fonts/retro-computer.woff2') format('woff2'),
         url('../fonts/retro-computer.woff') format('woff'),
         url('../fonts/retro-computer.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;  /* Changed from swap to block */
}

:root {
    --sage-green: #93a696;
    --dark-sage: #7A8F84;
    --text-color: #2f2f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--sage-green);
    font-family: 'RetroComputer', monospace, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.social-icons {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
    z-index: 1000; /* Add this to ensure icons are clickable */
}

.icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.icon:hover {
    transform: scale(1.1);
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0);
    pointer-events: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: -7rem;
    min-height: 100vh;
    position: relative;
}

.gif-container {
    width: 800px;
    height: 800px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header h1 {
    font-family: 'RetroComputer', 'Press Start 2P', monospace, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 3rem;
    color: var(--text-color);
    letter-spacing: 0.5rem;
}

.header p {
    font-family: 'RetroComputer', 'Press Start 2P', monospace, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: 0.2rem;
}

.nav-buttons {
    display: flex;
    gap: 4rem;
    margin-top: -10rem;
}

.pixel-button {
    padding: 0.5rem 1rem;
    font-family: 'RetroComputer', 'Press Start 2P', monospace, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.2rem;
    background: transparent;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}

.pixel-button:hover {
    color: var(--dark-sage);
    transform: scale(1.1);
}

.pixel-button:active {
    transform: scale(0.95);
}

.pixel-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.pixel-button:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        margin-top: 2rem;
    }

    .header h1 {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }

    .header p {
        font-size: 0.8rem;
        letter-spacing: 0.1rem;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 2rem;
        margin-top: -4rem;
        width: 100%;
        align-items: center;
    }

    .pixel-button {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .social-icons {
        top: 1rem;
        right: 1rem;
        gap: 1rem;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    .gif-container {
        width: 90vw;
        height: 90vw;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.7rem;
    }

    .nav-buttons {
        margin-top: -2rem;
    }

    .pixel-button {
        font-size: 0.9rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .container {
        margin-top: 0;
    }

    .gif-container {
        width: 60vh;
        height: 60vh;
    }

    .nav-buttons {
        flex-direction: row;
        margin-top: -4rem;
        gap: 2rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.7rem;
    }
}

.airdrop-section {
    text-align: center;
    margin: 60px 0;
}

.airdrop-button {
    font-size: 1.2em;
    margin-bottom: 15px;
    background-color: var(--text-color);
    color: var(--sage-green);
    padding: 15px 30px;
    border: 3px solid var(--text-color);
    transition: all 0.3s ease;
}

.airdrop-button:hover {
    background-color: var(--sage-green);
    color: var(--text-color);
    transform: scale(1.05);
}

.timer {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5em;
    color: var(--text-color);
    margin: 15px 0;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.timer span {
    padding: 0 5px;
}

/* For mobile responsiveness, we should adjust the margin for smaller screens */
@media (max-width: 768px) {
    .airdrop-section {
        margin: 40px 0;
    }
}

@media (max-width: 480px) {
    .airdrop-section {
        margin: 30px 0;
    }
}