﻿/* 🔹 Grundlayout */
body {
    background-color: black;
    color: white;
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* 🔹 Meny */
nav {
    border-bottom: 3px solid #ff0000;
    padding-bottom: 6px;
    margin-bottom: 5px;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .menu a {
        text-decoration: none;
        color: white;
        font-weight: bold;
        font-size: 1.1rem;
        transition: color 0.2s;
    }

        .menu a:hover {
            color: #ff4444;
        }

/* 🔹 Flaggor */
.lang-flags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 10px;
}

    .lang-flags img {
        width: 28px;
        height: 20px;
        cursor: pointer;
        border-radius: 4px;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .lang-flags img:hover {
            transform: scale(1.15);
            box-shadow: 0 0 8px red;
        }

/* 🔹 Titel */
.site-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 0 0 2px #b30000, 0 0 4px #ff1a1a;
    margin: 20px 0 10px 0;
    letter-spacing: 3px;
}

/* 🔹 Liten snurrande logga i hörnet */
.corner-logo {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 80px;
    height: 80px;
    perspective: 600px;
    z-index: 50;
}

    .corner-logo img {
        width: 100%;
        height: 100%;
        animation: spinY 8s linear infinite;
        filter: drop-shadow(0 0 6px #ff3333);
    }

@keyframes spinY {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* 🔹 Info-text */
#info-text {
    width: 60%;
    margin: 40px auto;
    text-align: left;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #eee;
}

/* 🔹 Banderoll längst ner */
.ticker {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 60%;
    margin: 0 auto;
    border-top: 2px solid #ff0000;
    border-bottom: 2px solid #ff0000;
    padding: 10px 0;
}

#ticker-text {
    display: inline-block;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 2px;
    animation: scrollLoop 25s linear infinite;
}

    #ticker-text::after {
        content: attr(data-text);
        padding-left: 60px;
    }

@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 🔹 Footer */
footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #ccc;
}
