/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    max-width: 40em;
    margin: 0 auto;
    padding: 5px;
    padding-top: 150px;
    font-family: "Noto Sans", sans-serif; 
    font-size: 18px;
    font-weight: 350;
    line-height: 1.6;
    color: black;
    background: linear-gradient(#D7EDE740, #D7EDE780, #D7EDE7BF, #D7EDE7) bottom right no-repeat,
                url('/images/seigaiha.png') bottom right no-repeat;
}

figure {
    display: block;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header and navigation styles */
.header-title, .fixed-header {
    background-color: #f6f2ee;
    width: 100%;
}

.header-title {
    padding: 20px 0;
    text-align: left;
}

.header-title h1 {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.header-title img,
#big-daruma {
    max-height: 140px; /* Set maximum height */
    max-width: 100%
    width: auto; /* Allow width to adjust proportionally */
    vertical-align: middle;
    margin-left: 25px;
}

.mobile-title {
    display: none;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 900; /* Lower z-index compared to mobile view */
}

/* Navigation bar */
.navigation {
    list-style-type: none; /* Remove default list bullets */
    padding: 0; /* Remove default padding */
    text-align: center; /* Center-align list items */
    margin: 0;
}

.navigation li {
    display: inline; /* Display list items inline */
    margin-right: 10px; /* Add margin between list items */
    white-space: nowrap; /* Prevent navigation links from splitting */
}

.navigation li:last-child {
    margin-right: 0; /* Remove margin from last list item */
}

.navigation li a {
    text-decoration: none; /* Remove default underline */
    color: black; /* Link text color */
    padding: 10px 15px;
}

.navigation li a:hover {
    color: #6a5110; /* Change link color on hover */
}

/* CSS for styling the navigation wrapper with a background color */
.navigation-wrapper {
    background-color: #ede7d7; /* Change to your desired background color */
    padding: 10px 0; /* Add padding for spacing */
    border: 2px solid white; /* Black border around the navigation wrapper */
    border-radius: 5px; /* Rounded corners for the box */
    width: 100%; 
    position: fixed; /* Fix the navigation bar at the top */
    top: 150px; /* Position below the header */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center the element */
    z-index: 900; /* Ensure it stays above other content */
}

/* Paragraph styles */
p {
    margin-bottom: 1em;
    text-indent: 36px;
}

.no-indent {
    text-indent: 0;
}

.mobile-title img {
    max-height: 65px; /* Adjust height as needed */
    width: auto;
    vertical-align: top;
    margin:0 0 10px 10px; /* Adjust spacing if necessary */
    float: right;
}

/* Responsive Design: Stack columns on smaller screens */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Adjust padding-top for mobile */
    }
    
    .mobile-title {
        display: block; /* Display on mobile */
        text-align: left;
        font-size: 20px;
        margin-bottom: 10px; /* Adjust spacing */
    }
    
    #content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #pair {
        display: block;
    } 
    
    #pair > .english,
    #pair > .japanese {
        grid-column: auto; /* Make sure they do not span multiple columns */
        width: 100%; /* Ensure full width within their containers */
    }
    
    .header-title {
        display: none; /* Hide header title on mobile */
    }
    
    .navigation-wrapper {
        top: 0; /* Position navigation at the top */
        z-index: 1000; /* Higher z-index for mobile */
    }
    
    .navigation li {
        font-size: 14px;
    }
}

/* Additional styles */

.blog-date {
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    text-align: right;
    margin-bottom: 0px;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Adjust gap between columns */
}

.pair {
    display: contents;
}
.
.english, .Japanese {
    grid-column: 1 / span 1;
    align-self: start;
}

.english {
    line-height: 1.65;
}

.japanese {
    margin: 0px;
    font-size: 17px;
    font-weight: 225;
}

.english p, .japanese p {
    margin-top: 0;
    margin-bottom: 1em;
}

.indented-list {
    padding-left: 30px; /* Adjust this value as needed */
}

.inside-list {
    list-style-position: inside;
}

h1, h2, h3 {
    font-family: "Noto Sans", sans-serif; 
    font-weight: normal;
}

h1 {
    color: #6a5110;
    text-align: left;
    margin-left: 1em;
}

h2 {
    margin-top: 70px;
    font-weight: 700;
}

ul {
     /* Position the bullet inside the list item */
}

/* Container styling */
.blog-link {
    font-size: 18px;
    text-align: left;
    color: black;
    font-weight: 300;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 10px 0;
    list-style-image: circle; /* Use the image as the bullet */
}

.fluffy-break {
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Image styles */
.image-style {
    width: 100%;
    margin: 5px;
    height: auto;
    border-style: 5px solid white;
    display: block;
}

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

.text-right {
    text-align: right;
}

/* CSS for reducing footer text size */
footer {
    font-size: 14px; /* Adjust the font size to your preference */
}
