/*DESKTOP/GENERAL STYLES*/
html {
    background-color: hsla(210, 4%, 10%, 1);
    font-size: 14pt;
}

.responsive {
    width: 100%;
    height: auto;
}

.chart-container {
    padding: 1em;
}

.chart {
    box-shadow: 0em 0.1em 0.4em 0.01em hsla(0, 0%, 26%, 0.7);
    background-color: #ffffff;
    border: 1px solid black;
}

.container {
    width: 1600px;
    max-width: 80%;
    min-height: 300px;
}

.add-shadow {
    box-shadow: 0em 0.1em 0.4em 0.01em hsla(0, 0%, 26%, 0.7);
    border: 1px solid black;
}

.colheader {
    display: block;
    text-align: left;
    margin: 2em 0;
}

#follow-me img {
    width: 60%;
    display: block;
    margin: 1em auto;
}

/*SUBREDDIT CAROUSEL STYLES*/

#subreddit-carousel {
    min-height: 600px;
    display: block;
    overflow: auto;
}

#subreddit-carousel .carousel-inner {
    max-width: 80%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    margin: 0;
    position: absolute;
    top: 10%;
}

#subreddit-carousel .subreddit-carousel-post {
    color: white;
    font-size: 2.5em;
    text-align: left;
}

#subreddit-carousel .subreddit-carousel-score {
    color: white;
    font-size: 1.5em;
    text-align: left;
    margin-bottom: 0.5em;
}

/*NAVMENU STYLES*/
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid black;
    box-shadow: 0em 0.1em 0.4em 0.01em hsla(0, 0%, 26%, 0.7);
    padding: 0;
}

.navbar-custom .navbar-brand {
    background: hsla(0, 100%, 28%, 1);
    color: #ffffff;
    display: flex;
    height: 100%;
    width: 7em;
    padding: 1em;
    align-items: center;
    line-height: 1;
    position: relative;
    justify-content: center;
    font-weight: bold;
    border-right: 1px solid black;
}

.navbar-custom a {
    color: hsla(0, 100%, 28%, 1);
    font-size: 1.2em;
}

.navbar-custom a:visited {
    color: hsla(210, 4%, 10%, 1);
}

#mainnav-toggler {
    z-index: 1;
}

.navbar-custom li {
    margin: 0em 1.5em;
}

.submenu .submenu-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    padding: 0.5em;
    z-index: 1;
    list-style-type: none;
    border: 1px solid black;
    box-shadow: 0em 0.1em 0.4em 0.01em hsla(0, 0%, 26%, 0.7);
    width: auto;
}

.submenu:focus-within .submenu-content{
    display: block;
}

.submenu .subnav-item:focus-within .subnav-link {
    color: hsla(0, 100%, 28%, 1);
    font-weight: bold;
}

.submenu .subnav-item:hover .subnav-link {
    color: hsla(0, 100%, 28%, 1);
    font-weight: bold;
}

.submenu .subnav-subitem:hover .subnav-sublink {
    color: hsla(0, 100%, 28%, 1);
    font-weight: bold;
}

.hover-icon {
    display: none;
    margin-right: 0.5em;
    font-weight: bold;
}

.sub-submenu .submenu-subcontent {
    display: none;
    position: absolute;
    background-color: #ffffff;
    padding: 0.5em;
    z-index: 1;
    list-style-type: none;
    border: 1px solid black;
    box-shadow: 0em 0.1em 0.4em 0.01em hsla(0, 0%, 26%, 0.7);
    width: 34ch;
}

.sub-submenu:focus-within .submenu-subcontent{
    display: block;
    -webkit-transform: translateX(50%);
    transform: translateX(50%);
}

/*CONTENT BOX STYLES*/
/*CONTEXT BOXES are flex elements that form a 3-by-x grid as more are added.*/
.content-box-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 70px;
    margin: 40px 0;
}

.content-box {
    width: 600px;
    border: 1px solid black;
    box-shadow: 0 0.1em 0.4em 0.01em hsla(0, 0%, 26%, 0.7);
    box-sizing: border-box;
    flex-basis: | auto;
}

.content-box img {
    width: 100%;
    border-bottom: 1px solid black;
}

.content-box h3 {
    width: 100%;
    color: #ffffff;
    background-color:hsla(210, 4%, 10%, 1);
    text-align: center;
    padding: 10px;
    margin: 0;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.content-box .box-copy {
    padding: 20px;
    margin: 0;
}

.content-box .box-cta{
    width: 100%;
    background-color:hsla(0, 100%, 28%, 1);
    color: #ffffff;
    text-align: center;
    font-size: 16pt;
    padding: 10px;
    margin: 0;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.content-box .box-cta a{
    color: inherit;
}

.content-box .box-cta a:visited{
    color: inherit;
}

/*CONTENT FEATURE STYLES*/
/*CONTENT FEATURES are page-width boxes that feature image, heading and brief descriptive copy*/

.content-feature {
    width: 95%;
    background-color: #ffffff;
    border: solid 1px black;
    box-shadow: 0em 0.1em 0.4em 0.01em hsla(0, 0%, 26%, 0.7);
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    margin: 2em auto;
    box-sizing: content-box;
}

.content-feature .feature-copy h1 {
    width: 100%;
}

.content-feature .feature-copy p {
    width: 100%;
    font-size: 14pt;
}

.content-feature .feature-image {
    width: 23%;
    border-right: 2px solid black;
}

.content-feature .feature-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.content-feature .feature-copy {
    width: 77%;
    height: 100%;
}

.content-feature .feature-copy .feature-copy-main {
    padding: 1em;
}

.content-feature .feature-copy .feature-copy-cta {
    width: 100%;
    padding: 0.5em;
    border-top: 1px solid black;
    background-color:hsla(0, 100%, 28%, 1);
}

.content-feature .feature-copy .feature-copy-cta p {
    width: 100%;
    font-size: 16pt;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.content-feature .feature-copy .feature-copy-cta p a:link {
    color: #ffffff;
}

.content-feature .feature-copy .feature-copy-cta p a:visited {
    color: #ffffff;
}

.content-feature .feature-header {
    background-color: hsla(210, 4%, 10%, 1);
    width: 100%;
    padding: 0.5em 0;
}

.content-feature .feature-header p {
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 14pt;
    font-weight: bold;
    margin: 0;
}

/*MASTHEAD STYLES*/

.masthead {
    display: block;
    width: 100%;
    background-color: hsla(210, 4%, 10%, 1);
    border-bottom: 1px solid black;
    margin-bottom: 2em;
}

.masthead .masthead-content {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
}

.masthead .masthead-image-wrapper {
    width: 33%;
    max-width: 1000px;
}

.masthead .masthead-image-wrapper img {
    width: 100%;
}

.masthead #title-div {
    color: #ffffff;
    margin: auto;
    text-align: center;
    background-color: hsla(0, 100%, 28%, 1);
    padding: 2% 3%;
    border: 1px solid black;
    width: 50%;
    max-width: 850px;
}

.masthead #title-div h1 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 2%;
}

.masthead #title-div p {
    font-size: 16pt;
    text-align: left;
    line-height: 1.4;
}

/*FOOTER STYLES*/
body {
    min-height: 100%;
    padding: 0 0 60px 0;
    box-sizing: border-box;
    background-color: #ececec;
}

footer {
    background-color: hsla(210, 4%, 10%, 1);
    border-top: 1px solid black;
    height: 60px;
    width: 100%;
    left: 0;
    position: absolute;
}

footer .credit {
    margin: 0;
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    font-size: 1em;
    position: absolute;
    top: 50%;
}

/*MOBILE STYLES*/
@media screen and (max-width: 1000px){
    #follow-me img{
        width: 30%;
        display: inline-block;
        margin: 1em 7.5%;
    }

    .masthead .masthead-content {
        display: block;
        width: 100%;
        margin: 0;
    }

    .masthead .masthead-image-wrapper {
        width: 100%;
    }

    .masthead .masthead-content #title-div {
        width: 100%;
    }

    .masthead #title-div h1 {
        font-size: 4em;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .masthead #title-div h2 {
        font-size: 1.5em;
        text-align: left;
        line-height: 1.5;
    }


    #subreddit-carousel {
        min-height: 600px;
    }

    #subreddit-carousel .carousel-inner {
        max-width: 75%;
    }

    #subreddit-carousel .subreddit-carousel-post {
        font-size: 1.3em;
    }
    
    #subreddit-carousel .subreddit-carousel-score {
        font-size: 1em;
    }
}

@media screen and (max-width: 700px){
    #follow-me img{
        width: 30%;
        display: inline-block;
        margin: 1em 7.5%;
    }

    .container {
        max-width: 100%;
        min-height: 300px;
    }

    .content-feature .feature-image {
        width: 100%;
        border-bottom: 2px solid black;
        border-right: none;
    }

    .content-feature .feature-copy {
        width: 100%;
    }

    .content-feature .feature-copy .feature-copy-main {
        width: 100%;
        padding: 0.5em;
    }

    .content-feature .feature-copy .feature-copy-main h1 {
        font-size: 1.5em;
    }

    .content-feature .feature-copy .feature-copy-main p {
        font-size: 0.75em;
        margin: 0;
    }

    .content-feature .feature-copy .feature-copy-cta p {
        font-size: 1em;
    }

    .content-feature .feature-header p {
        font-size: inherit;
    }

    .masthead .masthead-content {
        display: block;
        width: 100%;
        margin: 0;
    }

    .masthead #title-div {
        padding: 1em 1em;
    }

    .masthead #title-div h1 {
        font-size: 2em;
    }
    
    .masthead #title-div h2 {
        font-size: 1em;
    }

    .submenu:focus-within .submenu-content{
        display: inline-block;
    }

    .sub-submenu:focus-within .submenu-subcontent{
        display: block;
        transform: translateX(10%);
        -webkit-transform: translateX(10%);
    }

    .responsive {
        max-width: 95%;
        height: auto;
    }
}