@font-face {
    font-family: MinecraftFive;
    src: url('five.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: MinecraftFive;
    src: url('fiveB.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: MinecraftSeven;
    src: url('seven.woff');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: MinecraftFive, Arial, Helvetica, sans-serif;
    background: url("images/dirrt.png");
    background-repeat: repeat;
    background-size: 10%;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: multiply;
    line-height: 1.6;
    color: white
}
body video {
    width: 100%;
    height: 100%;
    position: fixed;
    background-attachment: fixed;
    top: 0px;
    left: 0px;
    object-fit: cover;
    z-index: -3;
}
h1 {
    color: white;
}
code {
    display: inline;
    border: 0.1em solid rgb(48, 48, 48);
    border-radius: 0.2em;
    background-color: #1a1a1a;
    padding: 0.1em 0.2em;
    color: white;
}

header {
    position: static;
    overflow: hidden;
    top: 0px;
    background-image: url("images/grass.png");
    background-size: 45%;
    background-position-x: center;
    height: 200px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 2px 0.3em rgba(0, 0, 0, 0.75));
}

footer {
    text-align: center;
    color: white;
}

footer a {
    text-decoration: none;
    color: white;
}

#header {
    margin: auto;
    margin-top: -6px;
    /* background-color: #ffaa00; */
    width: 900px;
}
#header-table {
    width: 900px;
    text-align: center  ;
    margin: auto;
}
#logo {
    image-rendering: optimizeQuality;
    height: 100px;
    float: left;
    display: inline;
    padding: 20px;
    margin-right: auto;
}
#links {
    width: 330px;
    padding: 20px;
    margin-top: 8px;
    float: right;
}
#main-body {
    margin: auto;
    width: 900px;
    font-size: small;
}
#layout {
    /* outline: solid 1px black; */
    margin-top: -10px;
    min-width: 900px;
    align-content: start;
}
#layout td {
    vertical-align: top;
}
#MOTD {
    display: inline-block;
    margin-bottom: 15px;
    margin-top: -5px;
    text-shadow: 1px 1px 0.2em rgba(0, 0, 0, 0.5);
}

#removable {
    padding-left: 10px;
}
/* #list-container {
    background-color: #595a5fcc;
    margin-top: 10px;
    padding: 15px;
    border: solid #494A51 2px;
    outline: solid black 2px;
    font-family: MinecraftFive;
} 
 #list-container:hover {
    outline: solid #ededed 2px;
} */
#list-container h2 {
    /* font-size: x-large; */
    margin-top: -9px;
}
#list-container ul {
    margin-top: 0px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: -6px;
    list-style-type: none;
    font-size: smaller;
    column-count: 2;
    column-gap: 2.5px;
}
#list-container li+li {
    margin-top: -4px;
}
#pack p {
    font-size: small;
}
#packbutton {
    font-size: medium;
    display: block;
    margin: auto;
    margin-top: 10px;
}
#download {
    padding-left: 1.5em;
    margin-left: -1.5em;
    padding-right: 1.5em;
    margin-right: -1.5em;
}
#moxiepack {
    width: 100%;
    margin: 10px 0px;
    border: solid black 2px;
    outline: solid #494A51 2px;
}
#railmap {
    width: 100%;
    margin: 5px 0 -5px 0;
    image-rendering: crisp-edges;
    border: solid black 2px;
    outline: solid #494A51 2px;
}

.box {
    background-color: #595a5fcc;
    padding: 15px;
    margin-top: 10px;
    max-width: 490px;
    border: solid #494A51 2px;
    outline: solid black 2px;
}
.box:hover {
    outline: solid #ededed 2px;
}
.box h2 {
    margin-top: -5px;
    margin-bottom: 0;
}
.box p {
    margin-top: 0;
    margin-bottom: 0px;
    font-family: MinecraftSeven, MinecraftFive, sans-serif;
    font-size: large;
    line-height: 120%;
}
.box p+p {
    margin-top: 10px;
}
.box ul {
    margin-top: 0;
    margin-bottom: 0;
    list-style-type: "☆  ";
}
.button {
    display: inline-block;
    background-image: url("images/button.png");
    image-rendering: pixelated;
    background-size: 100%;
    width: 160px;
    height: 40px;
    color: #ffffff;
    text-align: center;
    font-family: MinecraftFive;
    transition: background-color 0.3s ease;
}
.button a, .button button{
    position: relative;
    top: 4px;
    text-decoration: none;
    color: white;
    display: inline-block;
    z-index: 1;
    padding-bottom: 0.6em;
    padding-top: 0.6em;
    margin-bottom: -0.6em;
    margin-top: -0.6em;
}
.button a:active {
    position: relative;
    top: 7px;
    text-decoration: none;
    color: white;
    display: inline-block;
    z-index: 1;
    padding-bottom: 0.6em;
    padding-top: 0.6em;
    margin-bottom: -0.6em;
    margin-top: -0.6em;
}
.lesser {
    max-width: 400px;
}
.hidden {
    position: absolute;
    z-index: -5;
    top: 0;
    left: 0;
}
.flex {
    display: flex;
    flex-wrap: wrap;
}
#wiki {
    padding-left: 1.5em;
    margin-left: -1.5em;
    padding-right: 1.5em;
    margin-right: -1.5em;
}
#rules {
    padding-left: 3em;
    margin-left: -3em;
    padding-right: 3em;
    margin-right: -3em;
}
#map {
    padding-left: 2em;
    margin-left: -2em;
    padding-right: 2em;
    margin-right: -2em;
}
#main-social {
    margin: auto;
    max-width: 900px;
    text-shadow: 0 0 5px rgb(0, 0, 0); 
    font-family: MinecraftSeven, sans-serif;
    padding: 30px;
    font-size: large;
}
#main-social h1 {
    font-family: MinecraftFive, sans-serif;
    font-size: xx-large;
}
#main-social p {
    line-height: 1.5rem;
}
#social {
    padding-left: 3em;
    margin-left: -3em;
    padding-right: 3em;
    margin-right: -3em;
}
#social-pressed {
    margin-top: 7px;
}
#press {
    display: inline-block;
    background-image: url("images/button_press.png");
    background-size: 100%;
    width: 160px;
    height: 40px;
    color: #ffffff;
    text-align: center;
    font-family: MinecraftFive;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-image: url("images/button_hover.png");
}
.button:active{
    background-image: url("images/button_press.png");
    max-width: 160px;
    max-height: 40px;
}
/* Server Status Bar */
.server-status-bar {
    /* background-color: #2c2c2c; */
    color: #00aaff;
    padding: 10px 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 2px solid #1a1a1a;
}
.social-text {
    color: white;
}
.social-text a {
    color: wheat;
}
#discord-description {
    width: 100%;
    align-items: start;
    margin-top: 5em;
}
#discord-iframe {
    flex: 4;
    margin-top: 3em;
    min-width: 350px;
    width: 100%;
    text-align: center;
}
#textbox {
    flex: 5;
    min-width: 300px;
    text-align: start;
    vertical-align: top;
    padding-right: 4em;
}
#textbox h1{
    margin-top: 0;
}
#preview-announcement {
    font-family: MinecraftSeven, sans-serif;
}
.preview-title h3 {
    margin: 0;
}
.preview-date {
    text-decoration: underline;
}
#feed {
    text-shadow: 0 0 5px #1a1a1a;
}
.item-content a {
    color: wheat;
}
.item-title a {
    color: white;
}
.channel-title { 
    font-size: 2rem; 
    font-weight: bold; 
    margin-bottom: 0.5rem; 
}
.channel-description { 
    font-size: 1.2rem; 
    color: #CCC;  
}
.channel-download {
    margin-top: 1rem;
    font-size: 1rem;
    margin-bottom: 2rem;
}
.item { 
    background: rgb(40 40 40 / 0.7); 
    padding: 1rem; 
    margin-bottom: 1rem; 
    border: solid gray 4px;
    border-radius: 12px; 
    box-shadow: 0 0 5px rgba(0,0,0,0.1); 
    font-family: sans-serif;
}
.item-title { 
    font-size: 1.6rem; 
    font-weight: bold; 
}
.item-title a {
    text-decoration: none;
    color: white;
}
.item-author { 
    font-style: italic; 
    font-size: 1.1rem;
    color: #a0a0a0; 
}
.item-date { 
    color: #999; 
    font-size: 1.05rem; 
    margin-bottom: 0.5rem; 
}
.item-content { 
    font-size: 1rem;
    margin-top: 0.5rem; 
}
.enclosure-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.enclosure-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.enclosure-image-container {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
}

.enclosure-image-container img {
    image-rendering: optimizeQuality;
    box-shadow: 0px 0px 0px 3px #777777;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 1800px) {
    header {
        height: 260px;
    }
}
@media (min-width: 1650px) {
    header {
        height: 240px;
    }
}
@media (max-width: 1440px) {
    header {
        height: 180px;
    }
}
@media (max-width: 1200px) {
    header {
        height: auto;
        margin-bottom: 10px;
    }
}
@media (max-width: 950px) {
    #header {
        width: 100%;
    }
    #header-table {
        width: 100%;
    }
    #logo {
        margin-left: 20px;
    }
    #links {
        width: fit-content;
        margin-right: 20px;
    }
    #layout {
        min-width: 0px;
        max-width: 100%;
        margin: auto;
    }
    #list-container {
        margin-left: 10px;
        max-width: 400px;
        min-width: 150px;
    }
    #list-container ul {
        font-size: xx-small;
        margin-left: -45px;
        line-height: 12px;
    }
    #list-container li+li {
    margin-top: 0px;
    }
    #pack {
        margin-left: 10px;
        max-width: 400px;
        min-width: 150px;
    }
    #removable {
        padding-left: 0;
    }
    #main-body {
        width: fit-content;
    }
    .box {
        max-width: 400px;
        min-width: 200px;
    }
    
}
@media (max-width: 860px) {
    #header {
        margin-top: -8px;
        width: 100%;
        /* background-color: #ffaa00; */
    }
    #header-table {
        align-items: center;
        display: grid;
        width: 100%;
    }
    #logo {
        image-rendering: optimizeQuality;
        width: 90%;
        display: block;
        margin: auto;
    }
    #links {
        width: 330px;
        padding: 10px;
        margin: auto;
        margin-top: -30px;
    }
    #layout {
        min-width: 0px;
        max-width: 100%;
        margin: auto;
        margin-right: 10px;
        margin-left: 10px;
    }
    /* #list-container {
        margin-left: 10px;
        max-width: 250px;
        min-width: 150px;
    } */
    #list-container ul {
        font-size: xx-small;
        margin-left: -45px;
        line-height: 10px;
    }
    #list-container li+li {
    margin-top: 0px;
    }
    #main-body {
        width: fit-content;
    }
    .box {
        max-width: 400px;
        min-width: 200px;
    }
    
}
@media (max-width: 600px) and (orientation: portrait) {
    body {
        width: 100%;
        right: 0px;
        overflow-x: hidden;
    }
    #header {
        margin-top: -8px;
        width: 100%;
        /* background-color: #ffaa00; */
    }
    #header-table {
        align-items: center;
        display: grid;
        width: 100%;
    }
    #logo {
        image-rendering: optimizeQuality;
        width: 90%;
        display: block;
        margin: auto;
    }
    #links {
        width: 330px;
        padding: 10px;
        margin: auto;
        margin-top: -30px;
    }
    #main-body {
        margin: auto;
        margin-top: 15px;
        width: 100%;
        font-size: small;
    }
    #layout {
        /* outline: solid 1px black; */
        margin-top: -10px;
        padding-right: -10px;
        align-content: start;
    }
    #list-container {
        display: none;
    }
    #removable {
        display: none;
    }
    .box {
        max-width: none;
    }
}