/*** FONTS ***/

@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&display=swap");

/* Body tag. This covers anything on its basic level, from font, to background, etc etc. This is THE structure of the site. */
body {
    font-family: 'Cabin', sans-serif;
    font-size: 18px;
    line-height: 1.3;
    color: #212121;
    background-color: #d8eeff;
}

header {
    text-align: center;
}

footer {
    text-align: center;
    font-size: medium;
}

/* Text-based css */
/* Note: When making several numbers in margin/padding, the values are clockwise. top, right, bottom, left. or: top, right/left, and bottom, like shown below. */

header h1 {
    font-family: "symsans";
    color: #ff9c9c;
    font-size: 48px;
    margin: 17px auto;
}

.heart {
    font-size: 30px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Quicksand';
}

h1 {
    text-align: center;
}

h1, h2 {
    font-weight: 650;
}

#title {
    text-decoration: underline 4px;
    text-decoration-color: var(--underline);
    text-underline-offset: 7px;
}

h3 a {
    font-weight: 700;
}

.news h2 {
    margin-bottom: -10px;
}

a {
    font-style: italic;
    font-weight: 500;
    color: #212121 /*#4c7e35*/ /*#3C72BE*/;
    text-decoration: underline 3px #649f41;
    text-underline-offset: 6px;
}

a:hover {
    /*color: #63c381;*/
    text-decoration: underline 4px #a2d08a;
    text-underline-offset: 6px;
}

hr {
    border: 2px #ff9c9c dashed;
    border-width: 2px 0 0 0;
}

details {
    margin-bottom: 10px;
}

summary {
    text-decoration: underline 4px #83aedb;
    font-weight: bold;
    margin-bottom: 10px;
}

/****** FONT CSS *****/

@font-face {
    font-family: 'symsans';
    src: url('fonts/symsans.woff2') format('woff2'),
         url('fonts/symsans.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'juaregular';
    src: url('fonts/jua-regular-webfont.woff2') format('woff2'),
         url('fonts/jua-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

/***** Media-based css ******/
img {
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

/***** MAIN CONTAINER *****/
main {
    width: 800px;
    margin: 20px auto;
    padding: 20px 25px;
    border: 4px dashed #ff9c9c;
    border-radius: 50px;
    background-color: white;
    /*background-clip: padding-box;*/
    transition-duration: 0.5s;
}

/***** NAVIGATION *****/
header {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #3b3b3b;
}

nav ul,
.tab-button ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    gap: 25px;
    font-size: larger;
    justify-content: center;
}

nav li,
.tab-button li {
    list-style: none;
    display: inline-block;
}

nav a {
    display: inline-block;
    font-style: normal;
    font-weight: 800;
    text-decoration: none;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
    text-decoration-thickness: 6px;
}

/** Navigation colors **/

nav .pink a:hover,
nav .pink a:focus {
    color: #ff9c9c;
    text-decoration-color: #ff9c9c;
}

nav .orange a:hover,
nav .orange a:focus {
    color: #ffae5c;
    text-decoration-color: #ffae5c /*#f9b151*/;
}

nav .yellow a:hover,
nav .yellow a:focus {
    color: #fcde49;
    text-decoration-color: #fcde49 /*#ffec58*/;
}

nav .green a:hover,
nav .green a:focus {
    color: #79cf8f;
    text-decoration-color: #79cf8f /*#8fe077*/;
}

nav .blue a:hover,
nav .blue a:focus {
    color: #9cd9ff;
    text-decoration-color: #9cd9ff;
}

nav .violet a:hover,
nav .violet a:focus {
    color: #d08ae8;
    text-decoration-color: #d08ae8 /*#cf9cf4*/;
}

/***** ROW *****/
.row {
    display: flex;
    flex-direction: row;
    margin: auto;
    transition-duration: 0.5s;
}

/*** CSS Tabs ***/
.tab-button {
    text-align: center;
    padding: 0;
}

.tab-button li {
    margin: auto 5px;
}

.tabwrap section {
    display: none;
}

.tabwrap section:target {
    display: block;
}

/********** PAGE SPECIFIC CODE **********/

/***** INDEX CODE *****/

.sidebar {
    overflow: auto;
    width: 20%;
    padding: auto;
    margin: auto;
    transition-duration: 0.5s;
    order: 1;
}

.banner,
.article {
    width: 80%;
    margin: auto;
    padding: 10px;
    font-size: 16px;
    order: 2;
}

.banner img {
    max-width: 100%;
    border-radius: 20px;
}

.buttons a {
    text-decoration: none;
}

/***** ABOUT CSS *****/

.sidebar_about {
    overflow: auto;
    text-align: center;
    vertical-align: text-top;
    padding-right: 5px;
    width: 26%;
    order: 1;
}

.sidebar_about ul {
    padding-left: 15px;
}

.sidebar_about img {
    border-radius: 40px;
}

.main_about {
    width: 74%;
    vertical-align: text-top;
    padding: 15px;
    order: 2;
}

.main_about img {
    border-radius: 40px;
}

/***** NOTEBOOK CSS *****/

ul.nobullets {
    list-style-type:"";
}

ul.nobullets li {
    margin: 5px 0 5px 0;
}

/***** EXTERNAL CSS *****/
/* Example: clock, status, imood, chat, counters, etc. */

/* STATUS CAFE. index-only */
#statuscafe {
    padding: 0;
    /* border: 0px solid midnightblue; */
}
#statuscafe-username {
    margin-bottom: 0.5em;
}
#statuscafe-content {
    margin: 0;
}

/***** MOBILE VIEW *****/

@media only screen and (max-width: 980px) {
    main {
        width: auto;
        transition-duration: 0.6s;
    }

    .sidebar_about {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        transition-duration: 0.5s;
    }
}

@media only screen and (max-width: 850px) {
    main {
        width: auto;
        align-content: center;
        padding: 15px 25px;
        transition-duration: 0.6s;
    }

    .row {
        display: inline-grid;
        width: 100%;
        margin: auto;
    }

    .banner,
    .article {
        order: 1;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        align-content: center;
        padding: 25px 0 0 0;
        margin: -35px 0 0 0;
        order: 2;
        transition-duration: 0.6s;
    }

    .banner img {
        width: 100%;
        border-radius: 20px;
    }

    .sidebar_about {
        width: 100%;
        align-content: center;
        transition-duration: 0.5s;
    }

    .sidebar_about img {
        width: 40%;
    }

    .main_about {
        width: 100%;
        align-content: center;
        padding: 0;
        margin: auto;
        transition-duration: 0.5s;
    }
    
    nav ul {
        gap: 18px;
        row-gap: 5px;
    }
}

@media only screen and (max-width: 600px) {
    .sidebar_about {
        margin-bottom: 25px;
    }

    .sidebar_about img {
        width: 100%;
    }
    
    nav ul {
        gap: 20px;
        row-gap: 5px;
    }
}
