/*mobile first */
* { box-sizing: border-box; }

body {
    margin: 13px;
    font-family: 'Courier New', Courier, Arial, sans-serif;
    background-color: black;
    color: white;
    font-size: 18px;
    padding-top: 2px;
}

/*header*/

header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: -60px;
    position: relative;
    z-index: 0;
}

.logo-link {
    position: relative;
    display: block;
    z-index: 1;
}


/*logga*/
.bandlogga {
    width: 90vw;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 1px 0;
}

/*hamburgeikon */
.hamburger {
    position: absolute;
    top: 0.5px;
    right: 0.5px;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100; /*ovanför overlay/meny */
}

.hamburger:focus { outline: 4px solid #444; }

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FE0000;
    transition: 0.25s;
    border-radius: 2px;
}
.hamburger span:nth-child(1) { top: 0;}
.hamburger span:nth-child(2) { top: 8px;}
.hamburger span:nth-child(3) { top: 16px;}

/*kryss när aktiv */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/*sidomeny (mobil 50% av skärmen, skjuten utanför */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%; /* gömd utanför skärmen*/
    width: 50%;
    max-width: 420px; /*begränsa på stora mobilplattor*/
    height: 100%;
    background: #111;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    transition: right 0.28s ease;
    z-index: 1050;
}

.side-menu.active { right: 0; }

.side-menu a {
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    font-size: 18px;
    border-bottom: 1px solid #FE0000;
}
.side-menu a:hover { background: #222; }

.side-menu a:last-child {
    border-bottom: none;
}

/* overlay bakom menyn*/
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    z-index: 1000;
}
.overlay.show { 
    display: block;
    pointer-events: auto;
    opacity: 1;
}


/*sociala medie ikoner*/
.social-icons {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 700px;
    width: 100%;
    gap: 25px;
    margin-top: -50px;
}

.social-icons a {
    position: relative;
}

.social-icons a img {
    width: 8vw;
    max-width: 40px;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: transform 0.2s, opacity 0.2s;
}
.social-icons a:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}






/* kategorier rubriker startsida*/
.categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.category img {
    width: 68vw;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 8px;
}
.category > img {
    transition: transform 0.3s ease;
}

.category > img:hover {
    transform: scale(1.05);
}

.category.spelningar .sectionspelningar {
    margin-top: -20px;
}


.category.ombandet {
    margin-bottom: 35px;
}

.galleri-front img:hover {
    transform: scale(1.05);
}

/*rubriker på varje sida*/ 
.topheader {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: -49px;
}

.topheader img {
    width: 95vw;
    max-width: 300px;
    height: auto;
    display: block;
}

/*Nyheter.html*/
.nyheter-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 40px;
}
.nyheter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #FE0000;
    
}
.nyheter-titel {
    font-size: 20px;
    color: white;
    margin: 0;
}
.nyheter-image {
    width: 90%;
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
}
.nyheter-date {
    font-size: 12px;
    color: #FE0000;
}
.nyheter-text {
    font-size: 14px;
    color: white;
    line-height: 1.4;
    max-width: 500px;
}
.nyheter-item:last-child {
    border-bottom: none;
}

/* Bakgrund för lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

/* Fullstor bild */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/*Stäng knapp*/
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}



/*text under spelningar*/

.sectionspelningar .month,
.sectionspelningar .event {
    max-width: 100%;
}


/*månadsrubrik*/
.month {
    font-size: 25px;
    color: white;
    display: block;
    margin: 32px 0 21px 0;
    border-bottom: 1px solid #FE0000;
}

.spelningar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 80px;
    max-width: 1200px;
}

.spelningar-container .sectionspelningar {
    flex: 1;
}


.event-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid white;
    max-width: 100%;
}

.event-number {
    color: #FE0000;
    width: 20px;
    text-align: left;
    font-size: 18px;
}

.event-text { font-size: 15px; }

.event-link { 
    font-size: 12px;
    color: #FE0000;
    text-align: right;
    cursor: pointer;
    white-space: nowrap;
}

.event-link a {
    color: #FE0000;
    text-decoration: none;
}


/*Bilder vid spelningar*/
.event-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-images img {
    width: 100%;
    max-width: 300px;
    border-radius: 6px;
}

/*Nyheter egen sida*/
.aboutband {
    margin: 50px 0;
}

.aboutband-img {
    width: 80%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.aboutbandtext {
    font-size: 16px;
    max-width: 500px;
    color: white;
    text-align: center;
    margin: auto;
}

.aboutbandfrontsection {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.aboutbandfront {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.aboutbandfront-img {
    max-width: 90%;
    width: 300px;
    height: auto;
    margin-bottom: 15px;
}
.aboutbandfronttext {
    max-width: 90%;
    margin: 0 auto;
    font-size: 15px;
}


/* nyheter frontsidan */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 0.1px solid white;
}
.news-item img {
    width: 80px;
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}
.news-item .news-text {
    font-size: 14px;
    color: white;
    line-height: 1.4;
    flex: 1;
}
.nyheter-link { 
    font-size: 12px;
    text-align: right;
    cursor: pointer;
    color: white;
    white-space: nowrap;
}

.nyheter-link a {
    color: white;
    text-decoration: none;
}



/*Galleri*/
.album-container {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin-top: 60px;
}

.album-container img {
    flex: 1 1 50%;
    max-width: 100%;
    height: auto;
}

.album {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.album img {
    width: 100%;
    height: auto;
}


/*footer*/
.site-footer {
    color: white;
    text-align: center;
    padding: 2px 10px;
    margin-top: 100px;
    border-top: 1px solid #FE0000;
}
.site-footer a {
    color: #FE0000;
    text-decoration: none;
    margin: 0 5px;
}
.site-footer a:hover {
    text-decoration: underline;
}
.footer-links {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-content p {
    margin: 5px 0;
    font-size: 11px;
}

.policylist {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    margin-top: 42px;
    justify-content: center;
}

.policylist li {
    gap: 20px;
}



/* __________________________________________________________________________________*/

/* Större skärmar: visar nav horisontellt och dölj hamburger*/
@media (min-width: 768px) {
    body {
        padding-top: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
    header { height: auto; }
    
    .bandlogga {
        width: 80vw;
        max-width: 600px;
        margin-top: 1px;
        margin-bottom: 1px;
    }
    
    .side-menu a {
        border-bottom: 1px solid #FE0000;
        padding: 23px 21px;
    }
    .side-menu a:last-child {
        border-right: none;
    }
    
    .header-content {
        position: relative;
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -100px;
    }
    
    .bandlogga {
        width: 80vw;
        max-width: 600px;
        height: auto;
        display: block;
        margin: 0;
    }
    
    
    .social-icons {
        position: relative;
        z-index: 20;
        margin-top: -100px;
    }

    
    .categories {
        display: flex;
        flex-direction: row;
        gap: 140px; /*avstånd mellan vänster och höger*/
        max-width: 1200px;
        margin: 20px auto;
    }
    
    /*vänsterkolumn: nyheter + spelningar */
    .left-column,
    .right-column {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 50%;
        align-items: center;
    }
        
    .category {
        width: 100%;
        align-items: center;
        margin: 0;
    }

    
    .category img {
        width: 100%;
        max-width: 400px;
    }
    
    .topheader img {
        width: 40vw;
        max-width: 330px;
    }
    
    .news-item img {
    max-width: 80px;
    }
    
    /*spelningsdatum*/
    .month {
        font-size: 30px;
        max-width: 500px;
    }
    .event {
        max-width: 500px;
    }
    .event-number {
        font-size: 19px;
    }
    .event-text {
        font-size: 17px;
    }

    
    /*bildern under spelningar */
    .event-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }
    .event-images {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .event-images img {
        width: 100%;
        max-width: 300px;
    }
    
    
    
    
    
        /*spelnings lista och bilder, spelningar.html*/
        .spelningar-container {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            max-width: 1200px;
            margin-top: 80px;
        }
        
        .spelningar-container .sectionspelningar {
            flex: 2;
            margin-right: 40px;
        }
        
        .spelningar-container .event-images {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;
            max-width: 500px;
        }
        
        .spelningar-container .event-images img {
            width: 100%;
            height: auto;
            border-radius: 6px;
        }
    
    .spelningar-container .event-images img:first-child {
        margin-top: 1px;
    }
    .spelningar-container .event-images img:last-child {  
        margin-left: 80px;
    }
    

    .aboutbandfrontsection {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;

    }
    .aboutbandfront-img {
        margin-bottom: 15px;
    }
    .aboutbandfronttext {
        max-width: 90%;
        margin: 0 auto;
    }
    

    .album {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }
    .album img {
        width: 50%;
        max-width: 100%;
    }
    
    
}










