:root {
  --main_bg_color: white;
  --text_color_primary: #333333;
  --text_color_secondary: #555555;
  --text_color_button: white;
  --pyladies_pink: #e51f40;
  --pyladies_red: #fa023c;
  --textblock_border_color: #979797;
  --textblock_bg_color: #f1f1f1;
  --footer_bg_color: #333333;
  --footer_text_color: #aeacad;
  --footer_a_color: white;
}

@media (prefers-color-scheme: dark) {
  :root {
    --main_bg_color: black;
    --text_color_primary: #cccccc;
    --text_color_secondary: #aaaaaa;
    --textblock_bg_color: #1c1c1c;
  }
}

html { -webkit-box-sizing: border-box; box-sizing: border-box; }
*, :after, :before { -webkit-box-sizing: inherit; box-sizing: inherit; }

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-size: 16px;
}
body {
    width: 100%;
    height: 100%;
    font-size: 16px;
    background-color: var(--main_bg_color);
    color: var(--text_color_primary);
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

h2 {
    font-size:1.2em;
    text-decoration:none;
}
.plpink {
    color: var(--pyladies_pink);
}
.pltext {
    color: var(--text_color_secondary);
}
a {
	text-decoration: none;
	color: var(--pyladies_red);
}
a:hover {
	text-decoration: none;
	color: var(--pyladies_pink);
}
.content header a, .content .course p:hover {
	text-decoration: underline;
    color: var(--text_color_secondary);
}
.blg {
    border-left: 6px solid var(--textblock_border_color);
}
.blp{
    border-left: 6px solid var(--pyladies_pink);
}

/*  HEADER  */
nav {
    display: flex;
    padding: 0 5%;

}
nav>p{
    padding: 0 0.5em;
}
nav>a {
    color: var(--text_color_primary);
    text-decoration: underline;

}
.page-header {
    position: relative;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--pyladies_red);
}
.page-header h1, .page-header h1 a, .page-header h1 a:visited, .page-header h1 a:active {
    font-size:9vw;
    text-decoration: none;
}
.page-header a{
    padding: 0em 0;
}
.header-text {
    padding: 0 0.5em;
}
.header-text h2, .header-text p {
    margin: 0;
    color: var(--text_color_primary);
}
.logo {
    width: 60vw;
    padding: 1em;
    margin: 0;
}

.header-text {
    display: block;
    width: 100%;

}
.course-name {
    width: 100%;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;

}
.border-b-m {
    border-bottom: 1px solid var(--textblock_border_color);
}
@media all and (min-width: 500px) {
    .logo {
        width: 224px;
        position: absolute;
    }
    .page-header {

        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        position: relative;
        height: 77px;
        text-align: right;
    }
    .page-header h1, .page-header h1 a, .page-header h1 a:visited, .page-header h1 a:active {
        padding-top: 16px;
        font-size: 2em;
        margin-right: 1em;
    }
}
@media all and (min-width: 740px) {
    .course-name {
        font-size: 1.2em;
        padding: 2% 5%;
    }
    .page-header{
        padding: 0em 4em 5em;
        height: 80px;

    }
    .page-header h1, .page-header h1 a, .page-header h1 a:visited, .page-header h1 a:active {
        padding-top: 22px;
        font-size: 3em;
        margin: 0;
        margin-right: 1em;
    }
    .border-b-m {
        border-bottom: none;
    }
    .comments{
        max-width: 800px;
    }
}
/*    */

.course-date {
    display: none
}
.date {
    font-size: 0.8em;
    margin: 0.5em 0 2em;
    display: inherit;
}
.session {
    background-color: var(--textblock_bg_color);
    padding: 14px 14px;
    margin-bottom: 1em;
    display: block;
    color: var(--text_color_secondary);
    font-size: 1em;
}
.session-list>a>.session:hover {
    border-left: 6px solid var(--pyladies_red);
}
.session h2, . h2 {
    margin: 5px 0 10px;
    font-weight: 600;
}
.session p {
    font-weight:600;
    margin:0px 0 0;
    padding:0px 1px 1px;
    line-height:1.2;
}
.session-lesson {
    display: block;
}
.content {
    padding: 5%;
    width: 90%;
    min-height: calc(100% - 155px);
    margin-bottom: 93px;
}
.session-list, .session-detail {
    width: 100%;
    background-color: var(--main_bg_color);
    overflow: auto;
}
.session-detail label {
    display: none;
}
.session-detail textarea {
    padding: 6px 10px 0;
    border: 6px solid var(--pyladies_pink);
    color: var(--text_color_primary);
    background-color: var(--main_bg_color);
    width: 100%;
    display: block;
    font-size: 1em;
}
.session-form {
    margin-top: 2em;
}
.session-name {
    margin-bottom: 1em;
}
@media all and (min-width: 500px) {
    .session {
        width: 100%;
    }
    .content {
        width: 100%;
    }
    .session-name, .session-info {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    h2 {
        font-size: 1.4em;

    }
    .session-name h2, .session-name  {
        margin: 0;
        line-height: 1;
        margin-right: 10px;
        font-weight: 600;
    }
    .session-info, .session-info>p, .date {
        margin: 0;
        font-size: 0.8em;
        line-height: 1em;
    }
    .session-info {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding-top: 10px;
    }
    .session {
        margin: 0 0 3%;
    }
    .current_session {
        padding: 1% 10%;
    }
    .session-list a, .session-detail a {
        display: block;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .session-list a, .session-detail a {
        width: 100%;
    }
}
@media all and (min-width: 740px){
    .course-date {
        font-size: 0.8em;
        margin: 0.5em 0 2em;
        display: inherit;
    }
    .current_session {
        padding: 0 5%;
        margin: 0 0 15px;
    }
    .session-list, .session-detail  {
         padding: 2% 5%;
    }
    .session-list a, .session-detail a {
        padding: 0;
    }

}
@media all and (min-width: 1000px){
    .session, .session-detail textarea {
        width: 70%;
        max-width: 800px;
    }
    .content {
        padding: 1em 11em 3em;

    }
}
/*  COMMENTS  */
.save {
    float: right;
}
.comments {
    padding: 1em;
    display: block;
    width: 100%;
    margin-top: 2em;
    background-color: var(--textblock_bg_color);
}
.comment-info {
    font-weight: 600;
    color: var(--pyladies_red);
}
.comments-info {
    padding: 1em;
    display: block;
    width: 100%;
    background-color: var(--textblock_bg_color);
}
.comment-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.comment-header>h2 {
    margin: 0;
}

.btn, .save {
    width: 250px;
    background-color: var(--pyladies_red);
    color: var(--text_color_button);
    line-height: 2em;
    margin: 1em 0em;
    padding: 0.8em 0em;
    font-weight: 600;
    border: none;
    display: block;
    text-align: center;
    font-size: 1em;
}
.btn-save{
    display: table;
}
.btn:hover, .btn-save>button:hover {
    background-color: var(--pyladies_pink);
    color: var(--text_color_button);
}

@media all and (min-width: 1000px) {
    .comments, .comments-info {
        width: 70%;
        max-width: 800px;
    }
}

/*  FOOTER  */
.footer {
    background: var(--footer_bg_color);
    color: var(--footer_text_color);
    margin-top: -77px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    margin: -15px;
    padding: 15px;
}
.footer .global-pyladies {
    margin: 26px;
    color: var(--footer_text_color);
    float: left;
}
.footer img {
    width: 40px;
    opacity: 0.5;
}
.footer ul {
    display: block;
    float: right;
}
.footer li {
    list-style: none;
    display: inline;
    padding: 0 5px;
}
.footer .clear {
    clear: both;
}
.footer a {
    color: var(--footer_a_color);
}
.global-pyladies {
    float: none;
}
@media all and (min-width: 500px) {
    .footer {
        padding: 0 5em;
    }
}
