@font-face {
    font-family: stayfont;
    src: url(assets/blurweb-med.ttf);
}

body {
    background-image: url(assets/noisebg.gif);
    background-color: rgb(20, 20, 20);
    background-size: 30%;

    /* ALL text custom */
    color: rgb(255, 255, 255);
    font-family: "Courier New", Courier, monospace;
    font-weight: 400;
}

.layout {
    max-width: 60rem;
    margin: 3vw auto 12px auto;

    display: grid;
    grid:
        "header" auto
        "main" 1fr
        "footer" auto
        / 1fr;
    gap: 8px;
}

.header {
    grid-area: header;
    text-align: center;
    width: 100%;
    height: auto;

    /* border stuff */
    border: 1px ridge rgba(12, 78, 31, 0.47);
    border-radius: 1rem;
}

.main {
    grid-area: main;
}
.footer {
    grid-area: footer;
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
    margin-top: 2rem;
    color: rgba(247, 255, 240, 0.711);
}

h1 {
    font-family: stayfont;
    font-size: 2.3rem;
    text-shadow:
        rgba(177, 209, 96, 0.83) 0px 0px 20px,
        rgb(164, 209, 96) 0px 0px 10px;
    animation: flicker 4s infinite linear;
}

a {
    color: rgb(145, 187, 81);
}

a.backhome {
    color: rgb(164, 209, 96);
    text-decoration: none;
}

a.backhome:hover {
    color: whitesmoke;
}

.clickabletext {
    font-family: stayfont;
    font-size: 2rem;
    color: rgb(255, 255, 255);
    text-shadow:
        rgba(135, 159, 75, 0.83) 0px 0px 20px,
        rgb(109, 146, 55) 0px 0px 10px;
}

.clickabletext:hover {
    color: rgb(198, 227, 191);
}

/* inside .main (main content) */

.content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: auto;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
}

/* .oneone {

} */

.twoone {
    grid-column: span 2 / span 2;
}

.onetwo {
    grid-column-start: 1;
}

.twotwo {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 2;
}

.onethree {
    grid-column: span 3 / span 3;
    grid-row-start: 4;
    /* border stuff */
    border: 1px ridge rgba(12, 78, 31, 0.47);
    border-radius: 1rem;
}

/* spesific objects */
.motorola {
    transform: rotate(5deg);
}

/* animation stuff */

.twoone h1 {
    animation-duration: 3.5s;
    animation-delay: -0.8s; /* Negative delay makes it start instantly at a different frame */
}

.twotwo h1 {
    animation-duration: 5.2s;
    animation-delay: -2.7s; /* Completely out of sync with the first one */
}

@keyframes flicker {
    0%,
    9% {
        opacity: 0.2;
    }
    10% {
        opacity: 0.5;
    }
    13% {
        opacity: 0.2;
    }
    20% {
        opacity: 0.5;
    }
    25%,
    100% {
        /* Added 100% so the text stays solid before restarting the loop */
        opacity: 1;
    }
}
