/* green notices box */

div.notices_list {
    border: 1px solid #339900;
    margin: 1rem;
}

div.notices_close {
    color: #339900;
    float: right;
    padding: .25rem .75rem;
    cursor: pointer;
}

/* old workout page */
.full_width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

div.instructions {
    font-size: 80%;
}

/* new workout */


ol.instructions {
    margin: .25em 0;
    padding-left: 30px;
}


/* general layout pages */

div.page_top {
    padding: .5em .5em 0
}


div.page_bottom {
    padding: 0 .5em .5em
}



.odd {
    background: #f1f1f1;
}

/* detailed workout combo inactive/active calsses */
.inactive {
    /*opacity: 60%*/
}

.inactive .inactive_hide {
    visibility: hidden;
}

.inactive .inactive_visible {
    visibility: visible;
}

.inactive_nodisplay {
    display: block;
}

.inactive .inactive_nodisplay {
    display: none;
}

.inactive_display {
    display: none;
}

.inactive .inactive_display {
    display: block;
}


div.combo_container {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    margin: 1em 0 2em;
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
}

div.single_container {
    margin: 1em 0 2em;
}

div.combo_header {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    padding: .5em;
}

div.combo_header h1 {
    display: inline;
    margin: 0;
}

div.combo_footer {
    padding: .5em;
    text-align: right;
}

div.exercise {
    margin-left: .5em;
    padding: .5em;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;

}


div.exercise_header {
    display: flex;
    flex-direction: row;
    align-items: normal;
    justify-content: space-between;
    padding-bottom: .5em;
}

div.exercise_header div.name {
    min-height: 2.6em; /* 1.13em font * 1.15 pure-min line spacing */
    color: var(--dark);
    font-size: var(--large);
    font-weight: normal;
}

.single_container div.exercise_header div.name {
    /* do not indent 2nd line, there is no leading number */
    padding-left: 0;
}

.combo_container div.exercise_header div.name {
    /* indent 2nd line to accomodate the number's single-digit */
    padding-left: 1.3em;
    text-indent: -1.2em;
}

div.exercise_header div.reps {
    padding: 0 0 0 .5em;
    white-space: normal;
    text-align: right
}


div.controls {
    position: relative;
}


div.no_vid {
    z-index: 2;
    position: absolute;
    text-align: center;
    align-content: center;
    width: 100%;
    max-width: 700px;
    height: 100%;
    background: var(--med_light);
}

div.vid_box {
    position: relative;
    left: -1em;
    width: 100vw;
    z-index: 0;
    aspect-ratio: 16 / 9;
    transition-property: width, height, left, max-width;
    transition-duration: 200ms;

    max-width: 700px;
}

.compact div.vid_box {
    position: relative;
    left: 0;
    width: 100%;
    max-width: 150px;
    transition-property: width, height, left, max-width;
    transition-duration: 200ms;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);

}

img.thumb {
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    /*width: 130px;*/
    /*width: 100%;*/
    height: 100%;
    max-width: 700px;

    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}
img.search_thumb {
    width: 100%;
}

iframe.vid {
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 700px;
    border: 0;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    background: var(--light);
}

.close {
    cursor: pointer;
    width: 30px;
    height: 30px;
    text-align: center;
    align-content: center;
    line-height: 30px;
    border: 1px solid var(--dark);
    font-size: 18px;
    font-weight: normal;
    background: rgba(255, 255, 255, .7);

    z-index: 3;
    position: absolute;
    top: 5px;
    left: clamp(0px, calc(100% - 30px - 5px), calc(700px - 30px - 5px));
}

div.swap button {
    /*z-index: 3;*/
}


div.inst_box {
    display: block;
    background: var(--light);
    padding: .5em;
    box-shadow: 0px 0px 16px -4px rgba(0, 0, 0, 0.50);
}

.compact div.inst_box {
    display: none;
}


.compact img.thumb {
    display: block;
}

.compact iframe.vid {
    display: none;
}

.compact div.close {
    display: none;
}
