/* IMPORT BW_COMMON THEORY STYLES */
@import "/bw_common/css/theory.css?v=2";

/* GENERAL */
div.content_container h1 {
    margin-top: 1em;
    margin-bottom: 1.25em;
}

/* END GENERAL */

#overview_container {
    width: 100%;
    text-align: left;
}

#overview_title {
    margin-top: 0;
}

#overview_content {

    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    margin-top: 50px;

}

.overview_item {
    width:22%;
    margin-right: 3%;
    margin-bottom: 15px;
}

.overview_item img {
    display:block;
    width: 100%;
    background: #416d3d;
    padding: 2px;
}

.overview_item a {
    display:block;
    width: 100%;
    text-decoration: none;
}

.overview_item a div {
    text-align: center;
    font-weight: 500;
    color: black;
    margin: 10px;
}

.overview_item a:hover img {
    -webkit-filter: brightness(.8);
    filter: brightness(.8);
    background: dodgerblue;
}

.overview_item a:hover div {
    color: dodgerblue;
}

/*END OVERVIEW*/

/* HOME PAGE */
#home_wrapper {
    padding: 0;
    margin: 0;
}

#home_wrapper p {
    color: #333;
    margin-right: 3em;
}

#home_wrapper h2 {
    margin-top: 0;
}

#home_title {
    text-align: left;
}

#home_description {
    text-align: left;
    color: grey;
    margin-bottom: 2em;
}

#home_wrapper .chapter_items_container {
    width: 100%;
    margin-top: 1.5em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative;
    text-overflow: ellipsis;
}

#home_wrapper .chapter_items_container .chapter_item {
    position: relative;
    width: calc(20% - 2.5em);
    height: auto;
    margin-right: 2.5em;
    text-align: center;
    margin-bottom: 2.5em;
    cursor: pointer;
    text-decoration: none;
}

#home_wrapper .chapter_items_container .chapter_item img {
    position: relative;
    width: 100%;
    z-index: 2;
    margin-bottom:0.75em;
    border-radius: 0.5em;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

#home_wrapper .chapter_items_container .chapter_item div {
    width: 100%;
    color: #333;
    font-weight: 500;
}

#home_wrapper .chapter_items_container .chapter_item:hover div {
    color: black;
    text-decoration: underline;
}

#home_wrapper .chapter_items_container .chapter_item:hover img {
    -webkit-transform: scale(1.025);
    transform: scale(1.025);
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* END HOME */


/*INHERITED FROM BOBOSHI/IOS*/

/*
 * innehållsförteckning
 */

div.contents {
    border-radius: 1em;
    border: 1px solid;
    padding: 0em 0.5em 2em 0.5em;
    width: 100%;
    margin: 30px 0;
}

div.contents ul {
    font-weight: bold;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

div.contents ul ul {
    font-weight: normal;
}

div.contents ul li {
    font-size: 1.0em;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

div.contents ul ul li {
    font-size: 1em;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

.contents h3 {
    text-align: center;
}

img.full_width {
    width: 100%;
    height: auto;
}

p.caption2 {
    font-style: italic;
    margin-top: 0.25em;
}


/*END INHERITED FROM BOBOSHI/IOS*/


/*END CONTENT*/

/* * * * * * * * *
    RECO
 * * * * * * * * */
div.reco_container {
    display: none;
}

/* * * * * * * * *
    END RECO
 * * * * * * * * */

/* * * * * * * * *
    READSPEAKER
 * * * * * * * * */
#readspeaker_container {
    position: fixed;
    top: 7.2em;
    left: 1px;
    z-index: 10;
    width: 100%;
}

/* * * * * * * * *
    END READSPEAKER
 * * * * * * * * */


/********************

  MEDIA QUERIES

*********************/


@media only screen and (max-width : 1800px) {

    #home_wrapper .chapter_items_container .chapter_item {
        width: calc(25% - 2.5em);
        margin-right: 2.5em;
    }
}

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1500px) {

    #home_wrapper .chapter_items_container .chapter_item {
        width: calc(33% - 2.5em);
        margin-right: 2.5em;
    }

}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {

    .overview_item {
        width:30%;
        margin-right: 3%;
    }

    #overview_description {
        text-align: center;
    }

    #home_title, #content h1 {
        font-size: 1.8em;
    }

    #content table tr img {
        margin-right: 0;
    }

}


/* Extra Small Devices, Phones */
@media only screen and (max-width : 640px) {

    div.content_container h1 {
        margin-top: 0.5em;
        margin-bottom: 1em;
    }

    .overview_item {
        width:47%;
        margin-right: 3%;
    }

    #theory_menu {
        padding: 10px;
    }

    #home_wrapper .chapter_items_container {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    #home_wrapper .chapter_items_container .chapter_item {
        width: calc(50% - 1em);
        margin: 0 0 2.5em 0;
    }

}

/* Custom, iPhone Retina */
@media only screen and (max-width : 380px) {

    #content table, #content th, #content td {
        padding-left: 0.5em;
        padding-right: 0.5em;
        padding-top: 1em;
        padding-bottom: 1em;
    }

}

/********************

  END MEDIA QUERIES

*********************/



