:root {
    --fallback-bg-color: #32353b;
    --header-footer-bg-color: #23262c;
    --heading-color: #fafafa;
    --section-bg-color: #32353b;
    --link-color: yellow;
    --text-color: cyan;

    --error-color: red;
}

body {
    /*background color som fallback*/
    background-color: var(--fallback-bg-color);
    background-image: url("../img/GOONES.jpg");
    /*gör att bakgrunden täcks av bilden*/
    background-size: cover;
    /*Bara en bild*/
    background-repeat: no-repeat;
    /*Bakgrundsbilden sitter still när man skrollar*/
    background-attachment: fixed;
    /*sätter bakgrunsbilden i mitten så goones alltid syns.*/
    background-position: center;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

img {
    max-width: 100%;
}

header, footer {
    background-color: var(--header-footer-bg-color);
    border-radius: 15px;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 70px;
    margin: 0;
    background-color: var(--fallback-bg-color);
    color: var(--heading-color);
    border-radius: 15px;
    padding: 10px 0px;
    margin: -20px;
}

.no-link {
    cursor: not-allowed;
    color: var(--error-color);
}

nav {
    margin-top: 20px;
    margin-bottom: -20px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 20px 0;
    overflow: scroll;
    display: flex;
    justify-content: center;
    position: relative;
    height: 19.5px;

    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
nav::-webkit-scrollbar {
  display: none;
}

.nav-scroll {
    position: absolute;
    display: flex;
    gap: 50px;
}

.hidden-links {
    display: none;
}

/*Måste ändras vid ny länk*/
@media screen and (max-width:670px) {
    .hidden-links {
        display: block;
    }
}


section {
    background-color: var(--section-bg-color);
    padding: 20px;
    margin: 60px auto;
    width: 80%;
    border-radius: 15px;
    max-width: 900px;
    color: var(--heading-color);
}



a {
    color: var(--link-color);
}

li {
    margin: 20px 0px;
}

li,p {
    color: var(--text-color);
}

footer nav {
    margin: 0;
    justify-content: center;
    width: 100%;
}
footer {
    padding: 0;
    display:flex;
    justify-content: space-between;
}

.footer-side {
    margin: auto 10px;
    text-align: center;
}

.spread {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width:770px) {
    .footer-side {
        margin: auto 2px;
    }
}

.marquee-holder {
    background: var(--section-bg-color);
    padding: 0.5rem;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    border-radius: 10px;
}

.marquee {
    animation: slide 7s linear infinite;
    color: var(--error-color);
    font-weight: bold;
}

@keyframes slide {
    0% {
        transform: translateX(100%)
    }

    100% {
        transform: translateX(-100%)
    }
}

@media screen and (max-width:907px) {
    
    footer {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto;
        grid-template-areas: "n n n" "c . t";
    }

    footer > nav {
        justify-content: center;
        grid-area: n;
        background-color: var(--fallback-bg-color);
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    footer > .copyright {
        grid-area: c;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 20px;
    }

    footer > .terms {
        grid-area: t;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-right: 20px;
        text-align: right;
    }
}