/* Base Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'PT Sans', verdana, sans-serif;
    font-size: 14px;
    color: black;
    background-color: #f0f0f0;
}

a {
    color: #003f74;
    text-decoration: none;
}
a:hover {
    color: #0086f8;
    text-decoration: underline;
}

/* Wrapper */
.wrapper {
    min-height: 100%;
    margin: 0 auto;
    padding-bottom: 75px; /* space for footer */
}

/* Top Bar */
.topBarBG {
    position: relative;
    width: 100%;
    background-color: #010715;
}

.topBar {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.1));
    box-shadow: 0 4px 4px rgba(0,0,0,.35);
    border-bottom: 1px solid rgba(0,86,160,.45);
    z-index: 10;
}

.destinyLogo {
    width: 67px;
    height: 64px;
    background: url('themes/destiny/images/destinylogo.png') no-repeat center;
    background-size: contain;
}

#logoSmall img {
    max-width: 150px;
    height: auto;
}

/* Body Content */
.bodyDiv {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: rgba(255,255,255,0.65);
    min-height: 500px;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.2);
    padding: 10px;
    box-sizing: border-box;
}

.leftMenuDiv,
.rightMenuDiv {
    flex: 1 1 175px;
    padding: 10px;
    box-sizing: border-box;
}

.centerContentDiv {
    flex: 2 1 300px;
    padding: 10px;
    box-sizing: border-box;
}

/* Header Logos */
.logoDiv img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.footerDiv {
    text-align: center;
    font-size: 11px;
    color: black;
    padding: 25px 0 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Footer Characters */
.bottomLeftCharacter,
.bottomRightCharacter {
    position: absolute;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -19;
}

.bottomLeftCharacter {
    left: 0;
    width: 20%;
    max-width: 425px;
    height: auto;
    min-height: 150px;
    background-image: url('images/layout/bottom-left-character.png');
}

.bottomRightCharacter {
    right: 0;
    width: 20%;
    max-width: 340px;
    height: auto;
    min-height: 150px;
    background-image: url('images/layout/bottom-right-character.png');
}

.bottomBG {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 150px;
    background-image: url('images/layout/footerbg.jpg');
    background-repeat: repeat-x;
    background-size: cover;
    z-index: -20;
}

/* Destiny Background */
#destinyBG {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 587px;
    background: url('images/layout/destinybg.jpg') center top no-repeat #010715;
}

.destinyBGBottomLeft,
.destinyBGBottomRight {
    position: relative;
    width: 25%;
    height: 53px;
    background-color: #f0f0f0;
    border-top: 2px solid #8f8f8f;
}

.destinyBGBottomLeftIndent,
.destinyBGBottomRightIndent {
    width: 100%;
    height: 100%;
    background: url('images/layout/destinybg-indent.png') no-repeat;
    background-size: cover;
}

/* Media Queries */
@media (max-width: 1024px) {
    .bodyDiv {
        flex-direction: column;
    }
    .leftMenuDiv,
    .rightMenuDiv,
    .centerContentDiv {
        width: 100%;
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    .bottomLeftCharacter,
    .bottomRightCharacter {
        width: 25%;
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    .topBar {
        flex-direction: column;
        align-items: center;
    }
    #logoSmall img {
        max-width: 120px;
    }
    .bottomLeftCharacter,
    .bottomRightCharacter {
        position: relative;
        width: 40%;
        margin: 0 auto 10px;
        display: block;
        left: 0;
        right: 0;
    }
    .bottomBG {
        position: relative;
        height: 100px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    .destinyLogo {
        width: 50px;
        height: 50px;
    }
    .logoDiv img {
        max-width: 90%;
    }
    .bodyDiv {
        padding: 5px;
    }
    .bottomLeftCharacter,
    .bottomRightCharacter {
        width: 80%;
        min-height: 80px;
    }
    .bottomBG {
        height: 80px;
    }
    #destinyBG {
        max-height: 300px;
    }
}