@-webkit-keyframes logo {
    0% {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.07);
                transform: scale(1.07);
    }
    100% {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
}

@keyframes logo {
    0% {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.07);
                transform: scale(1.07);
    }
    100% {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
}

#menu a:hover {
    color: #000;
    transition: all 0.35s;
}

#headerwrapper {
    position: relative;
    width: 100%;
    height: 570px;
    max-height: 550px;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(26, 26, 29, 0), rgba(26, 26, 29, 1)), url(../images/background.jpg);
    background-size: cover;
    z-index: -1;
}

body {
    background-color: #1a1a1d;
    margin: 0;
}

.title {
    font-size: 30px;
}

.desc {
    color: rgb(250, 200, 200);
}

.imgcontainer {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: center;
}

.featurecontainer {
    margin-top: 40px;
    background-color: #A52A2A;
    border-radius: 10px;
    margin-bottom: 5px;
    padding: 15px;
}

#wrap {
    width: 100%;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
}

#minecraftserver a:nth-child(2) {
    display: inline-block;
    text-decoration: none;
    color: #efefef;
    font-family: 'Titillium Web', sans-serif;
}

#menu a {
    text-decoration: none;
    color: #efefef;
    font-family: 'Titillium Web', sans-serif;
    display: flex;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: #fe213d;
}


#menu {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
}

#menu i {
    margin-right: 5px;
}

#menu li {
    list-style: none;
}

    
.main_feature_desc{
    color: #efefef;
    font-family: 'Titillium Web', sans-serif;
    font-size: 17px;
}

#image1 {
    border-radius: 10px 10px 0 0;
    background-image: url('../images/m_dungeon.png');
    background-size: cover;
    background-position: center;
}

#image2 {
    border-radius: 10px 10px 0 0;
    background-image: url('../images/m_plugin.png');
    background-size: cover;
    background-position: center;
}

#image3 {
    border-radius: 10px 10px 0 0;
    background-image: url('../images/m_event.png');
    background-size: cover;
    background-position: center;    
}


@media(max-width: 850px) {

    #mainpic img {
        width: 350px;
        height: 350px;
        margin-top: 30px;

        -webkit-animation-name: logo;
        animation-name: logo;
        -webkit-animation-duration: 5s;
        animation-duration: 5s;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
        -webkit-animation-timing-function: ease-in-out;
        animation-timing-function: ease-in-out;
    }

    #main {
        margin: -185px 0 20px 0;
        position: relative;
    }

    #menu ul {
        padding: 0;
    }

    #menu li {
        margin-top: 15px;
    }

    #menu a {
        width: 340px;
        height: 40px;
    }


    #minecraftserver {
        display: none;
    }

    #headerlogo {
        display: flex;
        justify-content: center;
    }

    #discord {
        display: none;
    }

    .main_feature_desc {
        padding: 15px;
        text-align: center;
        margin-top: -10px;
    }

    .title {
        margin-top: 5px;
    }

    .desc {
        margin-top: -20px;
    }

    .main_feature div {
        height: fit-content;
    }

    #image1 {
        width: 100%;
        height: 190px;
    }

    #image2 {
        width: 100%;
        height: 190px;
    }

    #image3 {
        width: 100%;
        height: 190px;
    }

    .featurecontainer {
        margin-bottom: 40px;
    }
}

@media(min-width: 851px) {

    #headerwrapper {
        display: flex;
        justify-content: space-between;
    }

    #minecraftserver a:nth-child(2) {
        margin: 15px 0 0 7px;
    }

    nav#menu {
        position: relative;
        z-index: 1; 
        margin-top: -210px;
    }
    
    #mainpic {
        margin-top: 30px;
    }
    
    #mainpic img {
        width: 350px;
        height: auto;
        margin: auto;
        z-index: 0;
        position: relative;
        margin-top: 40px;
    
        -webkit-animation-name: logo;
        animation-name: logo;
        -webkit-animation-duration: 5s;
        animation-duration: 5s;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
        -webkit-animation-timing-function: ease-in-out;
        animation-timing-function: ease-in-out;
    }

    .featurecontainer {
        width: 100%;
    }
    
    .logo {
        width: 57px;
        height: auto;
        margin: 10px 0 0 13px;
        float: left;
    }
    
    #discord {
        margin-right: 13px;
        height: 100px;
        width: 210px;
    }
    
    #discord a img {
        border-radius: 10px;
        width: 52px;
        height: auto;
    }
    
    #discord a:nth-child(2) {
        display: inline-block;
        text-decoration: none;
        color: #efefef;
        font-family: 'Titillium Web', sans-serif;
        margin: 13px 0 0 7px;
    }
    
    #discord_status {
        color: #32CD32;
    }
    
    #minecraftserver {
        height: 100px;
        width: 220px;
        margin-top: -3px;
    }
    
    #server_status, #discord_status {
        margin-top: -3px;
    }
    
    #menu ul {
        padding: 0;
        display: flex;
    }
    
    #menu li {
        margin: 0 10px;
        margin-top: 75px;
    }
    
    #menu a {
        width: 180px;
        height: 45px;
    }
    
    /* Features */
    
    .main_feature {
        display: flex;
        justify-content: center;
    }
    
    .featurecontainer{
        height: 480px;
        width: 800px;
    }
    
    .title {
        font-weight: bolder;
        margin-top: 12px;
    }
    
    .desc {
        margin-top: -25px;
    }

    .main_feature div {
        height: fit-content;
    }

    #image1 {
        width: 800px;
        height: 350px;
    }

    #image2 {
        width: 800px;
        height: 350px;
    }

    #image3 {
        width: 800px;
        height: 350px;
    }

    .main_feature div {
        width: 800px;
    }
}