﻿.second-row{
    display:flex;
    justify-content:space-around;
    padding-top:1.5%;
}

.newsbox {
    width: 55%;
    display: flex;
    flex-direction: column;
}

.purplebox {
    width: 42%;
    display: flex;
    flex-direction: column;
}

.newsbox > .header {
    background-image: url('../assets/homepage/newsbox_top.png');
    padding-top: 3%;
}

.newsbox > .content {
    background-image: url('../assets/homepage/newsbox_content.png');
    height:82%;
}

.header {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position-y: bottom;
    width: 100%;
    font-size: min(2.5vw, 22px);
    box-sizing: border-box;
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.content {
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-size: contain;
    width: 100%;
    background-position-y: top;
    box-sizing: border-box;
    padding: 0 2% 2%;
    background-size: 100% 100%;
    flex-grow: 1;
}

.purplebox > .header {
    background-image: url('../assets/homepage/redeemcode_top.png');
    padding-top: 3.5%;
}

.purplebox > .content {
    background-image: url('../assets/homepage/redeemcode_content.png');
}

.newsarticle{
    margin-bottom:0.5%;
    display:flex;
    flex-flow:column;
}

.newsarticle > .title {
    font-size: min(2.4vw, 22px);
    color: #ffcc00;
    text-shadow: 1px 1px 2px #000;
    text-transform:uppercase;
    line-height:1;
}

    .newsarticle > .news {
        font-size: min(1.5vw, 14px);
        font-family: 'Lucida Sans Unicode';
        overflow: hidden;
        line-height: 1.2;
        flex: 1 1 auto;
    }

.newsarticle>.readpost{
    font-size:min(1.5vw, 14px);
    height:10%;
    display:flex;
    align-items:center;
    justify-content:end;
    bottom:0;
}

.prev,
.next {
    cursor: pointer;
    color: #fff;
    padding: 10px 20px;
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    text-decoration: none;
    box-sizing: border-box;
    background-image: url(../assets/faq/arrow.png);
    background-size: contain;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 767px) {
    .second-row {
        flex-direction: column;
    }

    .purplebox {
        padding-top: 2%;
        width: 100%
    }

    .purplebox > .header {
        padding-top: 6.5%;
    }

    .newsbox {
        width: 100%;
    }

    .header {
        font-size: 4vw;
    }

    .newsarticle > .title {
        font-size: 5vw;
    }

    .newsarticle > .news {
        font-size: 3vw;
    }

    .newsarticle > .readpost {
        font-size: 3vw;
    }
    .prev,
    .next {
        height: 20px;
    }
}

.slider {
    width: 100%;
    height: 100%;
    margin: auto;
    overflow: hidden;
    transform: translateY(0%);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
}

.slide {
    height: 100%;
    flex: 0 0 100%;
    transition: transform 1s ease;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: cover;
}

.prev {
    left: 0;
    rotate: 90deg;
}

.next {
    right: 0;
    rotate: -90deg;
}

.rotator {
    width: 100%;
    position: relative;
    z-index: 10;
    max-height: 447.38px;
    height: 48vw;
}

.sliderBackground {
    width: 100%;
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
    position: relative;
}

.sliderBackground::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/homepage/rotatorframe2.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}