
@font-face {
    font-family: 'Minecraftia';
    src: url('/fonts/MinecraftEvenings-lgvPd.ttf') format('truetype');
}

html, body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #63400e, #8d6e44);
    border-radius: 10px;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #aaaaaa, #fff);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(rgba(0,0,0,0.9), rgb(255, 165, 0)) no-repeat center center fixed;
    background-size: cover;
}

nav {
    position: sticky;
    top: 10px;
    background-color: rgba(70, 49, 30, 0.8);
    border: 2px solid #63400e;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    margin: 10px;
    justify-content: center;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

nav img {
    transition: 0.2s;
    height: 45px;
    width: 45px;
}

.nav-item {
    width: 80px;
    height: 80px;
    background-color: #ffedbb;
    border: 3px solid #63400e;
    padding: 5px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

nav a {
    margin: 5px;
    text-decoration: none;
    color: #63400e;
    font-weight: bold;
    transition: 0.2s;
}

nav a img {
    transform: translateY(10px);
}

nav a:hover .nav-item{
    background-color: #ffe0a3;
}

nav a:hover {
    transform: translateY(15px);
}

nav a.active .nav-item {
    background-color: #fcd484;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.discord-tile {
    align-items: center;
    padding: 5px;
    display: flex;
    margin: 5px;
    background-color: #ffedbb;
    border: 3px solid #63400e;
    border-radius: 20px;
    text-align: center;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

.discord-tile div {
    height: 50%;
    align-items: center;
    padding: 5px;
    display: flex;
    border-radius: 15px;
    background-color: #7289da;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.discord-tile a{
    margin-left: 5px;
    color: #fff;
}

.discord-tile a:hover {
    color: #111;
    transform: translateY(0px);
}

.content {
    display: flex;
    justify-content: center;
    margin: 10px;
    background-color: rgba(70, 49, 30, 0.8);
    border-radius: 20px;
    margin: 10px;
    border: #63400e 2px solid;
}

main {
    width: 75%;
    background-color: #fcd484;
    border-radius: 20px;
    margin: 5px;
    border: #63400e 2px solid;
    padding: 20px;
    text-align: center;
}

.header-title {
    border: 2px solid #63400e;
    border-radius: 20px;
    height: fit-content;
    background-color: #ffe0a3;
    font-family: 'Minecraftia', sans-serif;
}

.header-title p {
    font-size: 1.2em;
    color: #666;
}

.mods {
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
    margin: 5px;
    border: 2px solid #63400e;
    border-radius: 20px;
    background-color: #ffe0a3;
    overflow-y: auto;
}

aside {
    align-items: center;
    width: 30%;
    background-color: #fcd484;
    border-radius: 20px;
    margin: 5px;
    border: #63400e 2px solid;
    padding: 20px;
    text-align: center;
    height: auto;
    overflow-y: auto;
}

.aside-tile {
    align-items: center;
    margin: 5px;
    border: 2px solid #63400e;
    padding: 5px;
    border-radius: 20px;
    background-color: #ffe0a3;
}

.aside-tile li{
    text-align: left;
    margin: 5px;
}

.update-item {
    background-color: #ffedbb;
    border: 2px solid #63400e;
    border-radius: 20px;
    margin: 10px;
    padding: 5px;
    box-shadow: 2px 2px 4px #333;
    transition: 0.2s;
}

.update-item h4 {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.update-item img{
    border-radius: 50%;
    width: 60px;
    box-shadow: 2px 2px 4px #000;
}

.mod-item {
    background-size: cover;
    width: 40%;
    color: #fff;
    border-radius: 20px;
    margin: 10px;
    padding: 5px;
    border: 2px solid #63400e;
    box-shadow: 2px 2px 4px #000;
    transition: 0.2s;
    text-shadow: 4px 4px 4px #000;
}

.mod-item img {
    border-radius: 50%;
    width: 80px;
    box-shadow: 2px 2px 4px #000;
}

.mod-item a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    text-shadow: 4px 4px 4px #000;
}

.mod-item a:hover {
    color: #111;
    text-decoration: underline;
}

.mod-bg1 {
    background-image:  linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 161, 48, 0.3)), url('/images/mod-bg/mdm-bg.webp');
}

.mod-bg2 {
    background-image:  linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 144, 163, 0.3)), url('/images/mod-bg/edm-bg.webp');
}

.mod-bg3 {
    background-image:  linear-gradient(rgba(0, 0, 0, 0.7), rgba(161, 123, 0, 0.5)), url('/images/mod-bg/bp-bg.webp');
}

.mod-bg4 {
    background-image: linear-gradient(45deg, rgba(17, 0, 255, 0.5), rgba(255, 0, 0, 0.5));
}

.mod-bg5 {
    background-image:  linear-gradient(rgba(0, 0, 0, 0.7), rgba(161, 86, 0, 0.5)),url('/images/mod-bg/fdm-bg.webp');
}

.mod-bg6 {
    background-image: linear-gradient(45deg, rgba(0, 84, 163, 0.5), rgba(0, 131, 76, 0.5));
}

.mod-bg7 {
    background-image: linear-gradient(45deg, rgba(255, 196, 0, 0.5), rgba(131, 0, 0, 0.5));
}

.mod-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(161, 86, 0, 0.5)), url('/images/ccm-banner.png');
    background-size: cover;
    background-position: center;
}

.aside-part {
    margin: 5px;
    border: 2px solid #63400e;
    padding: 5px;
    border-radius: 20px;
    background-color: #ffe0a3;
}

.news-box {
    margin: 10px;
    padding: 10px;
    border: 2px solid #63400e;
    border-radius: 20px;
    background-color: rgba(70, 49, 30, 0.8);
    color: #fff;
}

.news-tile {
    color: #000;
    padding: 5px;
    border-radius: 10px;
    background-color: #ffedbb;
    border: 2px solid #63400e;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.news-tile header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer {
    bottom: 0px;
    text-align: center;
    padding: 10px;
    background-color: rgba(70, 49, 30, 0.8);
    border-top: 2px solid #63400e;
    margin-top: 20px;
    color: #fff;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.2s;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-links {
    justify-content: center;
    display: flex;
    margin-top: 10px;
}

.social-links a {
    margin: 0 10px;
    transition: 0.2s;
}

.social-links a img {
    border-radius: 50%;
    padding: 2px;
    height: 30px;
    width: 30px;
    transition: 0.2s;
}

.social-links img:hover {
    border-radius: 50%;
    background-color: #fff;
    transform: scale(1.2);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mod sites styles */

.mod-nav {
    position: unset;
    padding: 20px;
    font-weight: bold;
    background-color: #ffe0a3;
    border: 2px solid #63400e;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    margin: 10px;
    justify-content: space-between;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}


.mod-nav a {
    align-items: center;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 10px;
    background-color: #63400e;
    margin: 5px;
    text-decoration: none;
    color: #ffedbb;
    font-weight: bold;
    transition: 0.2s;
}

.mod-nav a img {
    transform: translateX(0px);
    vertical-align: middle;
    height: 30px;
    width: 30px;
}

.mod-nav a:hover {
    background-color: #8d6e44;
    color: #fff;
}

.mod-nav .active {
    border: 2px solid #63400e;
    background-color: #fcd484;
    color: #63400e;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.mod-content {
    text-align: center;
    margin: 10px;
    padding: 10px;
    border: 2px solid #63400e;
    border-radius: 20px;
    background-color: #ffe0a3;
}

.mod-description {
    width: 75%;
    text-align: left;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery img {
    width: 600px;
    height: auto;
    border: 2px solid #63400e;
    border-radius: 20px;
    box-shadow: 2px 2px 4px #000;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    position: relative;
    transform: scale(1.5);
    box-shadow: 4px 4px 8px #000;
}