@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    margin: 0;
    background-color: #777877;
    color: #eee;
    font-family: Poppins;
    font-size: 12px;
}

a {
    text-decoration: none;
}

header {
    width: 100%; /* Set header to full width */
    height: 70px; /* Increased height for better spacing */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the start (left) */
    position: relative;
    z-index: 100;
    padding: 0 10%; /* Add horizontal padding to center content */
    box-sizing: border-box; /* Include padding in the width */
    border-bottom: 2px solid #000000; /* Black border line at the bottom of the header */
    background-color: #f6f5ec; /* Ensure header has a background */
}

header nav {
    width: 100%; /* Make nav take full width of header padding area */
    display: flex;
    align-items: center;
}

header h1 {
    margin: 0; /* Remove default margin from h1 */
}

header a {
    color: #000000;
    font-size: 1.5em; /* Make the home text larger */
    font-weight: bold;
    /* margin-left and margin-right properties are no longer needed here due to flexbox adjustments */
}

/* carousel */
.carousel {
    height: calc(100vh - 70px); /* Adjust height to account for the header */
    margin-top: 0; /* Remove negative margin as header now has its own space */
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    border-radius: 0.5cm;
}

.carousel .list .item.active {
    opacity: 1;
    z-index: 1;
}

.carousel .list .item img {
    border: 2px solid black;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel .list .item .content {
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

.carousel .list .item .author {
    font-weight: bold;
    letter-spacing: 10px;
}

.carousel .list .item .title,
.carousel .list .item .topic {
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}

.carousel .list .item .topic {
    color: #f1683a;
}

.carousel .list .item .buttons {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}

.carousel .list .item .buttons button {
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}

.carousel .list .item .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

/* thumbnail - REMOVED small image slideshow */
.thumbnail {
    display: none;
}

/* arrows */
.arrows {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: max-content;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.674);
    border: none;
    color: #000000;
    font-family: monospace;
    font-weight: bold;
}

.arrows button:hover {
    background-color: #fff;
    color: #000;
}

/* time running - REMOVED time effect transition */
.carousel .time {
    display: none;
}

@media screen and (max-width: 678px) {
    .carousel .list .item .content {
        padding-right: 0;
    }
    .carousel .list .item .content .title {
        font-size: 30px;
    }
}