@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

:root {
    --card_width: 25%; /* Reduced from 33% to fit more images */
    --card_border_radius: 20px;
    --row_increment: 10px;
    --card_small: 20;
    --card_medium: 30;
    --card_large: 40;

    @media only screen and (max-width: 1200px) {
        --card_width: 33.33%;
    }

    @media only screen and (max-width: 900px) {
        --card_width: 50%;
    }

    @media only screen and (max-width: 600px) {
        --card_width: 100%;
        --card_small: 15;
        --card_medium: 25;
        --card_large: 35;
    }
}

body {
    background-color: black;
    font-family: 'Permanent Marker', cursive;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
}

@font-face {
    font-family: 'logo';
    src: url(wicked_mouse/Wicked\ Mouse\ Demo.otf);
}


.menu {
    position: fixed; /* Change to fixed for better mobile experience */
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5); /* Add a semi-transparent background */
}

.menu h1.logo {
    font-size: 4rem;
    font-family: 'logo';
    color: white;
    /* opacity: 0.75; */
}

img.logo {
    width: 80px;
    height: 80px;
    border-radius: 100%;
}

.btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap; /* Ensure buttons stay in one row */
}

.social-link {
    text-decoration: none;
}

.btns button.social {
    height: 40px;
    width: 40px;
    min-width: 40px; /* Ensure minimum width */
    background-color: #2C3E50;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 0 #1B2631, 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    position: relative;
}

.btns button.social::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s;
}

.btns button.social:hover::before {
    left: 100%;
}

.btns button.social:hover {
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 6px 0 #1B2631, 0 7px 9px rgba(0,0,0,0.3);
    background-color: #34495E;
}

.btns button.social:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #1B2631, 0 2px 3px rgba(0,0,0,0.3);
}

.btns button.social img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.btns button.social:hover img {
    transform: scale(1.1) rotate(-5deg);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btns button.social {
    animation: pulse 2s infinite;
}

.btns button.social:nth-child(1) {
    animation-delay: 0s;
}

.btns button.social:nth-child(3) {
    animation-delay: 1s;
}

.btns button.buy {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background-color: #D4AF37;
    color: #000;
    font-family: 'Arial Black', sans-serif;
    font-weight: bold;
    border: 0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 0 #B8860B, 0 6px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping */
}
.btns button.buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #B8860B, 0 9px 12px rgba(0,0,0,0.3);
}
.btns button.buy:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #B8860B, 0 3px 6px rgba(0,0,0,0.3);
}

.btns button.social:nth-last-child(2) {
    margin-right: .5rem;
}

.root {
    width: 100%;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;

    background: url(/background.jfif);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    padding: 210px 0 0 0;
}

footer {
    width: 100%;
    padding: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    flex-direction: column;
}

.blur {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* backdrop-filter: blur(1px); */
    background: linear-gradient(to bottom, rgb(0, 0, 0, 0.7),  rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.8));

    /* background-color: rgb(240, 248, 255, 0.1); */
    
}

.content {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    /* opacity: 0.95; */
}

.content h1 {
    font-family: 'logo';
    font-size: 8rem;
    color: white;

}

.content h1:nth-child(1) {
    animation: pop 0.6s infinite ease-in-out;

}

.pin_container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--card_width));
    grid-auto-rows: var(--row_increment);
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.1);
}

.card {
    padding: 0;
    border-radius: var(--card_border_radius);
    background-color: rgb(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    opacity: 0.9;
    box-shadow: 0 0 100px rgb(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.card img.card_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease-in-out;
}

.card:hover img.card_img {
    transform: scale(1.05);
}

.card img:not(.card_img) {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: auto;
}

.card_small {
    grid-row-end: span var(--card_small);
}
.card_medium {
    grid-row-end: span var(--card_medium);
}
.card_large {
    grid-row-end: span var(--card_large);
}

/* Add different animation durations for variety */
.card:nth-child(3n) {
    animation-duration: 5s;
}

.card:nth-child(3n+1) {
    animation-duration: 7s;
}

.logolinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logolinks h1 {
    line-height: 105%;
    font-family: 'Permanent Marker', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.logolinks h1:nth-child(2) {
    font-size: 4rem;
    letter-spacing: .2rem;
    opacity: 0.8;
}


.start {
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
    background-color: #D4AF37; /* Gold color for mafia style */
    color: #000;
    font-family: 'Arial Black', sans-serif;
    font-weight: bold;
    border: 0;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 
        0 6px 0 #B8860B,
        0 8px 10px rgba(0,0,0,0.3);
}
button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}
button .arr {
    height: 25px;
}


@media only screen and (max-width: 750px) {
    .content h1 {
        font-family: 'Permanent Marker', cursive;
        font-size: 6rem;
        color: white;
        text-align: center;
    }
    .logolinks h1 {
        line-height: 105%;
    }
    .logolinks h1:nth-child(2) {
        font-size: 3rem;
        letter-spacing: .2rem;
        opacity: 0.8;
    }

    .content {
        gap: 2.5rem;
    }
    .card {
        margin: 0.5rem;
    }
        
}

@media only screen and (max-width: 600px) {
    .menu {
        padding: 0.5rem;
    }

    .btns {
        gap: 0.5rem;
    }

    .btns button.buy {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btns button.social {
        height: 35px;
        width: 35px;
        min-width: 35px;
    }

    h1.logo {
        font-size: 3rem !important;
    }
    .btns button.buy {
        padding: 1rem .8rem;
        font-size: 1rem !important;
        background-color: rgb(243 189 72);
        color: rgb(0, 0, 0, 0.8);
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        border: 0;
        box-shadow: 0 5px 0 rgb(181, 128, 13);
        border-radius: 0.75rem;
        opacity: 0.95;
    }
    .btns {
        gap: 0.5rem;
    }
    .btns button.social {
        height: 40px;
        width: 40px;
    }
    .btns button.social:nth-last-child(2) {
        margin: 0;
    }

    button .arr {
        height: 20px !important;
    }

    img.logo {
        width: 60px;
        height: 60px;
        border-radius: 100%;
    }
    .root {
        padding: 200px 0 0 0;
    }
}


@keyframes pop {
    50% {
        transform: scale(1.03);
    }
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
    100% {
        transform: translatey(0px);
    }
}

button.social:hover {
    opacity: 0.5 !important;
}

/* Add a new breakpoint for even smaller screens */
@media only screen and (max-width: 400px) {
    .menu {
        padding: 0.3rem;
    }

    .btns {
        gap: 0.3rem;
    }

    .btns button.buy {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .btns button.social {
        height: 30px;
        width: 30px;
        min-width: 30px;
    }
}
@keyframes bouncy-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    75% {
        transform: scale(0.95);
    }
}

.goon-logo {
    max-width: 900px;
    width: 100%;
    height: auto;
    animation: bouncy-scale 2s ease-in-out infinite;
}