/* INNEHÅLL
      1. ALLMÄNT
      2. DIV, IMG AND A 
      3. HEADINGS, LABEL AND SPAN 
      4. INPUT
      5. LIST AND TEXTAREA
      6. BUTTONS
      7. MEDIAQERY */



/*/////////////////////////// 1. ALLMÄNT/////////////////////////////////////////////////*/

html {
    margin: 0;
    width: 100%;
    height: 100%;
}


body {
    min-width: 320px;
    width: 100%;
    height: 100%;
    margin: 0;
    /* background-image: url(images/Topographic\ contour\ lines\ vector\ map\ seamless\ pattern_\ Map\ of\ terrain.jpg); */
    background-image: url(images/Magnolia-Leaf-Pattern-Tile_670.png);
    background-repeat: repeat;
    background-size: 400px;
    background-color: rgba(209, 209, 209, 0.425);
}


* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}


section {
    display: flex;
    flex-direction: column;
    align-content: center;
    /* padding-left: clamp(8px, -72px + 0.25vw*100, 175px); */
    /* padding-right: clamp(8px, -72px + 0.25vw*100, 175px); */
    padding-right: clamp(8px, -43.8835px + 0.1621136vw*100, 175px);
    padding-left: clamp(8px, -43.8835px + 0.1621136vw*100, 175px);
    margin-bottom: 60px;
}


/*--for slideshow--*/
section.slidesection {
    height: 95vh;
    /* max-height: clamp(578px, 290.5067px + 90.02784vw, 1506px); */
    max-height: clamp(578px, 261.7px + 90.02784vw, 1477px);
    min-height: 380px;
}


footer {
    margin-top: 15px;
    margin-bottom: 20px;
    display:flex;
    flex-direction:column;
    justify-content: center;
}


footer p {
    margin-left: 70px;
    margin-top: 0px;
    margin-bottom: 0px;
    color: dimgray;
}


hr {
    height: 3px;
    border: 1px solid rgb(165, 165, 165);
    background-color: rgb(165, 165, 165);
}

/*only mobile view*/
hr.mobileView {
    display: none;
}


/*/////////////////////////// 2. DIV, IMG AND A /////////////////////////////////////////////////*/


/*--for slideshow and JSON--*/
div.blackFrame {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    flex: 1;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 20px;
    background-color: black;
}




/*--for slideshow--*/
div.minWrapper {
    position: relative;
    justify-content: center;
    /* background-color:red; */
    display: flex;
    flex-direction: column;
    /* width: min-content; */
    /* width:100%; */
    /* width: calc(-106.65px + 71.25vh); */
    width: calc(-150.9px + 71.25vh);
    max-width: clamp(260px, 46.3px + 67.521vw, 956.85px);
    flex: 1;
    margin-top: 36px;
    margin-bottom: 38px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 0px;
    padding-left: 0px;
}

/*--for slideshow--*/
div#slideshow {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* height: 460px; */
    height: 100%;
    /* max-width: 1000px; */
    /* max-height:500px; */
    min-width: auto;
    margin: 0;
    padding: 0;
}

/*--for slideshow--*/
div#slideshow img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    /* height: 84vh; */
    height: 100%;
    /* max-width:80%; */
    /* max-height:500px; */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/*--for slideshow--*/
div#caption {
    position: absolute;
    /* top: 420px;*/
    /* bottom:0px;; */
    color: white;
    text-align: left;
    transform: translate(-50%, 100%);
    left: 50%;
    bottom: 0%;
    /* width: 300px; */
    width: calc(-150.9px + 71.25vh);
    max-width: clamp(260px, 46.3px + 67.521vw, 956.85px);
    min-width: 135px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5px;
    /* padding-right: 7px; */
    padding-top: 4px;
    font-size: 1rem;
    line-height: 15px;
}





/*--for To Do--*/
div.maxFrame {
    max-width: 1000px;
}

/*--for To Do--*/
div.marginWrapper {
    margin-left: 5%;
    margin-right: 5%;
}

/*--for To Do--*/
div.flexRow {
    display: flex;
    flex-direction: row;
    margin-top: 0px;
    margin-bottom: 15px;
}

/*--for To Do--*/
div.flexRowRight {
    display: flex;
    flex-direction: row;
    margin-top: -10px;
    margin-bottom: 0;
    margin-right: 110px;
    justify-content: flex-end;
}

/*--for To Do--*/
div.flexColumn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 5px;
}




/*--for JSON--*/
div#feed {
    flex: 1;
    margin: 50px 50px 50px 50px;
}

/*--for JSON--*/
div#feed div.feedItemWrapper:not(:last-child) {
    margin-bottom: 70px;
}

/*--for JSON--*/
div.feedTitleWrap {
    /* border:1px solid red; */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
}

/*--for JSON--*/
div.feedTitleWrap a {
    /* border:1px solid blue; */
    display: flex;
}

/*--for JSON--*/
img.iconImg {
    width: 48px;
}

/*--for JSON--*/
img.iconImg:hover {
    opacity: 0.8;
}

/*--for JSON--*/
div.feedDivFilename {
    /* background-color: gray ; */
    color: rgb(185, 185, 185);
    word-break: break-word;
    font-size: 20px;
    text-decoration: underline;
    font-weight: bold;
    padding-left: 20px;
    margin-top: 15px;
}

/*--for JSON--*/
div.feedDivFilename:hover {
    color: rgb(226, 226, 226);
}

/*--for JSON--*/
div.feedInnerWrap {
    background-color: gray;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid rgb(165, 165, 165);
}

/*--for JSON--*/
img.feedImg {
    width: 100%;
    border: 1px solid lightgray;
    border-radius: 10px;
}

/*--for JSON--*/
div.feedDivCaption {
    background-color: inherit;
    color: black;
    font-size: 16px;
    font-size: bold;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 5px;
}

/*--for JSON--*/
div.feedDivAttribution {
    background-color: inherit;
    color: white;
    word-break: break-all;
    font-size: 10px;
    margin-left: 10px;
    margin-right: 10px;
}





/*////////////////////// 3. HEADINGS, LABEL AND SPAN /////////////////////////*/

h2 {
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 20px;
    font-size: 2.5rem;
}

/*--for To Do--*/
h5.extraMargin {
    font-size: 1rem;
    margin: 0;
    margin-right: 60px;
    margin-bottom: 5px;
}



/*--for slideshow--*/
label {
    font-size: 1.2rem;
    font-weight: bolder;
    max-width: 500px;
    margin-bottom: 0px;
    margin-left: 50px;
    margin-right: 10px;
    text-indent: -30px;
    line-height: 1.5;
}

/*--for slideshow--*/
span.nowrap {
    white-space: nowrap;
}



/*////////////////////// 4. INPUT /////////////////////////*/


input {
    font-size: 1rem;
    background-color: white;
    border: 2px solid black;
    height: 30px;
    padding: 3px;
}

/*--for slideshow--*/
input#speedInput {
    width: 40px;
    text-align: center;

}

/*--for To Do--*/
input#todo {
    flex: 1;
    margin-bottom: 5px;
}



/*////////////////////// 5. LIST AND TEXTAREA /////////////////////////*/

/*--for To Do--*/
ul#todoList {
    background-color: white;
    border: 2px dotted black;
    width: 100%;
    min-height: 130px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    padding-left: 35px;
    margin: 0;
    flex: 1;
}

/*--for To Do--*/
li {
    font-size: 24px;
    hyphens: auto;
    /* overflow-wrap: break-word; */
    word-break: break-word;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
    margin-left: 5px;
    padding: 3px 5px;
    line-height: 28px;
    list-style-type: disc;
    cursor: pointer;
}

/*--for To Do--*/
li textarea {
    margin: 0;
    font-size: 24px;
    font-family: inherit;
    width: 100%;
    padding: 2px 5px;
    border: 1px solid black;
    min-height: 32px;
    line-height: inherit;
    overflow-x: auto;
}





/* ////////////////// 6. BUTTONS //////////////////////////// */

button {
    margin-left: 10px;
    background-color: rgb(182, 182, 182);
    padding: 5px;
    cursor: pointer;
    width: 50px;
    border: outset;
}

button:hover {
    background-color: gray;
    border: inset;
}

button:active {
    background-color: rgb(94, 93, 93);
}

button#add {
    height: 30px;
    font-size: 1rem;
    font-weight: bold;
    padding: 2px;
}


button.iconButton {
    /* justify-self: end; */
    margin-top: 5px;
    margin-bottom: 5px;
}




/*/////////// 7. MEDIAQERY ///////////////////////////*/

/* shrink slideshow caption */
@media(max-width:400px) {
    div#caption {
        /* display:none; */
        font-size: 0.75rem;
        line-height: 0.8rem;
        padding-left: 13px;
        padding-right: 13px;
    }

}

/* shrink slideshow caption */
@media(max-height:500px) {
    div#caption {
        /* display:none; */
        font-size: 0.5rem;
        line-height: 0.6rem;
    }
}



/* mobile-view*/
@media(max-width:578px) {

    hr.mobileView {
        display: block;
    }

    
    div#feed {
        margin-left: 30px;
        margin-right: 30px;

    }

    div#feed div.feedItemWrapper:not(:last-child) {
        margin-bottom: 40px;
    }

    div.feedTitleWrap {
        padding-bottom: 7px;
    }

    img.iconImg {
        width: 25px;
    }

    div.feedDivFilename {
        font-size: 16px;
        padding-left: 10px;
        margin-top: 5px;
    }
    
}

