body {
    margin: 0px;
    padding: 0px;
    background-color: black;
}

.nodrag {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}

/* HEADER */

header {
    padding: 10px;
}

#banner {
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 8px;
    max-width: 264px;
    background-color: #800a7f;
    border-radius: 8px;
    transition: .2s ease;
}

#banner:hover {
    background-color: #6b086b;
}

#banner:active {
    background-color: #560656;
    transition: 0s;
}

#logo {
    display: block;
    width: 100%;
    height: auto;
}

#logo-hover {
    position: absolute;
    top: 18px;
    bottom: 0;
    transition: .2s ease;
    opacity: 0;
}

#logo-hover:hover {
    opacity: 1;
}

/* NAV */

nav {
    margin: auto;
    width: 1450px;
    padding: 0px 12px 0px 12px;
    background-color: gray;
    text-align: center
}

nav a {
    padding-left: 4px;
    padding-right: 4px;
    height: auto;
    width: auto;
    font-size: 24px;
    text-decoration: none;
    color: white;
}

nav a:hover {
    background-color: darkgray;
}

nav a:active {
    color: lightgray;
    background-color: #484848;
    border-radius: 3px;
}

@media screen and (max-width: 1500px) {

    nav {
        width: 90%;
    }

    nav a {
        font-size: 16px;
    }

}

/* MAIN */
main {
    min-height: 900px;
    margin: auto;
    margin-top: 0px;
    padding: 12px;
    padding-top: 0px;
    width: 1450px;
    background-color: #d0d0d0;
    border-radius: 0px 0px 5px 5px;
    font-family: Helvetica;
}

h1 {
    margin-top: 0;
}

a {
    color: cornflowerblue;
}

.centered {
    margin: auto;
    display: block;
}

.table-centered {
    margin: auto;
}

.text-centered {
    text-align: center;
}

.link-table {
    display: block;
    padding: 8px;
}

.link-table:hover {
    background-color: grey;
    color: white;
}

.link-table img {
    padding: 10px;
}

.link:hover img {
    background-color: grey;
}

.popup {
    display: none;
    position: fixed;
    padding: 10px;
    width: 50%;
    left: 33%;
    right: 33%;
    margin-left: -150px;
    height: auto;
    top: 44%;
    margin-top: -300px;
    background: #FFF;
    z-index: 20;
    border: 2px solid gray;
}

.popup:after {
    position: fixed;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    z-index: -2;
}

.popup:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #FFF;
    z-index: -1;
}

.popup:target {
    display: block;
}

.popup h2 {
    margin-top: 0;
}

.popup button {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0px;
}

.table-spec thead td {
    padding: 0px 20px 5px 20px;
    background-color: gray;
    border: 2px solid darkgray;
}

.table-spec tbody td {
    background-color: #b5b5b5;
    width: 120px;
    height: 130px;
}

.table-spec tbody img {
    height: 120px;
    width: auto;
}

.image-specrend {
    display: inline;
    float: right;
    width: 33%;
}

.image-silly {
    width: 20%;
    height: auto;
    margin: 30px;
}

.image-silly-full {
    width: 50%;
    height: auto;
}

#home-intro {
    margin: auto;
    margin-top: 0px;
    padding: 0 8px 8px 6px;
    text-align: center;
    width: 33%;
    background-color: #c6c6c6;
    border: 1px solid gray;
    border-top: none;
    border-radius: 0 0 4px 4px;;
}

#home-map {
    margin: auto;
    text-align: center;
}

#magic-chart {
    margin-top: -25px;
    display: inline;
    float: right;
    height: 295px;
    border: 1px solid gray;
}

#magic-elem-tables {
    display: block;
}

#magic-elem-basic {
    float: left;
    padding-left: 8%;
}

#magic-elem-hybrid {
    float: right;
    padding-right: 8%;
}

#magic-spirit{
    clear: both;
}

#button-silly {
    width: 20%;
    height: auto;
    border: 1px solid #574259;
    border-radius: 6px;
    background-color: #c998cc
}

#button-silly:hover {
    background-color: #be90c1;
}

#button-silly:active {
    background-color: #9a759d;
}

@media screen and (max-width: 1500px) {

    main {
        width: 90%;
    }

    #magic-chart {
        width: 33%;
        height: auto;
    }

}

@media screen and (max-width: 1100px) {

    #magic-elem-basic {
        float: none;
        padding-left: 0;
    }

    #magic-elem-hybrid {
        float: none;
        padding-right: 0;
    }

}

@media screen and (max-width: 600px) {

    .popup {
        margin-left: -27%;
        width: 80%;
        max-height: 66%;
        overflow: auto;
    }

    .image-silly {
        width: 90%;
        height: auto;
        margin: 0;
        margin-bottom: 20px;
    }

    .image-silly-full {
        width: 85%;
        height: auto;
    }

    #home-intro {
        width: 66%;
    }

    #magic-chart {
        width: 55%;
        height: auto;
    }

}

/* FOOTER */

footer {
    margin: auto;
    margin-top: 2px;
    padding: 0px 0px 2px 0px;
    width: 44%;
    text-align: center;
    color: white;
    background-color: darkgray;
    border-radius: 5px 5px 0px 0px;
}

@media screen and (max-width: 600px) {

    footer {
        width: 80%;
    }

}

/* MAP */

#worldmap {
    height: 725px;
    width: 1300px;
    margin: auto;
    background-color: #d0d0d0;
    border: 2px solid black;
    border-radius: 20px;
}

.popupglyph {
    float: right;
    height: 26px;
    padding-right: 5px;
}

.popupmap {
    float: right;
    max-width: 33%;
    border: 1px solid black;
    padding-left: 2px;
}

.popup-scrollable .leaflet-popup-content {
    max-height: 133px;
    overflow: scroll;
}

@media screen and (max-width: 1500px) {

    #worldmap {
        height: 400px;
        width: 800px;
    }

}

@media screen and (max-width: 600px) {

    #worldmap {
        height: 250px;
        width: 99%;
    }

}
