@import url('base.css');
@import url('share.css');
@import url('contact.css');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hamburger Menu */
body.metals-position .hamburger-menu .menu__box {
    background-color: #161616;
}

body.message-position .hamburger-menu .menu__box {
    background-color: #6d6d6d;
}

body {
    display: flex;
    flex-direction: column;
}

section#header {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background-color: #000;
    font-size: 1.5rem;
    text-transform: uppercase;
}

section#header a, section#header a:hover, section#header a:active {
    color: #fff;
    text-decoration: none;
}

h1#title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

h1#title a {
    text-decoration: none;
    color: var(--main-text-color);
}

#page-content {
    margin: 2rem;
    max-width: 1100px;
    align-self: center;
}

#page-content #news-top {
    display: flex;
    margin-bottom: 2rem;
}

#page-content #news-top img {
    width: 335px;
    object-fit: contain;
}

#page-content #news-top #news-details {
    margin: 2rem 0 0 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#page-content #news-top #news-details #news-date {
    color: #888;
}

#page-content #news-top #news-details #news-title {
    font-size: 2.5rem;
    font-weight: bold;
}

#page-content #news-top #news-details #news-author {
    position: absolute;
    bottom: 0;
    display: flex;
    color: var(--main-text-color);
}

#page-content #news-top #news-details #news-author img {
    margin: 0 1rem 0 0;
    width: auto;
}

#page-content #news-top #news-details #news-author #news-author-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#page-content #news-top #news-details #news-author #news-author-details #news-author-name {
    font-weight: 600;
}

#page-content #news-text {
    color: var(--blog-text-color);
	line-height: 1.5;
}

#page-content #news-text a {
    color: revert;
    text-decoration: revert;
}

#page-content #news-text p {
    margin-bottom: 1rem;
}

#page-content #news-text b, #page-content #news-text strong {
    font-weight: bold;
}

#page-content #news-text i, #page-content #news-text em {
    font-style: italic;
}

#page-content #news-text ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
}

#page-content #news-text ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

#page-content #news-text .pull-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 1rem 2rem;
    color: #666;
}

#page-content #news-text .video-embed {
    display: flex;
    background-color: #e2e8ed;
    padding: 1rem;
}

#page-content #news-text .video-embed video {
    width: 50%;
}

#page-content #news-text .video-embed .video-details {
    margin: 2rem;
    color: var(--main-text-color);
}

#page-content #news-text .video-embed .video-details .video-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0;
}

#page-content #news-text .factbox {
    display: flex;
    margin: 2rem 0;
}

#page-content #news-text .factbox .factbox-title {
    text-align: center;
    font-weight: bold;
    color: var(--main-text-color);
    font-size: 2rem;
    margin: 3rem;
}

#page-content #news-text video {
    width: 100%;
}

#page-content hr {
    color: var(--main-text-color);
    margin: 2rem 0;
}

#news-list {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-around;
}

#news-list .news-item {
    background: #fff;
    border-radius: 1rem;
    max-width: 250px;
    margin: 2vw;
    padding: 2rem 0;
    position: relative;
}

#news-list .news-item img {
    width: 100%;
}

#news-list .news-item .news-date {
    font-size: 1rem;
    color: #888;
}

#news-list .news-item .news-text {
    font-weight: bold;
    font-size: 1.5rem;
}

#news-list .news-item .news-text a, #news-list .news-item .news-text a:hover, #news-list .news-item .news-text a:active {
    color: var(--main-text-color);
    text-decoration: none;
}

/* Tablet */
@media only screen and (max-width: 1000px) {
    #page-content #news-top #news-details #news-title {
        font-size: 1.7rem;
    }
}

/* Mobile */
@media only screen and (max-width: 600px) {
    #page-content {
        padding: 1rem;
    }

    #page-content #news-top {
        flex-direction: column;
        align-items: center;
    }

    #page-content #news-top img {
        width: 80vw;
        max-width: 80vw;
    }

    #page-content #news-top #news-details {
        margin: 2rem 0 1rem 0;
    }

    #page-content #news-top #news-details #news-author {
        position: static;
        margin-top: 2rem;
    }

    #page-content #news-text .factbox {
        flex-direction: column;
    }

    #page-content #news-text .video-embed {
        flex-direction: column;
        align-items: center;
    }

    #page-content #news-text .video-embed video {
        width: 100%;
    }

    #page-content #news-text .video-embed .video-details {
        margin: 2rem 0;
    }

    #page-content #news-list {
        flex-direction: column;
        align-items: center;
    }

    #page-content #news-list .news-item {
        margin-bottom: 0;
        width: 80%;
        max-width: none;
    }
}
