h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lora', serif;
    font-weight: 700;
}

body,
p,
span,
a,
li,
input,
textarea {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

h1 {
    font-size: 2em;
    font-weight: bold;
    margin-top: 1.5em;
    text-align: center;
}

h2 {
    font-size: 1.75em;
    font-weight: bold;
    margin-top: 1.25em;
}

h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 1em;
}

p,
ul,
ol {
    margin-top: 1em;
}

ul,
ol {
    padding-left: 1em;
}

main ul li {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

main ul li:first-child {
    padding-top: 0;
}

main ul li:last-child {
    padding-bottom: 0;
}

a {
    color: #007896;
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    transition: transform .3s ease;
}

img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: black;
}

nav li.current {
    font-weight: 700;
    border-bottom: black solid 2px;
}

.main-img {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
}

.main-img img {
    width: 480px;
    height: auto;
    border-radius: 10px;
}

.hero-image-container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 600px;
    overflow: hidden;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-image-container .hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 2;
}

.hero-image-container:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transform-origin: center center;
    transform: translateZ(-1px) scale(2);
    z-index: -1;
}

@media (max-width: 768px) {
    .hero-image-container {
        background-attachment: scroll;
    }

    .hero-image-container:before {
        transform: translateZ(-1px);
    }
}

.content-img {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

.content-img img {
    width: 480px;
    height: auto;
}

.youtube-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    margin-top: 1.5rem;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.interesting-fact {
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: #f0f0f0;
    padding: 0.9375rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    font-size: 110%;
    line-height: 1.6;
    color: #333;
    text-align: center;
    font-style: italic;
}

.amazon-product {
    text-align: center;
    margin-top: 1.5rem;
}

.amazon-products .img-container {
    width: 100%; 
    height: 0; 
    padding-top: calc(100% - 10px); 
    background-color: white;
    background-position: center;
    background-size: contain; 
    background-repeat: no-repeat;
    position: relative; 
    border: 15px solid white; 
}

.amazon-products .star-rating {
    --star-size: 25px;
    margin-top: 1rem;
}

table.amazon-products {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

table.amazon-products td {
    padding: 0.5rem;
    vertical-align: middle;
}

table.amazon-products td.img-container {
    width: 150px;
    height: 150px;
    padding-top: 0;
}

div.amazon-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: auto;
    padding-top: 1.5rem;
}

div.amazon-products > div {
    background: #f0f0f0;
    padding: 1rem;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

div.amazon-products p {
    margin: 0 0 1rem 0;
}

.amazon-products .title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    max-height: 3.6em;
}

@media (max-width: 768px) {
    div.amazon-products {
        grid-template-columns: 1fr;
    }

    div.amazon-products .img-container {
        width: 75%;
        margin: 0 auto;
        padding-top: 75%;
    }
}