body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

nav {
    background-color: #333333;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5;    
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    padding: 1rem;
    margin-right: 1rem;
}

nav ul li a {
    display: inline;
    color: white;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #111111;
  }

.logo img{
    width:5rem;
    height:auto;
}

.logo{
    margin-left: 5%;
}

.logo_links{
    margin-left: 10%;
}

.logo_n_links{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:flex-start;     
}

.container {
    /* max-width: 800px; */
    margin: 6rem auto 4rem auto;
    padding: 1em;
    background-color: #f6f6ed;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.index_container, .blog_container{
    max-width: 800px;
}

.table_container{
    margin-left: 2rem;
    margin-right: 2rem;
}


footer {
    background-color: #333;
    color: white;
    padding: 1em;
    text-align: center;
    z-index: 5;
}

footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

footer ul li {
    display: inline;
    margin-right: 1em;
}

footer ul li a {
    color: white;
    text-decoration: none;
}


h1, h2 {
    color: #333;
}

.post-preview {
    margin: 1rem;
}

.post-preview h2 {
    margin: 0;
    font-size: 1.5rem;
}

.post-preview p {
    color: #666;
}

.post {
    margin-bottom: 2rem;
}

.post h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post p {
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination a, .pagination span {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333333;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.pagination .current {
    background-color: #333333;
    color: #fff;
    border: 1px solid #333333;
}

.pagination .ellipsis {
    padding: 0.5rem 1rem;
    color: #999;
}


 /* Blog post list ------------------------------ */
.blog_post_list h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.blog_post_list img{
    width:14rem;
    height:auto;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.blog_post_list img:hover {
    filter: brightness(75%);
  }

.blog_post_list .img_post_table{
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    margin-top: 1rem;
}

.blog_post_list .small_date{
    padding-top: 5px;
}


/* Index page ------------------------------ */

.shop_hero_table{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 5rem;    
    margin-bottom: 3rem;
}
.shop_hero_left, .shop_hero_right{
    margin: 1rem;
    line-height: 2;
    word-spacing: 5px;

}
.shop_hero_left h2{
    margin-bottom: 3rem;
}

.shop_hero_right img{
    width:20rem;
    height:auto;
}

.index_page img{
    width:20rem;
    height:auto;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.index_page img:hover {
    filter: brightness(75%);
  }

.index_page .img_post_table{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    text-align: center;
    line-height: 1.5; 
}

.index_page .link_to_blog{
    text-align: center;   
}


/* Single post page ------------------------------ */
.single_post .sizing-normal{
    max-width:45rem;
    height:auto;
    
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.single_post figure{
    margin: 2rem 0;
}

.single_post figcaption {
    padding-top: 2px;
    text-align: center;
}

.single_post .image-link-expand, .button-wrapper{
    display: none;
}

/* .single_post .image-caption{
    display: none;
} */

.single_post .subscription-widget{
    display: none;
}

.single_post_end{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin: 1rem;
    }


/* Newsletter  ------------------------------ */
.newsletter{
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.newsletter #signup_email:focus {
    border-color:#c5c6bf; 
    background-color:#f9f5d1;
    background-image:none;
    color:#000;
  }

.newsletter .bluebutton{
    background-color:#333333;
    color:#FFF;
    -moz-border-radius:13px;
    -webkit-border-radius:13px;
    border-radius:13px;
    padding:5px 15px 5px 15px;
    text-shadow: 1px 1px 1px #111111;      
}

/* Shop  ------------------------------ */
.shop_message{
    text-align: center;
}

table{
    width: 100%;
}

.table_container table, td, tr, th {
	border: 0;
}

.table_container .shop_table{
    font-family: sans-serif;
    font-size: 0.9rem;
}

.table_container h1{
    text-align: center;
}
td, th{ 
    text-align: left; /* Default alignment */ 
} 

.dt-type-numeric, 
th:nth-child(5), td:nth-child(5),
th:nth-child(7), td:nth-child(7){
    text-align: center !important; /* Center alignment for specific columns */ 
}

/* HERO  ------------------------------ */
.hero {
    margin-top: 4rem;
    text-align: center;
}

.hero .bluebutton{
    background-color:#333333;
    color:#FFF;
    -moz-border-radius:15px;
    -webkit-border-radius:15px;
    border-radius:15px;
    padding:5px 15px 5px 15px;
    text-shadow: 1px 1px 1px #111111;      
}

.hero #signup_email{
    font-size: 1.1rem;
}

.hero #signup-button{
    font-size: 1rem;
}

.post-hero {
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Style the link as a button */
.shop_hero_left a.button {
    display: inline-block;
    color: white;
    background-color: rgb(205, 4, 4);
    text-align: center;
    text-decoration: none;
    -moz-border-radius:13px;
    -webkit-border-radius:13px;
    border-radius:13px;
    padding:5px 15px 5px 15px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.news_preview{
    margin-left: 4rem;
    margin-right: 4rem;
    margin-bottom: 3rem;
}

/* Add hover effect */
.shop_hero_left a.button:hover {
    background-color: darkred;
}


 /* Media ------------------------------ */
@media (max-width: 480px) {

    nav ul li {
        padding: 0;
    }

    .container {
        margin: 4rem 0 0 0;
        padding: 1em;
    }

    .blog_post_list img{
        width:15rem;
    }

    .blog_post_list .img_post_table {
      flex-direction: column;
    }

    .single_post .sizing-normal{
        width:20rem;
    }

    .shop_table th:nth-child(2), .shop_table td:nth-child(2), 
    .shop_table th:nth-child(4), .shop_table td:nth-child(4),
    .shop_table th:nth-child(6), .shop_table td:nth-child(6){ 
        display: none; /* Hide specific columns on small devices */ 
    }

    .shop_hero_table{
        flex-direction: column-reverse;
        margin-bottom: 0;
    }

    .shop_hero_left, .shop_hero_right{
        margin: 0;
        line-height: 1.5;    
    }

    .shop_hero_left h2{
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .post-hero {
        margin-top: 2.5rem;
    }

    .shop_table table > tbody > tr > td {
        padding: 5px 0 !important;
    }
}

@media (max-width: 768px) {
    .index_page img{
        width:20rem;
    }

    .index_page .img_post_table{
        flex-direction: column;
    }
    
    .shop_hero_table{
        flex-direction: column-reverse;
        margin-bottom: 0;
     }

    .shop_table th:nth-child(4), .shop_table td:nth-child(4){ 
        display: none; /* Hide specific columns on small devices */ 
    }
    
    .news_preview{
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        margin-bottom: 3rem;
    }
}

/* Fade away */
  .fade-out {
    animation: fadeOut 30s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
