body {
    background-color: #171615;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body>div:first-child {
    flex-grow: 1;
}

#logo_mcfirsting {
    padding: 10%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 99%;
    display: flex;
    align-items: center;
    font-family: "MinecraftTen";
    justify-content: space-between;
    background-image: linear-gradient(to bottom, rgb(255, 106, 0), rgb(255, 149, 0));
    padding: 3px 3px;
    z-index: 1000;
    filter: drop-shadow(0px 3px 4px #000000);
}

.logo img {
    height: 45px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-links li {
    margin: -5px;
}

.nav-links a {
    padding: 10px;
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 24px;
    line-height: 65px;
    transition: color 0.3s;
}

.nav-links a:hover {
    padding: 10px;
    color: #ffffff;
    transition: 0.3s;
}

.content {
    margin-top: 70px;
}

section {
    padding: 100px 20px;
    border-bottom: 2px solid #ccc;
}

.page {
    color: #ffffff;
    font-family: "MinecraftTen";
    font-size: 160%
}

p {
    color: #ffff;
    font-family: "MinecraftTen";
}

.project {
    color: #ffffff;
    font-family: "MinecraftTen";
    text-align: center;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #262423;
    color: #ffffff;
    padding: 2px;
}

footer h2 {
    text-align: center;
    margin-bottom: 20px;
}

.social-icons {
    display: inline-flex;
    filter: drop-shadow(0px 3px 4px #000000);
    justify-content: center;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 3px;
    align-items: center;
    background-color: #1f1e1d;
}

.box {
    background: #474747;
    padding-bottom: 15%;
}

@font-face {
    font-family: "MinecraftTen";
    src: url("fonts/MinecraftTen-VGORe.ttf");
}

.category-container {
    font-family: "MinecraftTen";
    font-size: larger;
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.topic-box {
    width: 200px;
    height: 80px;
    background-color: #454545;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.topic-box h2 {
    font-size: 1.2em;
    margin: 0;
}

.topic-box:hover {
    transform: translateY(-5px);
    background-color: #e68a00;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}


.news-slider-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

#newsSliderContainer {
    position: relative;
    width: 370px;
    overflow: hidden;
}

#newsWrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.news-slide-item {
    width: 350px;
    margin: 0 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.news-card {
    position: relative;
    overflow: hidden;
    width: 350px;
    height: 240px;
}

.news-slide-item:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.1));
}

.slide-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.slide-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#prevNewsButton {
    left: 10px;
}

#nextNewsButton {
    right: 10px;
}