@font-face {
    font-family: "ProggyClean";
    src: url("ProggyClean.ttf") format("truetype");
}

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: "ProggyClean", monospace;
    background: linear-gradient(0deg, #0e0e0e 4px, transparent 4px),
        linear-gradient(90deg, #0e0e0e 4px, transparent 4px),
        linear-gradient(0deg, #151515 4px, transparent 4px),
        linear-gradient(90deg, #151515 8px, transparent 8px);
    background-size: 16px 16px;
    background-position:
        0 0,
        8px 8px;
    background-color: #0c0c0c;
    padding: 20px;
    overflow: hidden;
}

.container {
    max-width: 900px; /* Dynamically adjust this if necessary */
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    background: #111111;
    padding: 40px 20px;
    border: 3px solid #0a0a0a;
    position: relative;
    box-shadow: inset 0 0 0 3px #303030;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet
    );
    background-size: 300% 100%;
    animation: rainbowAnimation 2s ease-in-out infinite;
}

@keyframes rainbowAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

img {
    max-width: 90%;
    height: auto;
    border: 3px solid #32cd32;
    background: linear-gradient(to bottom, #1a1a1a, #333);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(50, 205, 50, 0.5);
}

h1 {
    font-weight: bold;
    margin-bottom: 20px;
    color: #32cd32;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

h1:hover {
    transform: scale(1.1);
    color: #66ff66;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px; /* Adds spacing between buttons */
    margin: 10px 0;
}

.button {
    flex: 1 1 5%; /* Buttons adapt dynamically */
    display: inline-block;
    padding: 15px 10px;
    margin: 5px;
    font-size: 1.2em;
    color: #ffffff;
    text-decoration: none;
    background: #111111;
    border: 3px solid #0a0a0a;
    box-shadow: inset 0 0 0 3px #303030;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #1b1b1b, #333333);
    border-color: rgba(60, 60, 60, 1);
    transform: scale(1.1);
    box-shadow:
        0 4px 8px rgba(30, 30, 30, 0.6),
        inset 0 0 20px rgba(50, 50, 50, 0.4);
}

.hidden-text {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0);
    z-index: 1000;
    pointer-events: auto;
    transition: color 0.3s ease;
    width: 100px;
    height: 30px;
}

.hidden-text:hover {
    color: rgba(255, 255, 255, 0.7);
}

.heart {
    position: absolute;
    font-size: 8em;
    color: red;
    animation: pop 1s ease forwards;
    pointer-events: none;
}

@keyframes pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .button {
        flex: 1 1 100%; /* Stack buttons on smaller screens */
        padding: 12px 30px;
        font-size: 1em;
    }

    .container {
        max-width: 90%;
        padding: 20px;
    }
}

#fps-counter {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: white;
    background: #111111;
    padding: 10px;
    font-family: "ProggyClean", monospace;
    z-index: 1000;
    border: 3px solid rgba(50, 50, 50, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease-in-out;
}

#fps-counter:hover {
    background: rgba(30, 30, 30, 0.9);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #fps-counter {
        display: none;
    }
}

