@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Double:wght@100..900&family=Jersey+10&display=swap');

html, body {
    height: 100%;
}

@keyframes bob-up-down {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(var(--bob-amount));
        }
        100% {
            transform: translateY(0);
        }
    } 

body {
    min-height: 100vh;
    margin: 0;
    background-color: #a19377;
    background-image: url("pixel.jpeg");
    background: url("pixel.jpeg") center center / cover no-repeat fixed;
}

h1 {
    color: green;
    text-align: center;
    font-family: "Bitcount Grid Double", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "slnt" 0, "CRSV" 0.5, "ELSH" 0, "ELXP" 0;
    font-size: 5rem;
    margin-top: 8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1, h3 {
    --bob-amount: -1rem;
    animation: bob-up-down 1.8s ease-in-out infinite;
}

.credit{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  color: white;
  text-align: center;
  font-family: "Bitcount Grid Double", system-ui;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "slnt" 0, "CRSV" 0.5, "ELSH" 0, "ELXP" 0;

}

.gameboy {
    height: 150px;
    width: auto;
    transition: transform 0.25s ease-in-out;
}

.gameboy:hover {
    transform: scale(1.3);
    transition: transform 0.25s ease-in-out;
    
}
.codesection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 2rem;
}

.codesection h2 {
    padding: 1rem;
    background-color: #3099f0;
    border-radius: 30px;
    border: 4px solid white;
}

pre {
    background: black;
    max-height: 400px;
    max-width: 800px;
    width: 90%;
    border: 10px solid white;
    border-radius: 30px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
    overflow-x: auto;
}

code {
    padding: 1rem;
    color: white;
    font-size: 1.1rem;
}

.code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

#copybutton {
    position: absolute;
    top: 2rem;
    right: 4rem;
    z-index: 1;
    background-color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: blue;
}

#copybutton:hover {
    background-color: lightgrey;
    transition: background-color 0.25s ease-in-out;
}

.top-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    padding: 12px 60px;
    border: 4px solid white;
    border-radius: 30px;
    display: flex;
    gap: 40px;
    box-shadow: 0 0 20px lightblue;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.2s;
}

.top-nav a:hover {
    color: white;
    text-shadow: 0 0 8px lightskyblue;
    transform: scale(1.1);
}
