/* STARTSIDA */

/* BILD & BILDTEXT */

/* Positionerar bild */
#indexpicture {
    position: relative;
    text-align: center;
    color: #F2F2F2;
}

#indexpicture img {
    width: 100%;
    height: 100%;
}

/* Döljer text och länk på små skärmar */
#indexpicture p,
#indexpicture a {
    display: none;
}

/* Skärmar med minsta bredd 600px */
@media only screen and (min-width: 600px) {

    /* Regler för text som visas */
    #indexpicture p {
        display: block;
        position: absolute;
        top: 71%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Caveat', Arial, sans-serif;
        font-size: 22px;
        padding: 0;
    }

    /* Regler för länk som visas */
    #indexpicture a {
        display: block;
        position: absolute;
        right: 0;
        bottom: 10px;
        font-size: 18px;
        font-weight: 600;
        line-height: 28px;
        text-transform: uppercase;
        text-decoration: none;
        color: #F2F2F2;
        background-color: #202126;
        padding: 10px 30px 10px 20px;
        transition: 0.3s;
    }

    #indexpicture a:hover {
        color: #D94929;
    }
}

/* Skärmar med minsta bredd 700px */
@media only screen and (min-width: 700px) {

    #indexpicture p {
        font-size: 26px;
    }

    #indexpicture a {
        bottom: 15px;
        padding-right: 50px;
    }
}

/* Skärmar med minsta bredd 800px */
@media only screen and (min-width: 800px) {

    #indexpicture p {
        font-size: 30px;
    }

    #indexpicture a {
        bottom: 20px;
    }
}

/* Skärmar med minsta bredd 900px */
@media only screen and (min-width: 900px) {

    #indexpicture p {
        font-size: 34px;
    }

    #indexpicture a {
        bottom: 25px;
        padding-right: 60px;
    }
}

/* Skärmar med minsta bredd 1000px */
@media only screen and (min-width: 1000px) {

    #indexpicture p {
        font-size: 38px;
    }

    #indexpicture a {
        bottom: 30px;
        padding-right: 70px;
    }
}

/* Skärmar med minsta bredd 1100px */
@media only screen and (min-width: 1100px) {

    #indexpicture p {
        font-size: 42px;
    }

    #indexpicture a {
        bottom: 35px;
        padding-right: 80px;
    }
}

/* Skärmar med minsta bredd 1280px */
@media only screen and (min-width: 1280px) {

    #indexpicture p {
        font-size: 48px;
    }

    #indexpicture a {
        bottom: 41px;
        padding-right: 87px;
    }
}


/* TEXTINNEHÅLL */
/* Skärmar med minsta bredd 1000px */
@media only screen and (min-width: 1000px) {

    h1,
    h2,
    p {
        padding-right: 19px;
    }
}


/* LÄNK TILL NYHETER */
#indexnews {
    background-color: #202126;
    height: 50px;
    margin-top: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

#indexnews a {
    color: #F2F2F2;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px;
    padding-right: 100px;
    transition: 0.3s;
}

#indexnews a:hover {
    color: #D94929;
}

/* Skärmar med minsta bredd 600px */
@media only screen and (min-width: 600px) {

    #indexnews {
        height: 116px;
        margin-top: 35px;
        margin-bottom: 35px;
    }

    #indexnews a {
        font-size: 32px;
        padding: 41px;
        padding-right: 200px;
    }
}

/* Skärmar med minsta bredd 1000px */
@media only screen and (min-width: 1000px) {

    #indexnews {
        margin-top: 20px;
        margin-left: 19px;
    }
}


/* BILDSPEL */

/* Container för bildspel */
.slideshow-container {
    position: relative;
    width: 100%;
}

/* Skärmar med minsta bredd 1000px */
@media only screen and (min-width: 1000px) {

    .slideshow-container {
        padding-left: 19px;
    }
}

/* Bilder */
.slides img {
    width: 100%;
    height: 100%;
}

/* Animation */
.slides {
    display: none;
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

/* Fram- och bakåtpilar */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: #F2F2F2;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
}

/* Framåtpil */
.next {
    right: 0;
}

/* Hovereffekt på bakåtpil */
.prev:hover {
    padding-left: 10px;
}

/* Hovereffekt på framåtpil */
.next:hover {
    padding-right: 10px;
}

/* Bildnummer */
.slidenumber {
    color: #F2F2F2;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 10px;
    position: absolute;
    bottom: 8px;
    right: 8px;
}