/* * {
  outline: 1px solid pink;
} */

:root {
    --basecolor: #333;
    --backgroundcolor: #e8e5e2;
    --backgroundcolor: #f2f0e3;
    --backgroundcolor: #f6f4ed;
    --linkcolor: #c60000;
    --accentcolor: #c60000;
    --hovercolor: #ccc;
    --svgstroke: var(--basecolor);
    --font: "Crimson Text";
}

@media (prefers-color-scheme: dark) {
    :root {
        --basecolor: #ccc;
        --backgroundcolor: #3a3a39;
        --linkcolor: #ffcc00;
        --accentcolor: #ffcc00;
    }
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0px solid #fc0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    /* font-family: "Roboto", Arial, sans-serif; */
    font-family: var(--font), Georgia, "Times New Roman", Times, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    color: var(--basecolor);
    text-align: left;
    background-color: var(--backgroundcolor);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    scroll-behavior: smooth;
    height: 100vh;
}

textarea:focus,
input:focus,
a:focus {
    outline: none;
}

h1 {
    font-size: 1.8em;
    margin: 0 0 20px 0;
    line-height: 120%;
    letter-spacing: 0;
    font-weight: 900;
}

h2 {
    font-size: 1.4em;
    margin: 30px 0 20px 0;
    padding: 0;
    font-weight: 900;
}

h3 {
    margin: 0 0 0px 0;
    padding: 0;
    line-height: 120%;
    font-size: 20px;
}

p {
    margin: 0 0 16px 0;
}

a {
    color: var(--linkcolor);
    border: none;
    text-transform: none;
}

a:hover {
    color: var(--basecolor);
}

img {
    border: none;
    max-width: 100%;
}

br {
    clear: both;
}

i {
    font-weight: inherit;
}

ul,
ol {
    margin-left: 40px;
}

li {
    margin: 0 0 12px 0;
    padding: 0;
}

a img {
    border: none;
    background: 0;
}

strong {
    font-weight: 800;
}

blockquote {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: normal;
    font-size: 1.5em;
    line-height: 180%;
    color: rgb(100, 100, 100);
    border: 0px solid #ccc;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
}

table {
    font-size: inherit;
}

th,
td {
    padding: 4px 10px 4px 0;
}

header {
    position: fixed;
    left: 0;
    right: 0;
    height: 100px;
    padding: 0 100px;
    line-height: normal;
    padding-bottom: 15px;
    display: grid;
    place-items: end right;
    border-bottom: 0px solid var(--basecolor);
    background-color: transparent;
    z-index: 10;
    transition: all 0.3s;
}

header i {
    color: var(--basecolor);
}

header a {
    border: none;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    text-align: center;
    font-size: 0.8em;
}

#wrapper {
    position: absolute;
    margin: 0;
    padding: 0px;
    border: 0px solid #ccc;
    display: inline-block;
    width: 100%;
    min-height: 100vh;
    background-color: var(--backgroundcolor);
    text-align: center;
}

#frontwrap {
    position: relative;
    border: 0px solid #fc0;
    width: 100%;
    height: 100vh;
    display: grid;
    place-items: center;
    padding: 0;
    transition: all 1000ms;
    /*background-image: url("images/vagskal_konsum.webp");
    background-repeat: no-repeat;
    background-size: cover;*/
}

#fronttext {
    position: relative;
    padding: 20px 40px;
}

#fronttextbkg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: green;
    border-radius: 20px;
    opacity: 0;
    z-index: 0;
}

#frontwrap h1 {
    position: relative;
    font-size: 3.2em;
    line-height: 100%;
    color: var(--basecolor);
    margin: 0;
    text-align: center;
    z-index: 1;
}

#fronttag {
    position: relative;
    font-size: 1.5em;
    color: var(--basecolor);
    font-style: italic;
    z-index: 1;
}

#frontimage {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

#frontimage svg {
    width: 100%;
    height: 100%;
    transition: all 0.5s;
}

#frontimage svg path {
    stroke: var(--svgstroke) !important;
}

#frontimage svg rect {
    stroke: var(--svgstroke) !important;
}

#gruppcensur {
    position: relative;
    width: 90%;
    display: grid;
    border: 0px solid #333;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    margin-bottom: 20px;
}

.gruppimage {
    width: 200px;
    height: auto;
}

.gruppimage svg {
    width: 100%;
    height: 100%;
}

.gruppimage svg path {
    stroke: var(--svgstroke) !important;
}

.grupptext {
    font-style: italic;
    font-size: 0.8em;
}

#vagskal {
    position: relative;
    width: 90%;
    border: 0px solid #333;
    place-items: center;
    margin-bottom: 40px;
    animation: appear linear;
    animation-timeline: view();
}

@keyframes appear {
    from {
        scale: 0.9;
    }
    to {
        scale: 1;
    }
}

#vagskal svg {
    width: 100%;
    height: auto;
}

#content,
#page {
    position: relative;
    padding: 40px;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 200px;
    margin-bottom: 200px;
    height: auto;
    width: 100%;
    max-width: 780px;
    text-align: left;
    line-height: 160%;
    border: 0px solid pink;
}

#logowrap {
    position: absolute;
    left: 40px;
    top: 40px;
    padding: 0;
    width: 160px;
    height: auto;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 0;
}

#logowrap svg {
    width: 100%;
    height: 100%;
}

.closebutton {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0px;
    right: 0px;
    background-color: var(--basecolor);
    z-index: 1;
    display: block;
    cursor: pointer;
}

#uplink {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--basecolor);
    border-radius: 14px;
    display: none;

    a {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        line-height: 0;
        display: grid;
        place-items: center;
    }
}

#uplink:hover {
    background-color: var(--accentcolor);
}

#uplink svg {
    width: 60% !important;
    height: 60% !important;
    color: var(--backgroundcolor);
}

.ingress {
    font-size: 1.5em;
    font-style: italic;
    line-height: normal;
    margin-bottom: 60px;
}

/* PAYPAL */
#paypalwrap {
    position: relative;
    border: 0px solid #ccc;
    z-index: 1;
}

#paypalform {
    position: relative;
    display: block;
}

#paypalerror,
#paypalsuccess,
#paypalprogress {
    position: relative;
    display: none;
}

#userform {
    display: block;
    margin-bottom: 20px;
}

/* END PAYPAL */

/* NAV */
nav {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    border: 0px solid pink;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav li {
    margin: 0;
}

nav a {
    position: relative;
    border: none;
    text-decoration: none;
    padding: 4px 20px;
    border-radius: 20px;
    background-color: var(--basecolor);
    color: var(--backgroundcolor);
    line-height: normal;
    transition: all 200ms;
}

nav a:hover {
    background-color: var(--accentcolor);
    color: var(--backgroundcolor);
}

nav .active {
    background-color: var(--accentcolor);
    color: var(--backgroundcolor);
}

/*nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 0%;
    height: 100%;
    border-radius: 20px;
    background-color: red;
    z-index: 1;
    transition: all 0.5s linear;
}

nav a:hover::before {
    width: 100%;
}*/

.menubutton {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    display: none;
}

.menubutton svg {
    width: 40px;
}

#menuclosebutton {
    display: none;
    z-index: 20;
}

#tryckbildtext {
    display: grid;
    grid-template-columns: 300px 280px;
    gap: 20px;
    margin-bottom: 20px;
}

#tryckbildtext div:last-child {
    font-style: italic;
    font-size: 0.9em;
    padding-top: 20px;
}

@media screen and (max-width: 900px) {
    body {
        font-size: 20px;
    }

    header {
        padding-right: 30px;
    }

    #logowrap {
        width: 100px;
    }

    #frontwrap {
        padding: 40px 0;

        h1 {
            font-size: 3em;
        }
    }

    #frontimage {
        display: none;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        place-items: center;
        z-index: 10;
        background-color: var(--backgroundcolor);
        display: none;
    }

    nav ul {
        flex-direction: column;
    }

    .menubutton {
        display: block;
    }

    /*
    #tryckbildtext {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #tryckbildtext div:last-child {
        font-style: italic;
        font-size: 0.9em;
        padding-top: 20px;
    }*/
}
