/* #region Globals */

* {
    font-family: 'Red Hat Display';
}

h1 {
    font-size: 3rem;
    line-height: 3.6rem;
    color: #fff;
    font-weight: 600;
}

h2 {
    font-size: 2.6rem;
    line-height: 3rem;
    color: #3c4248;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    line-height: 2.4rem;
    color: #3c4248;
    font-weight: 600;
}

h3 span {
    font-size: 1.2rem;
    line-height: 2rem;
}

h4 {
    font-size: 1.4rem;
    line-height: 2rem;
    color: #bd916f;
    font-weight: 600;
}

body {
    background-color: #f5f8fa;
}

.mainlink {
    padding: 15px 30px;
    border-radius: 5px;
    border: 3px solid #5ba8c1;
    color: #5ba8c1;
    position: relative;
    transition: all .2s;
    cursor: pointer;
    overflow: hidden;
    font-weight: bold;
}

.mainlink span {
    position: relative;
    z-index: 2;
}

.mainlink:before {
    content: "";
    background-color: #5ba8c1;
    width: 150%;
    height: 0;
    position: absolute;
    transition: all .2s;
    left: -20%;
    top: 50%;
    transform: rotate(-15deg);
}

.mainlink:hover:before {
    height: 500%;
    top: -200%;
}

.mainlink div {
    transition: all .2s;
    position: relative;
    z-index: 2;
}

.mainlink:hover span {
    transform: scale(1.05);
    color: #fff;
}

.textlink {
    font-weight: bold;
    color: #5ba8c1;
}

.textlink:hover {
    text-decoration: underline;
}

table:first-of-type {
    margin-right: 4%;
}

table tr:first-of-type td {
    background-color: #bd916f;
    color: #fff;
    padding: 10px 20px;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.15);
}

@media only screen and (max-width:1700px) {
    .boxbox {
        width: 96%;
    }
}

@media only screen and (max-width:1200px) {
    h1 {
        font-size: 2.6rem;
        line-height: 3rem;
    }

    h2 {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    h3 {
        font-size: 1.6rem;
        line-height: 2rem;
    }

    h4 {
        font-size:1.2rem;
        line-height:1.6rem;
    }
}

@media only screen and (max-width:1000px) {
    .padtop2 {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .boxbox {
        width: 90%;
    }
}

@media only screen and (max-width:600px) {
    h1 {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    h2 {
        font-size: 1.6rem;
        line-height: 2rem;
    }

    h3 {
        font-size: 1.2rem;
        line-height: 1.4rem;
    }

    h4 {
        font-size:1rem;
        line-height:1.4rem;
    }

    .mainlink {
        padding: 10px 15px;
    }
}

/* #endregion */

/* #region Header */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    transition: all .3s;
    z-index: 10;
}

.header .subheader {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header .subheader .stocktop {
    color: #fff;
    padding:5px 0;
}

.header .subheader .stocktop span {
    font-weight: bold;
}

.header .subheader .subscribe span {
    color: rgba(255, 255, 255, 0.95);
    margin-right: 10px;
}

.header .subheader .subscribe form {
    background-color: rgba(28, 36, 43, 0.75);
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.header .subheader .subscribe input {
    background-color: transparent;
    padding: 10px;
    color: #fff;
    font-weight: 500;
    font-size: 1.4rem;
}

.header .subheader .subscribe button {
    background-color: transparent;
    color: #fff;
    padding-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    font-weight: 500;
    font-size: 1.8rem;
}

.header .main {
    padding-top: 20px;
    padding-bottom: 20px;
}

.scrolled {
    background-color: rgba(28, 36, 43, 0.95);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.header .main .logo img {
    height: 50px;
    transition:all .2s;
}

.scrolled .main .logo img {
    height: 40px;
}

@media only screen and (max-width:600px) {
    .header .subheader .stocktop {
        display: none;
    }

    .header .subheader .subscribe,
    .header .subheader .subscribe form,
    .header .subheader .subscribe input {
        flex-grow: 1;
    }
}

@media only screen and (max-width:500px) {
    .header .subheader .subscribe {
        display: block;
    }

    .header .subheader .subscribe form {
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }

    .header .subheader .subscribe span {
        padding: 5px;
        display: block;
        text-align: center;
    }
}

/* #endregion */

/* #region Pagetop */

.pagetop {
    background-color: #1c242b;
    overflow:hidden;
}

.pagetop:before {
    content: "";
    background-image: url('images/bg_pagetop.jpg');
    background-size: cover;
    background-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity:0.25;
}

.pagetop .homebox {
    background-image: url('images/bg_logo.png');
    background-repeat: no-repeat;
    background-size: 700px auto;
    background-position: bottom -350px right 60px;
}

/* #endregion */

/* #region Home */
.home, .contbox {
    background-color: #f5f8fa;
}

.home p, .home li {
    font-size:1.2rem;
}

.home .location {
    position: relative;
    padding-left: 0;
}

.home .location .locmap {
    background-image: url('images/bg_home.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 2;
    position: absolute;
    width: 50%;
    height: 110%;
    top: 0;
    right: 0;
}

.home .location .maintext {
    width: 60%;
}

.home .location .maintext p {
    font-size: 1.6rem;
}

.home .latest {
    background-color: rgba(233, 238, 242, 0.9);
}

.home .latest .container {
    border: 5px dashed rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    padding: 120px;
}

.home .latest .item {
    border: 2px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 5px;
    width: 32%;
    margin-right: 2%;
    color: #222;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}

.home .latest .item:before {
    position: absolute;
    content: "";
    height: 0;
    width: 150%;
    background-color: #5ba8c1;
    left: -15%;
    transition: all .2s;
    transform: rotate(-15deg);
}

.home .latest .item:hover {
    border-color: #5ba8c1;
}

.home .latest .item:hover:before {
    height: 220%;
}

.home .latest .item div {
    transition: all .2s;
    position: relative;
    z-index: 2;
}

.home .latest .item:hover div {
    transform: scale(1.05);
    color: #fff;
}

.home .latest .item:last-of-type {
    margin-right: 0;
}

.home .latest .item span {
    display: block;
    font-weight: 600;
}

.home .project {
    background-image:url('images/bg_project_gorilla.jpg');
    background-size:cover;
    background-position:center center;
    background-attachment:fixed;
}

.home .project img {
    max-height:500px;
    width:unset;
    display:block;
    margin:auto;
    border:10px solid #fff;
    box-shadow:0 0 20px rgba(0, 0, 0, 0.10);
}

.home .sask .map {
    margin-top:2rem;
}

.home .sask .map {
    background-image:url('images/bg_home_sask.png');
    background-size:contain;
    background-position:center center;
    background-repeat:no-repeat;
}

@media only screen and (max-width:1400px) {
    .home .location .maintext {
        width: 50%;
    }
}

@media only screen and (max-width:1000px) {
    .home .location {
        display: flex;
        flex-direction: column-reverse;
        padding: 0;
        padding-bottom: 60px;
    }

    .home .location .locmap {
        position: unset;
        width: 100%;
        height: 50vw;
    }

    .home .location .maintext {
        width: 100%;
        padding-top: 30px;
    }

    .home .latest .newsflex {
        display: block;
    }

    .home .latest .item {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 800px) {
    .home .sask {
        flex-direction: column;
    }

    .home .sask .half {
        width: 100%;
    }

    .home .sask .map {
        height: 500px;
        margin-top: 1rem;
    }

    .home .project .boxbox {
        flex-direction: column;
    }

    .home .project .half {
        width: 100%;
    }

    .home .project img {
        margin-bottom: 1rem;
    }
}


@media only screen and (max-width:600px) {
    .home .location .locmap {
        height: 75vw;
    }

    .home .location .maintext p {
        font-size: 1rem;
    }

    .home .latest .newstop {
        display: block;
    }

    .home .latest h2 {
        margin-bottom: 15px;
    }
}

/* #endregion */

/* #region Footer */

.footer {
    background-color: #1c242b;
    color: #fff;
}

.footer .info {
    width: 25%;
}

.footer .info img {
    max-width:300px;
}

.footer .sitemap {
    margin-left: 120px;
}

.footer .sitemap .top {
    opacity: .5;
    font-size: 1.6rem;
}

.footer .sitemap .lower a {
    display: block;
    color: #fff;
}

.footer .sitemap .lower a:hover {
    color: #5ba8c1;
}

.footer .sitemap .toplink {
    color: #fff;
    font-size: 1.6rem;
}

.footer .subfooter {
    padding: 15px 0;
    font-size: 1rem;
}

.footer .subfooter a {
    color: #fff;
    font-weight: bold;
}

.footer .subfooter a:hover {
    color: #5ba8c1;
}

.footer .subsub a {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    text-align: center;
}

@media only screen and (max-width:1600px) {
    .footer .footflex {
        display: block;
    }

    .footer .info {
        width: unset;
        max-width: 800px;
    }

    .footer .sitemap {
        margin-left: 0;
        margin-top: 60px;
    }
}

@media only screen and (max-width:1000px) {
    .footer .sitemap {
        display: block;
    }

    .footer .sitemap .lower a {
        margin-bottom: 15px;
    }

    .footer .sitemap .top {
        margin-bottom: 15px;
        margin-top: 15px;
    }

    .footer .info img {
        height: 50px;
    }

    .footer .subfooter {
        flex-direction: column-reverse;
        text-align: center;
    }

    .footer .subfooter span {
        display: block;
    }
}

/* #endregion */

/* #region Content */

.content {
    position: relative;
}

.content .under {
    position: absolute;
    background-image: url('images/bg_logo.png');
    background-repeat: no-repeat;
    background-size: 40% auto;
    background-position: bottom -60px right -60px;
    width: 100%;
    height: 100%;
    opacity: .10;
}

.content .boxbox {
    position: relative;
}

.content .missing {
    padding: 30px;
    margin-top: 20px;
    border: 2px dashed #ccc;
    color: #ccc;
    font-weight: 600;
    width: 100%;
}

/* #endregion */

/* #region Page: Management */

.content .management .item {
    width: 32%;
    margin-right: 2%;
}

.content .management .item .text {
    border-left: 3px solid #3c4248;
    padding-left: 20px;
}

.content .management .item:last-of-type {
    margin-right: 0;
}

@media only screen and (max-width:1200px) {
    .content .management {
        display: block;
    }

    .content .management .item {
        width: 100%;
        margin-right: 0;
    }
}

/* #endregion */

/* #region Page: Stock */

.content .stock .item {
    font-weight: 600;
    text-align: center;
    border: 2px solid #ccc;
}

.content .stock .item span {
    font-size: 3rem;
    display: block;
    line-height: 3rem;
}

.content .stock .tradingview-widget-container {
    height: unset !important;
}

.content .stock .schedule h2 {
    margin-bottom: 30px;
    text-align: center;
}

.content .stock .schedule h3 {
    text-align: center;
}

.content .stock .schedule .half {
    width: 49%;
}

.content .stock .schedule .half:first-of-type {
    margin-right: 2%;
}

.content .stock .schedule table {
    width: 100%;
    margin-top: 15px;
}

@media only screen and (max-width:1200px) {
    .content .corpstock {
        display:block;
    }
    .content .corpstock .half {
        width:100%;
    }
    .content .corpstock h4 {
        margin-top:30px;
    }
}

@media only screen and (max-width:800px) {
    .content .stock .price .flex {
        display:block;
    }
    .content .stock .price .spacer {
        margin-right:unset;
        margin-bottom:30px;
    }
    .content .stock .tradinginner {
        height:50vw;
    }
}

/* #region 1100 Breakpoint */

.content .m1100 .item span {
    font-size: 2rem;
    line-height: 2rem;
}

/* #endregion */

/* #region 800 Breakpoint */

.content .m800 .itemflex .item {
    width: 100%;
}

.content .m800 .itemflex .item:not(:last-of-type) {
    margin-bottom: 30px;
}

.content .m800 .itemflex .item span {
    font-size: 3rem;
    line-height: 3rem;
}

.content .m800 .itemflex {
    display: block;
}

/* #endregion */

/* #endregion */

/* #region Page: Archive */

#archive .newschive .newsbox:hover {
    border-color: #5ba8c1;
}

#archive .newschive .newsbox .newslink div {
    transition: all .2s;
}

#archive .newschive .newsbox .newslink:hover div {
    transform: scale(1.05);
}

#archive .newschive .newsbox .newslink:hover {
    background-color: #5ba8c1;
}

#archive .year .active {
    background-color: #bd916f;
    border-color: #bd916f;
}

/* #endregion */

/* #region Page: Project */

.project .section .boxbox {
    padding: 3rem;
    border: 2px solid #bbb;
    background-color: #f5f8fa;
}

.project img {
    max-width:100%;
}

#project .gallery h3 {
    background-color:#f5f8fa;
}

@media only screen and (max-width: 1000px) {
    .project .featblock {
        width:100%;
    }
    .project .section {
        padding:1rem;
    }
}


/* #endregion */

/* #region Page: News */
.content .news {
    padding: 60px;
    border: 2px solid #bbb;
    background-color: #f5f8fa;
    max-width: 1200px;
    margin: auto;
}

/* #endregion */

/* #region Page: Contact */
#contact .info a,
#contact .info p,
#contact .info b {
    font-size: 1.6rem;
}

#contact .info a,
#contact .info a span {
    line-height: 2rem;
    color:#bd916f;
}

#contact .contactform {
    background-color:#bd916f;
}

#contact .contactform h3 {
    color:#fff;
}

#contact form .text, #contact form .formrow {
    color:#fff;
    border:1px solid rgba(255,255,255,0.5);
}

#contact form .text::placeholder, #contact form .formrow::placeholder {
    color:rgba(255,255,255,0.5);
}

@media only screen and (max-width:600px) {
    #contact .info a,
    #contact .info p,
    #contact .info b {
        font-size:1rem;
    }
}

/* #endregion */