/* CSS Document */
/* ------------------------------------------------------------------------------- */
/* ---                                                                         --- */
/* ---                      SIDST OPDATERET AF: HALU                           --- */
/* ---                      DATO: 23-10-22 KL. 15:30                           --- */
/* ---                                                                         --- */
/* ------------------------------------------------------------------------------- */

@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;800&display=swap');

@keyframes lysavis {
    0% {
        left: 100%;
      }
    100% {
        left: -100%
    }
}

:root
{
    --aspitgroen: #0d4340;
    --aspitgroenalfa: #0d434040;
    --aspitorange: #FF5747;
    --darkshadow: 2px 2px 2px var(--aspitgroenalfa);
    --lightshadow: 2px 2px 2px #FFFFFF40;
}

body
{
    font-family: 'Lato', sans-serif;
    margin: 0;
    color: #0F0F0F;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--aspitgroen);
    color: white;
    padding: 1rem;
    height: 10vh;
}

header>*
{
    width: 33%;
}

header div
{
    text-align: center;
}

header img
{
    height: 12vh;
}

header h3, header h2
{
    font-size: 1.5rem;
    text-align: right;
    color: inherit;
    font-weight: 400;
}

.week
{
    margin-left: 1rem;
}

.idag
{
    color: var(--aspitorange);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
}

h1 {
    font-size: 3.8em;
    text-shadow: var(--lightshadow);
    display: flex;
    align-items: center;
}

header .spacer
{
    width: 4rem;
    text-align: center;
}

header h2 {
    font-size: 2.5rem;
}

h3 {
    color: var(--aspitgroen);
    margin: 0;
    font-size: 2.1em;
    margin-bottom: 0.3em;
    text-shadow: var(--darkshadow);
}

header input[type=submit]
{
    color: var(--aspitgroen);
    background-color: #FFFFFF70;
    border: 1px solid var(--aspitgroenalfa);
    box-shadow: var(--lightshadow);
    margin-left: 1rem;
    padding: 1.5rem 2.5rem;
    border-radius: 5px;
    font-size: 2rem;
    cursor: pointer;
}

header input[type=submit].active
{
    background-color: whitesmoke;
}

.dag {
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

ul:not(.editoronly) .admin-li div:not(.frokost)
{
    display: none;
}

ul:not(.editoronly) .nytEventIcon
{
    display: none;
}

div.col6:not(.editoronly)
{
    opacity: 0;
}

div.col6:not(.editoronly) button
{
    cursor:default;
}

ul:not(.editoronly) .frokost .deleteicon
{
    display: none;
}

.icon
{
    width: 1.4rem;
    margin-left: 0.5rem;
    opacity: 0.7;
    cursor: pointer;
    color: hsla(0, 0%, 100%, 0);
}

.submiticon
{
    background-image: url(floppy-disk-solid.svg);
    background-repeat: no-repeat;
    border: none;
}

.deleteicon
{
    background-image: url(trash-can-solid.svg);
    background-repeat: no-repeat;
    border: none;
}

.cancelicon
{
    background-image: url(x-solid.svg);
    background-repeat: no-repeat;
    border: none;
}

.nytEventIcon
{
    cursor: pointer;
}

ul li[id*="nytEvent"]
{
    display: none;
}

.hideicon
{
    display: none;
}

.dag .admin-li.timeerror
{
    font-size: 0.9rem;
    color: var(--aspitorange);
    font-style: italic;
    display: none;
}

.dag .admin-li.timeerror.show
{
    display: block;
}

.dag input, .dag label, .dag textarea
{
    font-size: 1.5rem;
    background-color: hsla(0, 0%, 100%, 0);
    flex: auto;
    font-family: 'Lato', sans-serif;
    padding: 0;
    resize: none;
}

.dag input[type=checkbox]
{
    width: 1.5rem;
    height: 1.5rem;
}

.dag input[type=text]:disabled, .dag textarea:disabled
{
    border: none;
}

.dag input[type=text].timefield
{
    flex-grow: 0;
}

i {
    color: black;
    font-size: 1.3rem;
    height: 1rem;
}

.col1 {
    grid-area: mandag;
}
.col2 {
    grid-area: tirsdag;
}
.col3 {
    grid-area: onsdag;
}
.col4 {
    grid-area: torsdag;
}
.col5 {
    grid-area: fredag;
}
.imageslideshow {
    grid-area: image;
}
.oversigt
{
    grid-area: oversigt;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.login form
{
    box-shadow: var(--darkshadow);
    border: 1px solid var(--aspitgroenalfa);
}

.aktiviteter
{
    flex: auto;
    padding: 0.12rem 0.5rem;
}

.aktiviteter .editoronly p
{
    color: #0d434090;
    font-size: 1.1rem;
    font-style: italic;
}

.logout
{
    display: flex;
    /* flex-direction: row-reverse; */
    justify-content: flex-end;
    gap: 1rem;
}

.logout form
{
    width: 50%;
}

.logout .admBtn:nth-of-type(1)
{
    flex-grow: 0;
    background-color: var(--aspitgroenalfa);
    margin: 0.5rem 0 0 0;
    width: 100%;
    font-size: 1.3rem;
}

.dagcontainer, .useradmincol {
    margin-top: 1em;
    width: 33%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.dagcontainer
{
    justify-content: space-between;
}

.row {
    display: flex;
    flex: auto;
}

.login
{
    justify-content: center;
    align-items: center;
}

.login h4
{
    font-size: 1.3rem;
}

.login form
{
    padding: 2rem 5rem;
    position: relative;
}

.login form p, .createUser p
{
    display: flex;
    font-size: 1.2rem;
}

/* STYLING TIL PRAKTIKELEVER.PHP */

.praktikside
{
    width: 50%;
}

[id*="praktikoversigt"] div
{
    display: flex;
}

ul li[id*="praktikoversigt"]
{
    justify-content: flex-start;
}

#praktikoversigt div
{
    width: 7%;
}

#praktikoversigt input
{
    font-weight: bold;
}

#nytEventPr input[type=text]
{
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* STYLING TIL BILLEDER.PHP */

.billedside
{
    justify-content: space-between;
    margin-bottom: 1rem;
}

.billedsideVenstre
{
    width: 66%;
}

.billedsideHojre
{
    width: 33%;
    margin-right: 1rem;
}

.billedside .col1
{
    flex: auto;
}

.billedside .dag .errormsg
{
    position: relative;
    font-size: 1.3rem;
}

.billedside .dag .admBtn[type=submit]
{
    background-color: var(--aspitgroenalfa);
    width: 20%;
}

input[type=file]::file-selector-button
{
    background-color: var(--aspitgroenalfa);
}

.galleri ul
{
    display: flex;
    flex-wrap: wrap;
    max-height: 100%;
}

.galleri ul li:nth-of-type(n)
{
    background-color: white;
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
}

.galleri ul li div
{
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
}

.galleri ul li div input
{
    flex-grow: 0;
    font-size: 1.3rem;
}

.galleri img
{
    width: 200px;
}

/* STYLING TIL USERADMIN.PHP */

.createUser p label
{
    font-size: 1.2rem;
}

.createUser p label, .createUser p select, .createUser p input:nth-of-type(n)
{
    width: 50%;
    flex-grow: 0;
    margin: 0;
}

.createUser p:last-of-type
{
    justify-content: flex-end;
}

.createUser .admBtn:nth-of-type(1)
{
    background-color: var(--aspitgroenalfa);
}

.useradmincol .dag input
{
    font-size: 1rem;
}

.useradmincol .dag .admin-li
{
    justify-content: flex-start;
}

.login form p
{
    flex-direction: column;
}

.errormsg
{
    color: var(--aspitorange);
    font-weight: 500;
    display: none;
    position: absolute;
}

.showalert
{
    display: block;
}

var {
    font-style: normal;
}
/*
768x432 16:9.
*/
.image {
    width: 100%;
    height: auto;
    display: none;
    box-shadow: var(--darkshadow);
}

/*
Eskilds lister der skal ligne paragrapher -.-
*/
ul {
    margin: 0;
    display: inline;
    padding: 0;
}

ul li, .aktiviteter {
    list-style-type: none;
    margin: 0;
    padding: 0.12rem;
    font-weight: 400;
    font-size: 1.5rem;
}

.col6 .admin-ul li
{
    background-color: white;
}

#divAdmin .admin-li:first-of-type
{
    margin-bottom: 0.5rem;
}

.admBtn
{
    color: var(--aspitgroen);
    background-color: var(--aspitgroenalfa);
    border: 1px solid var(--aspitgroenalfa);
    box-shadow: var(--lightshadow);
    padding: 1rem;
    border-radius: 5px;
    width: 50%;
    font-size: 1.3rem;
    cursor: pointer;
}

.admBtn:hover, .createUser .admBtn:nth-of-type(1):hover
{
    background-color: #0d434060;
}

.admBtn:nth-of-type(1)
{
    margin-right: 1rem;
}

ul .admin-li
{
    display: flex;
    justify-content: space-between;
}

ul .praktikoversigt
{
    justify-content: flex-start;
}

ul .praktikoversigt span
{
    width: 50%;
}

ul .praktikoversigt span h4
{
    margin: 0;
    color: var(--aspitgroen);
}

ul .admin-li span
{
    margin: 0 0.3rem;
}

ul .admin-li span, input:disabled, textarea:disabled
{
    color: #0d434090;
}

ul li:nth-child(odd) {
    background-color: whitesmoke;
}

/* STYLING AF FOOTER OG LYSAVIS */

footer:not(.visLysavis)
{
    display: none;
}

footer.visLysavis
{
    display: flex;
}

footer h3
{
    background-color: var(--aspitgroen);
    color: whitesmoke;
    font-size: 1.3rem;
    text-shadow: var(--lightshadow);
    margin: 0;
    padding: 0.3rem;
    width: 10%;
}

footer>.marquee-container
{
    border-top: 1px solid var(--aspitgroen);
    width: 90%;
    position: relative;
    overflow: hidden;
}

footer div.marquee
{
    top: 10%;
    left: 100%;
    width: auto;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    animation: lysavis 30s linear infinite;
}

footer div.marquee2 {
    animation-delay: 15s;
}

footer div span
{
    padding: 0 1.4rem;
    font-size: 1.2rem;
}

@media screen and (max-width: 1200px) {
    .dagcontainer {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-areas: "mandag" "tirsdag" "onsdag" "torsdag" "fredag" "oversigt" "image";
    }

    .row
    {
        flex-direction: column;
    }

    .clock, .spacer, header h3, footer {
        display: none;
    }

    header
    {
        font-size: 0.8rem;
    }
}

