/*
 * Theme Name: johanstoltz.se
 * Theme URI: N/A
 * Description: N/A
 * Version: 3.0.0
 * Author: Johan Stoltz
 * Author URI: https://johanstoltz.se
 * Tags: N/A
 * Text Domain: N/A
 * Domain Path: N/A
 * Tested up to: N/A
 * Requires at least: N/A
 * Requires PHP: N/A
 * License: N/A
 * License URI: N/A
 */

/* GLOBAL */

html {
    font-size: 100%;

}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;

}

body {
    background-color: whitesmoke;
}

/* GLOBAL: Links */

a:link {
    color: #FFF5EE;
    text-decoration: none;
    font-style: normal;
    transition: color 0.2s ease-out;
}

a:visited {
    color: #FFF5EE;
    font-style: normal;
}

a:hover {
    color: rgb(225, 225, 230);
    transition: color 0.8s ease;
}

a:hover, a:visited {

}

/* HEADER */

/* HEADER: Banner */

#border{
    display: flex;

}

.borderPicture{
    position: static;
    width: 100%;
    height: 150px;
    border-radius: 5px 5px 0px 0px;
    object-fit: cover;

}

/* HEADER: Navigering */

#tableWrapper {
    width: 100%;
    background-color: whitesmoke;

}

#buttonCell {
    height: 3rem;
    width: 18%;

}

.navButton {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 100%;
    background-color: whitesmoke;
    margin: 0px 0px 0px 5px;
    font-size: 1.2rem;
    color: grey;
    font-family: Verdana, Arial, sans-serif;

}

.navButtonContact {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 100%;
    background-color: hsla(0, 1%, 32%, 1);
    padding: 1px 5px 0px 5px;
    font-size: 1rem;
    color: #FFF5EE;
    font-family: Verdana, Arial, sans-serif;

}

.navButton:hover {
    transition: 0.5s ease;
    font-weight: bold;
    text-shadow: 0px 0px 5px grey;

}



.navButtonContact:hover{
    background-color:hsla(250, 100%, 40%, 1);

}

@media screen and (max-width: 1000px) {
    .navButton, .navButtonContact {
        width: 100%;
        font-size: 0.8rem;


    }

    #buttonCell {
        width: 50rem;
        justify-content: center;
        padding-right: 0.5rem;

    }

    #buttonCell:hover {
        border: none;
    }

    #tableWrapper {
        display: flex;
        justify-content: center;
    }
}


/* BODY */

#bodyWrapper {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;

}

#divAlpha {
    height: 500px;
    flex: 0 0 20%;

}

#divBeta {
    height: 500px;
    flex: 0 0 60%;

}

#divGamma {
    height: 500px;
    flex: 0 0 15%;

}

@media screen and (max-width: 1661px) {
    #bodyWrapper {
        flex-direction: column;

    }
    #divAlpha,
    #divBeta,
    #divGamma {
        flex: 0 0 100%;
    }
}


/* BODY: Home */

/* Front News */

#news { /*Table ID*/
    margin: 10% auto 10% auto;
    padding: 5px 3px 5px 3px;
    border-color: hsla(0, 1%, 32%, 0.2);
    border-radius: 5px;
    width: fit-content;
    background-color: hsl(0, 1%, 32%, 1);

}

#tableHeader { /*Table Header*/
    padding: 1rem 0rem 0.01rem 1rem;
    color: #FFF5EE;
    text-align: left;
    font-size: 1.4rem;
    font-family: Verdana, Arial, sans-serif; /* Skilj på font-family och font-style. */

}

#tableHeaderText { /*Rubrik i table*/
    text-align: center;
    font-size: 1.2rem;
    padding: 3rem;
    font-family: Georgia, Times, serif;
    font-style: italic;
    color: #FFF5EE;

}

#tableRow:hover { /*Table Row*/
    background-color: hsla(0, 0%, 60%, 0.5);

}

#tableImage { /*Table image*/
    min-width: 200px;
    max-width: 250px;
    min-height: 100px;
    max-height: 150px;
    padding: 2px 1px 2px 5px;

}

#tableParagraph { /*Table Paragraph*/
    text-align: justify;
    min-width: 100px;
    max-width: 500px;
    min-height: 50px;
    max-height: 100px;
    margin: 0px;
    padding: 2rem;
    overflow: scroll;
    font-family: Georgia, Times, serif;
    font-size: 1rem;
    color: #FFF5EE;
    border-radius: 10px 10px;
    line-height: 1.8rem;


}

@media screen and (max-width: 1200px) {
    #tableHeaderText {
        font-size: 1.1rem;

    }

    #tableImage {
        min-width: 8rem;
        max-width: 12rem;
        min-height: 3rem;
        max-height: 8rem;
        padding-top: 3rem;

    }

    #tableParagraph {
        font-size: 1rem;

    }

}

@media screen and (max-width: 1102px) {
    #news {
        border-radius: 0px;

    }
}

@media screen and (max-width: 700px) {
    #news {
        padding-bottom: 2.5%;
    }
    #tableHeaderText {
        font-size: 1rem;

    }

    #tableImage {
        display: none;

    }

    #tableParagraph {
        font-size: 1rem;
        line-height: 1.8rem;

    }

}

@media screen and (max-width: 550px) {
    #tableHeaderText {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

/* BODY: About */

/* About */

#aboutPicWrapper {
    box-sizing: border-box;
    width: 33%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 1rem 0.5rem 0.5rem 1rem;

}

#aboutPicDiv {
    flex: 0 0 100%;

}

.aboutPic {
    width: auto;
    height: 35rem;
    object-fit: contain;
    transition: 0.5s ease-out;

}

#aboutPicCredits {
    flex: 0 0 100%;
    font-size: 1rem;

}

#paragraphAbout {
    margin: 0.5rem 2rem 0rem 2rem;
    padding-top: 0.25rem;
    text-align: justify;

}

.aboutFlex {
    flex: 0 0 100%;

}

@media screen and (max-width: 1681px) {
    #paragraphAbout {
        padding-top: 14%;
    }
}

@media screen and (max-width: 1661px) {
    #paragraphAbout {
        padding-top: 1rem;
        margin-left: 0.5rem;
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));

    }
}

@media screen and (max-width: 1000px) {
    #paragraphAbout {
        padding-top: 1rem;

    }

}

@media screen and (max-width: 650px) {
    .aboutPic, .aboutPic:hover {
        width: 100%;
        max-width: 25rem;
        height: auto;

    }

    #aboutPicWrapper {
        width: 90%;

    }

    #paragraphAbout {
        padding-top: 1.5rem;

    }

}
/* BODY: Contact */

#frame { /* Actual table */
    margin: 10vh auto 5vh auto;
    padding:0px 15% 5px 15%;
    border-color: hsla(0, 1%, 32%, 0.2);
    background-color: hsl(0, 1%, 32%, 1);
    transition: 1s ease-out;
    width: 100%

}

#tableRowContact { /* Row with information */
    text-align: justify;
    margin: 0px;
    padding: 5rem 1rem 5rem 1rem;
    font-family: Georgia, Times, serif;
    font-size: 1.5rem;
    color: #FFF5EE;
    border-radius: 10px 10px;
    transition: 1s ease-out;

}

#frame:hover {
    transition: 1s ease-in;
    background-color: hsla(0, 0%, 96.08%, 0.5); /* whitesmoke in hsla */
    #tableRowContact {
        color: black;

    }

}

.contactFlexDirection {
    flex-direction: column;

}

.contactFlex {
    flex: 0 0 100%;

}

.thContactMe {
    display: none

}

@media screen and (max-width: 900px) {
    #frame {
        border-collapse: collapse;

    }

    #tableRowContact {
        padding: 5vh 3wv 5vh 3wv;
        font-size: 1rem;

    }

}

@media screen and (max-width: 380px) {
    .tdContactMe {
        display: none;

    }

}

/* BLOG POSTS */

#textWrapper {
    margin: 1vh 1vw 1vh 1vw;
    padding: 1vh 6vw 1vh 6vw;
}

article {
    h1 {
        font-family: Georgia, Times, serif;
        font-size: 2.5rem;
        color: grey;

    }

    h2 {
        font-family: "Gill Sans", sans-serif;
        font-size: 1.5rem;
        color: black;

    }

    p {
        font-family: Georgia, Times, serif;
        font-size: 1.2rem;
        color: black;
        text-align: justify;
        text-align: left;
        padding-bottom: 2vh;
    }

}
