@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Ubuntu&family=Open+Sans:wght@700&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.1rem;
}

body {
    margin: 0px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
}

header {
    width: 100%;
    background-color: cornflowerblue;
    box-shadow: 2px 2px 2px black;
    display: flex;
    justify-content: center;
    text-shadow: 1px 1px #000;
}

header a {
    color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

h1 {
    font-size: 1.6rem
}

h2 {
    font-size: 1.4rem;
}

img {
    max-width: 100%;
}

main {
    width: 100%;
    background-color: #dddddd;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    
}

nav {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 100%;
    max-width: 1000px;
}

.menuContainer {
    width: 100%;
    background-image: linear-gradient(#dddddd, #ffffff, #dddddd);
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

/*nav a {
    background-color: cornflowerblue;
    padding: 4px;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
    color: white;
    border: 1px solid black;
    text-decoration: none;
    width: 24%;
    text-shadow: 1px 1px 1px black;
}*/

nav a {
    background-color: cornflowerblue;
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
    color: white;
    border: none;
    text-decoration: none;
    width: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background-color: royalblue;
    transform: translateY(-2px);
}


footer {
    background-color: cornflowerblue;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 0.5;
    padding-top: 20px;
    padding-bottom: 20px;
}

footer ul {
    list-style: none;
    color: #ffffff;
}

footer a {
    color: #ffffff;
}

.mainContent {
    max-width: 1000px;
    flex-grow: 1;
    border-left: 1px solid black;
    border-right: 1px solid black;
    padding: 8px;
    background-color: white;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0px 2px 4px #222222;
}

#mainMenuDesktop > a {
    margin-left: 2px;
    margin-right: 2px;
}

#menuButton {
    display: none;
    background-color: cornflowerblue;
    background-image: url("../images/hamb.gif");
    background-position: center;
    color: white;
    border: 1px solid white;
    width: 64px;
}

#veckaIdag {
    min-height: 400px;
    width: 100%;
    background-color: lightslategray;
    color: white;
    font-size: 4rem;
    padding-top: 100px;
    text-align: center;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

th {
    height: 48px;
    background-color: cornflowerblue;
}

td, th {
    padding: 8px;
}

table, th, td {
    border-bottom: 1px solid;
    text-align: center;
}

tr:nth-child(even) {
    background-color: cornflowerblue;
}

tr:hover {
    background-color: grey;
}

.month {
    text-shadow: 1px 1px #000;
}

.veckoNr {
    z-index: 100;
    position: absolute;
    float: left;
    background-color: #dddddd;
    border-radius: 50%;
    padding: 2px;
    font-size: 10px;
}

.rodDag a {
    color: #cc0000 !important;
}

.currentWeek {
    background-color: #dddddd !important;
}

.currentDay {
    border: 1px solid red !important;
}


.inp {
    width: 80%;
    padding: 4px;
    border: 1px solid black;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.inp2 {
    padding: 4px;
    border: 1px solid black;
    border-radius: 5px;
    width: 30%;
    background-color: white;
}

.errorMessage {
    color:#cc0000;
    font-weight: bold;
    background-color: pink;
    padding: 4px;
    border: 1px solid #cc0000;
}

.successMessage {
    color:#007700;
    font-weight: bold;
    background-color: lightgreen;
    padding: 4px;
    border: 1px solid #007700;
}

.centerAd {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

.info {
    background-color: #dddddd;
    padding: 8px;
    padding-left: 16px;
    padding-right: 16px;
    border: 1px solid black;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: justify;
}

.tl {
    text-align: left;
}

#topMenu {
    display: flex;
    text-align: center;
    justify-content: flex-end;
    width: 100%;
    background-color: black;
    color: #ffffff;
    padding: 2px;
    padding-right: 20px;
}

#topMenu a {
    color: #ffffff;
    text-decoration: none;
    font-size: small;
    margin-right: 16px;
}

#topMenu a {
    background-color: cornflowerblue;
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
    color: white;
    border: none;
    text-decoration: none;
    width: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.days li a {
    font-size: 14px;
    color: #777;
    text-decoration: none;
}

.days li a:hover {
    color: #000;
    text-decoration: underline;
}

.shareLinks {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.8;
    margin-top: 50px;
    text-align: center;
}

.lh2 {
    line-height: 2;
}

.toolsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 8px;
    margin-top: 16px;
    margin-bottom: 32px;
}

.toolsGrid > div {
    background-color: #dddddd;
    padding: 4px;
    border-radius: 5px;
    text-align: center;
}

.infoSection {
    display: block;
    text-align: left;
}

form > input[type="submit"] {
    background-color: cornflowerblue;
    color: white;
    border: 1px solid black;
    border-radius: 5px;
    padding: 4px;
    margin-top: 8px;
}

.textCenter {
    text-align: center;
}

.monthsWrapper {
    display: flex;
    flex-wrap: wrap;
  }
  
  .monthContainer {
    flex: 1 1 50%; /* Gör så att två monthContainer placeras på rad */
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
  }

  .inpBtn {
    max-width: 150px;
}

.infoText {
    text-align: left;
}

.center {
    display: flex;
    align-items: center;
    flex-direction: column;
}

details {
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 8px;
    padding: 12px;
    background-color: #eeeeee;
    border-radius: 4px;
}

details > summary {
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
}

.flexBetweenCenter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
}

#currentMonth {
    text-align: center;
}

.published-info {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.shareSection {
    margin-top: 150px;
}

.shareTitle {
    font-size: 1.2em; /* Större fontstorlek för rubriken */
    margin-bottom: 4px; /* Lite utrymme under rubriken */
    text-align: center; /* Centrera rubriken */
}

.shareLinks {
    display: flex; /* Använd flexbox för att arrangera ikonerna */
    gap: 15px; /* Utrymme mellan ikonerna */
    justify-content: center; /* Centrera ikonerna */
    margin: 4px 0; /* Lite utrymme över och under */
}

.shareIcon {
    text-decoration: none; /* Ta bort understrykning på länkar */
    font-size: 1.4em; /* Större storlek på ikonerna */
    color: #333; /* Standard färg */
    transition: color 0.3s; /* Lägger till en övergång för färgändring */
}

.shareIcon:hover {
    color: #007bff; /* Färgändring vid hover (justera till önskad färg) */
}

.section-title {
    font-size: 1.8em; /* Större fontstorlek för rubriken */
    margin-bottom: 10px; /* Utrymme under titeln */
    margin-top: 0px;
    color: #333; /* Färg på titeln */
}

.articleSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.artcleSection > article {
    box-shadow: 2px 2px 6px #333;
}

article {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
    background-color: #fff;
    margin-bottom: 16px;
}

.article-title {
    font-size: 1.5em; /* Större fontstorlek för artikelrubriker */
    margin: 10px 0; /* Lite utrymme ovanför och under rubrikerna */
    line-height: 1.2rem;
}

.article-summary {
    font-size: 1em; /* Standard fontstorlek för sammanfattningar */
    color: #666; /* Grå färg för sammanfattningar */
    margin-bottom: 10px; /* Utrymme under sammanfattningen */
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

article a {
    text-decoration: none; /* Ta bort understrykning på länkar */
    color: #007bff; /* Blå färg för länkar */
    transition: color 0.3s; /* Lägger till en övergång för färgändring */
}

article a:hover {
    color: #0056b3; /* Mörkare blå färg vid hover */
}

.thumbnail {
    width: 150px; /* Bredd på bilden */
    height: auto; /* Automatisk höjd för att behålla förhållandet */
    float: right; /* Flytta bilden till höger om texten */
    margin-right: 16px; /* Utrymme mellan bilden och texten */
}

.readMoreLink {
    float: right; /* Flytta länken till höger */
    margin-right: 32px;
    text-decoration: underline;
}

.articleImage {
    width: 100%;
    max-width: 460px;
    display: block;  /* Gör bilden till ett blockelement */
    margin: 0px auto;  /* Centrerar bilden horisontellt */
}

.socialCard {
    background-color: #f8f9fa; /* Bakgrundsfärg för sociala medier-kortet */
    padding: 16px; /* Inre utfyllnad för kortet */
    border-radius: 8px; /* Rundade hörn på kortet */
    margin-bottom: 16px; /* Utrymme under kortet */
}

.socialList {
    list-style-type: none; /* Tar bort punkterna från listan */
    padding: 0; /* Tar bort standard padding */
    margin: 0; /* Tar bort standard marginal */
    display: flex; /* Använder flexbox för att arrangera li-elementen på rad */
}

.socialList li {
    margin-right: 20px; /* Utrymme mellan li-elementen, justera efter behov */
}

.socialList a {
    text-decoration: none; /* Tar bort understrykningen från länkar */
    color: #000; /* Ändra färgen efter behov */
    font-size: 16px; /* Justera textstorleken efter behov */
}

.socialList a i {
    margin-right: 5px; /* Utrymme mellan ikonen och texten */
}




@media screen and (max-width: 550px) {

    header {
        justify-content: space-evenly;
    }

    nav {
        flex-direction: column;
        align-items: center;
        
    }

    #mainMenuMobile {
        display: none;
    }

    #mainMenuDesktop {
        display: none;
    }

    nav a {
        width: 90%;
        margin-top: 8px;
    }

    #menuButton {
        display: block;
    }

    .veckoNr {
        margin-left: -16px;
    }

    .hiddenMobile {
        display: none;
    }

    .toolsGrid {
        grid-template-columns: 1fr;
    }

    .article-summary {
        flex-direction: column;
    }

    .thumbnail {
        width: 100%;
    }

}

@media screen and (max-width: 720px) {
    .monthContainer {
      flex: 1 1 100%; /* Gör så att monthContainer tar upp hela bredden på mindre skärmar */
    }
  }

@media screen and (min-width: 550px) {
    nav {
        display: flex;
        flex-direction: row;
    }

    #mainMenuMobile {
        display: none;
    }

    #menuButton {
        display: none;
    }
}

/*-----------Cookie Banner------------*/
#cookieBanner {
    display: none;
    text-align: center;
    padding: 16px;
    background-color: cornflowerblue;
    border: 2px solid #ffffff;
    width: 80%;
    max-width: 600px;
    box-shadow: 0px 0px 20px grey;
    z-index: 100;
    color: #ffffff;
    position: fixed;
    margin: auto;
    clear: both;
    top: 30%;
    text-shadow: 1px 1px 1px black;
}

#cookieBanner > a {
    color: white;
}

#cookiesOK {
    background-color: green;
    padding: 4px;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
    color: white;
    border: 1px solid black;
    width: 24%;
    text-shadow: 1px 1px 1px black;
}