/* 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');

: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: 3em;
    text-shadow: var(--lightshadow);
    display: flex;
    align-items: center;
    white-space: no-wrap;

}

header .spacer
{
    width: 4rem;
    text-align: center;
}

header h2 {
    font-size: 2.5rem;
}

header form
{
    display: flex;
}

h3 {
    color: var(--aspitgroen);
    margin: 0;
    font-size: 2.1em;
    margin-bottom: 0.3em;
    text-shadow: var(--darkshadow);
}

header input[type=submit], header input[type=week], header select
{
    color: white;
    background-color: #FFFFFF70;
    border: 1px solid var(--aspitgroenalfa);
    box-shadow: var(--lightshadow);
    margin-left: 1rem;
    padding: 0 1rem;
    height: 4rem;
    border-radius: 5px;
    font-size: 1.3rem;
    cursor: pointer;
}

header select option
{
    color: black;
}

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;
}

/* Tilrettet så dem, der indtaster mad også kan tilføje standardaktiviteter */
div.col6 .admin-ul:not(.editoronly) .admin-li:last-of-type
{
    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>li
{
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--aspitgroenalfa);
}

.aktiviteter .futEvents
{
    display: flex;
    gap: 0 0.5rem;
    border: none;
}

.aktiviteter .futEvents div:nth-of-type(1)
{
    flex-shrink: 0;
}

.aktiviteter .futDay
{
    display: inline-block;
    width: 6rem;
}

.aktiviteter:nth-of-type(2) .admin-li div
{
    display: flex;
}

.aktiviteter:nth-of-type(2) .admin-li
{
    gap: 0 0.2rem;
}

.aktiviteter:nth-of-type(2) select
{
    font-size: 1.4rem;
}

.aktiviteter .editoronly p
{
    color: #0d434090;
    font-size: 1.1rem;
    font-style: italic;
}

#formKommendeAktiviteter li input:first-of-type
{
    flex-grow: 0;
}

/* .aktiviteter textarea
{
    min-height: 6rem;
} */

.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;
}

.dagcontainer:first-of-type
{
    justify-content: flex-start;
}


.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: 90%;
}

[id*="praktikoversigt"] div
{
    display: flex;
}

.praktikside ul li
/* ul li[id*="praktikoversigt"] */
{
    justify-content: flex-start;
    gap: 0 0.4rem;
}

#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%;
}

.dagheader, .dagheader div
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dagheader div p
{
    margin-right: 1rem;
}

input[type=file]::file-selector-button
{
    background-color: var(--aspitgroenalfa);
}

.galleri ul
{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-height: 100%;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.galleri ul li:nth-of-type(n)
{
    background-color: white;
    display: flex;
    flex-direction: column;
    
}

.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: 100%
}

#deleteMorePics
{
    cursor: pointer;
}

/* 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(--aspitgroen);
    color: white;
}

.useradmincol .dag input, .useradmincol .dag select
{
    font-size: 1rem;
    background-color: white;
    border: 1px solid grey;
    margin-right: 0.1rem;
    padding-left: 0.2rem;
}

.useradmincol .dag input:disabled, .useradmincol .dag select:disabled
{
    background-color: rgba(0, 0, 0, 0);
}

.useradmincol .dag .admin-li
{
    justify-content: flex-start;
}

.login form p
{
    flex-direction: column;
}

.errormsg
{
    
    font-weight: 500;
    display: none;
    position: absolute;
}

.showalert
{
    display: block;
}

.success
{
    color: var(--aspitgroen);
}

.warning
{
    color: var(--aspitorange);
}

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.noEntry
{
    font-style: italic;
    color: grey;
}

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 a
{
    color: inherit;
    text-decoration: inherit;
}

.logout .admBtn
{
    padding: 1rem 0;
}

/* .hidden and .shown are used for the admin button to insert standard activities. Button is not shown if lunch Wednesday is already entered */
.hidden
{
    visibility: hidden;
}

.shown
{
    visibility: visible;
}

.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;
    align-items: flex-start;
}

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;
    border: none;
}

ul:not(.editoronly) li:nth-child(odd), .aktiviteter .futEvents:nth-child(odd) {
    background-color: whitesmoke;
}

ul#divAdmin li:nth-child(n)
{
    background-color: white;
}

ul.editoronly form: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.5rem 0.7rem;
    white-space: nowrap;
}

footer>.marquee
{
    --gap: 1rem;
    border-top: 1px solid var(--aspitgroen);
    width: 100%;
    position: relative;
    gap: var(--gap);
    /* overflow: hidden; */
}

@keyframes lysavis {
    0% {
        transform: translateX(0);
      }
    100% {
        transform: translateX( calc(-100% - var(--gap)) );
    }
}

footer div.marquee-container {
    display: flex;
    overflow: hidden;
}

footer div.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%;
    gap: var(--gap);

    animation: lysavis 30s linear infinite;
}

footer div.marquee-content span
{
    font-size: 1.2rem;
}

@media screen and (max-width: 1200px) {
    
    header, header form
    {
        flex-direction: column;
        height: 100%;
    }

    header>*
    {
        width: 100%;
    }

    header div, header h2
    {
        display: none;
    }

    .dagcontainer {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-areas: "mandag" "tirsdag" "onsdag" "torsdag" "fredag" "oversigt" "image";
    }

    .row
    {
        flex-direction: column;
    }

    .row li span
    {
        display: none;
    }

    .row li>input
    {
        margin-right: 0.3rem;
    }

    .row li div .icon
    {
        margin-left: 0;
    }

    .clock, .spacer, header h3, footer {
        display: none;
    }

    header
    {
        font-size: 0.8rem;
    }
}

