/* basic formatting for pages */
* {
    box-sizing: border-box;
}
body {
    /* selections for the body of the page, 
    flex box/flex container display 
    selects direction content flows, and keeps things centered
    */
    display: flex;
    font-family: 'Crimson Text';
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0.6rem 0.25rem;
    color: rgb(0, 0, 0);
    /* will change to a background image when I have one
    would like to add a changing background image that cycles if possible */
    background-color: rgba(232, 234, 238, 0.836);
    max-width: 100%;
    margin: 0;
}
h1 {
    font-size: 1.85rem;
    text-shadow: 1px 2px 1px darkolivegreen;
    margin-left: 1rem;
    font-weight: 120;
}
h2 {
    font-size: 1.65rem;
    font-weight: 120;
    text-indent: 1rem;
    margin: 0;
    border-top: #f5f6ff 1px dotted;
    background-color: #203a34;
    color: #f5f6ff;
    padding: 10px;
    border-radius: 0 0 7rem 1.5rem;
}
h3 {
    font-size: 1.5rem;
    font-weight: 200;
}

/* layout wrapper color change to white so it contrasts the background */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}
#background-wrapper1 {
    z-index: -2;

}
#background-wrapper2 {
    z-index: -3;
}
#layout-wrapper {
    background-color: #f5f6ff;
    width: 45%;
    opacity: .95;
}
header {
    width: 100%;
    background-color: #191a25;
    color:aliceblue;
}
.logo{
    display: flex;
}
span.phrase{
    position: relative;
    top: 10px;
    text-shadow: 1px 2px 1px darkolivegreen;
}
main {
    margin-top: 0;
    background-color: darkgreen;
}
/* post image */
img.post-image{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
}
/* Navigation Bar formatting, 
note to self: 
current Z indicies are 1000, 999, and 900*/
.responsive-nav {
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* transition for change */
    transition: top 0.65s ease;
    width: 100%;
    height: 50px;
    opacity: 1;
}
nav {
    width: 100%;
    display: flex;
    height: 2.75rem;
    opacity: 1;
}
.sticky {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}
nav .main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}
nav a {
    text-decoration: none;
    color: rgb(255, 253, 253);
}
.main-menu>a {
    padding: 10px 15px;
    border-left: #4c7067 1px solid;
    background-color: #121816;
}
nav li > a:visited {
    color: rgb(191, 191, 255);
}
/* toggle nav */
.nav-toggle {
    padding: 10px;
    border: none;
    display: none;
}
.bar {
    background-color: aliceblue;
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all .5s ease-in-out;
}
ul{
    list-style: none;
}
li{
    padding: 1rem;
}

/* drop down menus */
.drop-menu {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 90%;
    margin: 0;
    left: 0;
    border-radius: 10px;
    background-color:#121816;
    color:aliceblue;
    width: 15rem;
    height: auto;
    left: auto;
    padding: 1rem;
    z-index: 900;
}
.drop-menu li {
    padding-bottom: 6px;
    padding-left: 0;
    margin-left: 0;
    overflow: hidden;
}
.drop-menu li:first-child {
    padding-top: 6px;
}
.drop-menu li a {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 6px;
    width: 14rem;
    border-top:rgb(19, 124, 50) 3px dotted;
    border-radius: 3px;
}
/* changes on hover */
.main-menu a:hover {
    background-color: #393a41;
}
.drop-menu li a:hover {
    background-color: #000E54;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.drop-menu.open{
    display: flex !important;
}
.main-menu:hover>a {
    color: white;
    cursor: pointer;
}


/* learn more button and preview text */
.more-container {
    display: flex;
    justify-content: flex-end;
}

/*container for the header text of each post */
.text-container {
    padding: 24px;
    background-color: white;
}
p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-indent: 1rem;
    margin-left: 1.1rem;
    font-weight: 100;
    
}
/*  preview for links/posts a brief description and a learn more button */
.preview-imag {
    display: flex;
    border-radius: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
}
.more-container img {
    width: 25%;
    border-radius: 10px;
}
div button{
    position: relative;
    bottom: 1.5rem;
    float: right;
    padding: 1rem;
    background-color: #1b1f35;
    color: rgb(254, 253, 255);
    border-radius: 5%;
    cursor: pointer;

}
button > a{
    color: rgb(253, 254, 255);
}
button > a:hover{
    color: rgb(0, 40, 80);
}
button:hover{
    background-color: rgb(75, 75, 94);
    color:#130e20
}
/* footer formatting */
footer {
    height: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: #130e20;
    color:aliceblue;
}

footer p {
    margin: 0;
}
/* recents wheel */
div#carousel{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #f9faff;
}
div#carousel button{
    top: 0;
    padding: 10px 25px;

}
.wheel-button{
    display: flex;
    background-color: #121816;
    justify-content: space-between;
}
/* z indicies used 18, 19, 20 */
img#carousel-image{
    z-index: 20;
    width: 20rem;
    border-radius: 1rem;
    border-radius: 0 0 1rem 1rem;
}
img#carousel-imagePrev{
    z-index: 18;
    position: absolute;
    width: 19rem;
    transform: rotate(-1.5deg);
    margin-top: 1rem;
    margin-right: 15rem;
    border-radius: 1rem;
    border-radius: 0 0 1rem 1rem;
}
img#carousel-imageNext{
    z-index: 19;
    position: absolute;
    transform: rotate(1.5deg);
    margin-top: 1rem;
    margin-left: 15rem;
    width: 19rem;
    border-radius: 1rem;
    border-radius: 0 0 1rem 1rem;
}
h3#post-title{
    display: flex;
    width: 20rem;
    margin: 10px 1px 0px 1px;
    background-color: #1b1f35;
    color:#f5f6ff;
    text-shadow: 1px .5px 1px rgb(51, 82, 53);
    padding: 1rem;
    justify-content: center;
    border-radius: .5rem .5rem 0 0;
}
/* screen size adjustments */
@media screen and (max-width: 1700){
    #layout-wrapper{
        width: 50%
    }
}
@media screen and (max-width: 1615px) {
    #layout-wrapper{
        width: 57%;
    }
    
}
@media screen and (max-width: 1300px){
    #layout-wrapper{
        width: 70%;
    }
}
@media screen and (max-width: 1200px){
    #layout-wrapper{
        width: 80%;
    }
}
@media screen and (max-width: 1100px){
    #layout-wrapper{
        width: 90%;
    }
}
/* desktops and larger screens */
@media screen and (min-width:1024px) {
    .text-container{
        background-color: white;
        word-wrap: break-word;
    }
}
/* tablets/medium screens */
@media screen and (min-width: 750px) and (max-width:1023px) {
    h1 {
        font-size: 1.85rem;
    }
    h2 {
        font-size: 1.7rem;

    }
    h3 {
        font-size: 1.4rem;
    }
    p {
        font-size: 1.2rem;
        text-indent: 1.5em;
    }
    span.phrase p{
        text-indent: 0;
        font-size: 1.1rem; 
    }
}
/* further adjustments for screen sizes with the navigation bar
prevents nav bar from looking awkward at any screen size */
@media screen and (max-width: 850px) {
    /* changing image format so it doesnt look awkward */
    .more-container img{
        width: 30%;
    }
    #layout-wrapper {
        width: 95%;
    }

    /* basic formatting for nav */
    .drop-menu {
        position: relative;
        top: 0;
        background-color: #131917;
        width: 14rem;
        padding-left: 0;
    }
    nav .main-menu{
        background-color: #131917;
        border-radius: 5%;
    }
    .main-menu{
        align-items: flex-start;
        margin-left: auto;
        margin-right: auto;
        width: 15rem;
    }
    .main-menu>a{
        padding: 10px 5rem;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: absolute;
        height: auto;
        width: 80%;
        top: 60px;
        right: 0;
        background-color: #2d3046;
        padding: 1.5rem;
        border-radius: 5%;
        z-index: 1001;
    }
    .nav-toggle {
        display: block !important;
        position: absolute;
        top: 10px;
        right: 24px;
        height: 50px;
        z-index: 1002;
    }
    .nav-bar{
        display: none;
    }
    .nav-bar.active{
        display: flex;
        width: 20rem;
        right: 1.5rem;
        border-radius: 1rem 0 1rem 1rem;

    }

    /*navbar toggle animation */
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    div#carousel button{
        top: 0;
        padding: 20px 27px;
        font-weight: bold;
    
    }

}
/* smaller screens */
@media screen and (max-width:750px) {
    .more-container img{
        display: none;
    }
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    p {
        font-size: 1.2rem;
        line-height: 1.6;
        text-indent: 1rem;
        margin-left: .75rem;
    }
    span.phrase p{
        font-size: 1.02rem;
        text-indent: 0;
    }
    div#carousel button{
        top: 0;
        padding: 15px 30px;
    
    }
    img#carousel-image{
        width: 18rem;
    }
    h3#post-title{
        width: 18rem;
    }
    img#carousel-imagePrev{
        width: 16rem;
        margin-right: 10rem;
    }
    img#carousel-imageNext{
        width: 16rem;
        margin-left: 10rem;
    }
}
@media screen and (max-width:550px) {
    #layout-wrapper{
        width: 100%;
    }
    .nav-bar.active{
        right: .5rem;
    }
    .nav-toggle{
        right: 2px;
    }
    h2{
        font-size: 1.3rem;
    }
    img#carousel-image{
        width: 15rem;
    }
    img#carousel-imagePrev{
        width: 12rem;
    }
    img#carousel-imageNext{
        width: 12rem;
    }
    h3#post-title{
        width: 15rem;
    }
}
@media screen and (max-width:426px){
    span.phrase{
        display: none;
    }
    h3#post-title{
        width: 13rem;
    }
    img#carousel-image{
        width: 13rem;
    }
    img#carousel-imagePrev{
        width: 10rem;
    }
    img#carousel-imageNext{
        width: 10rem;
    }
}
@media screen and (max-width:360px) {
    img#carousel-imagePrev{
        display: none;
    }
    img#carousel-imageNext{
        display: none;
    }
}
@media screen and (max-width:338px) {
    #layout-wrapper{
        width: 100%;
    }
    .nav-bar.active{
        width: 100%;
        right: 0;
    }
    h1{
        font-size: 1.5rem;
    }
}



