* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    margin: 0 auto;
}

#unistats-widget-frame.vertical {
    width: 400px;
}

.ofs_widget {
    display: flex;
    position: relative;
    flex-direction: column;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    align-items: center;
    min-width: 300px;
    width: 100%;
    margin: 0 auto;
    /*max-height: 300px;*/
}

.ofs_widget__background {
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 20px 10px;
    align-items: center;
    width: 100%;
    /*height: 650px;*/
}

.widget__container {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
}

.widget__title {
    font-size: 1.4em;
    color: white;
    padding-bottom: 20px;
    font-weight: 500;
    margin-left: 10px;
}

.title--emphasis {
    font-weight: 600;
}

.stat__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.stat-box {
    background-color: white;
    border-radius: 10px;
    height: 328px;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 24px 50px 24px;
    margin: 0 10px;
}

.stat-box__title {
    font-size: 1.125em;
    text-align: center;
    margin: 10px 0 20px 0;
    font-weight: 500;
}

.stat-box__subtitle {
    font-size: 0.75em;
    color: #646B77;
    text-align: center;
}

.controls {
    display: flex;
    position: absolute;
    top: 280px;
    justify-content: space-between;
    width: 84%;
    align-items: center;
    margin: auto;
    left: 30px;
}

.arrows {
    margin-right: 5px;
}

.arrow_button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 50px;
    transition: box-shadow 0.2s ease;
}

.arrow_button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0A1D42;
}

.arrow_normal,
.arrow_hover,
.arrow_clicked {
    transition: opacity 0.2s ease;
}

/*
Must keep one version of the arrow button (un-clicked in this case)
as a non-absolute element so the div retains its size
*/
.arrow_hover,
.arrow_clicked {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.arrow_button:hover .arrow_hover {
    opacity: 1;
}

.arrow_button:focus .arrow_hover {
    opacity: 1;
}

.arrow_button:hover .arrow_normal {
    opacity: 0;
}

.arrow_button:focus .arrow_normal {
    opacity: 0;
}

.arrow_button:active .arrow_clicked {
    opacity: 1;
}

.arrow_button:active .arrow_normal {
    opacity: 0;
}

.circle {
    display: inline-block;
    background-color: #D5D5DC;
    border-radius: 100%;
    height: 10px;
    width: 10px;
    border: none;
}

.circle.circle-active {
    background-color: #0a1d42;
}

.widget__footer {
    font-size: 0.875em;
    color: white;
    font-weight: 500;
    padding-top: 10px;
    margin-left: 10px;
    padding-right: 30px;
}

.info-box {
    height: 200px;
    width: 100%;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #0a1d42;
    padding: 15px;
}

.info__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 95%;
}

.info__text {
    color: white;
    font-size: 0.9em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
    padding-bottom: 2px;
    padding-right: 5px;
}

.info-emphasis {
    font-weight: 600;
}

.info__img {
    height: 48px;
}

.btn-yellow {
    background-color: #FCD833;
    border-radius: 50px;
    padding: 16px 20px;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: fit-content;
    max-width: 170px;
    font-size: 0.88em;
    font-weight: 500;
    text-decoration: none;
    color: black;
    margin-top: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-yellow:hover {
    background-color: #EDEDED;
}

.btn-yellow:focus {
    outline: none;
    box-shadow: 0 0 0 3px #0A84FF;
    border-radius: 50px;
    background-color: #EDEDED;
}

.stat-box.small-hidden {
    display: none;
}

.info-box.side {
    display: none;
}

.info-box.bottom {
    display: flex;
}

.hidden {
    display: none;
}

.widget__footer.bottom {
    display: none;
}


@media only screen and (min-width: 300px) {
    .ofs_widget {
        /*max-width: 420px;*/
    }

    .stat-container {
        position: relative;
    }

    .widget__container {
        max-width: 420px;
    }

    .info__container {
        flex-direction: column;
    }
}

@media only screen and (min-width: 390px) {
    .info-box {
        height: 140px;
    }

    .info__container {
        flex-direction: row;
    }

    .btn-yellow {
        margin-top: 0;
    }
}

@media only screen and (min-width: 768px) {
    .ofs_widget {
        /*max-width: 770px;*/
    }

    .ofs_widget__background {
        height: 390px;
    }

    .widget__container {
        max-width: 768px;
    }

    .widget__title {
        margin-left: 25px;
    }

    .stat-box {
        height: 275px;
        width: 95%;
        margin: auto;
        padding: 10px 24px 50px 24px;
    }

    .controls {
        width: 91%;
        top: 225px;
        left: 40px;
    }

    .info-box {
        height: 109px;
        padding-top: 30px;
    }

    .info__text {
        padding-bottom: 5px;
        position: absolute;
        top: 410px;
        left: 240px;
        max-width: 350px;
        font-size: 100%;
    }

    .info__text__english {
        top: 418px;
        left: 205px;
    }

    .info__container {
        display: flex;
        justify-content: space-between;
        width: 99%;
    }

    .info__img {
        scale: 1.4;
        margin-left: 32px;
    }

    .info__img__welsh {
        scale: 1;
        margin-left: 12px;
    }

    .widget__footer {
        margin-left: 20px;
    }
}

@media only screen and (min-width: 1024px) {
    .ofs_widget {
        /*max-width: 1024px;*/
        flex-direction: row;
    }

    .ofs_widget__background {
        height: 330px;
        padding: 30px 50px;
    }

    .widget__container {
        max-width: 1024px;
    }

    .stat__container {
        margin-right: 0;
        max-width: 690px;
    }

    .stat-box {
        align-items: flex-end;
        height: 180px;
        padding: 16px 24px 28px 24px;
    }

    .stat-box__title {
        max-width: 350px;
        text-align: left;
        margin-right: 70px
    }

    .stat-box__subtitle {
        max-width: 350px;
        text-align: left;
        margin-right: 70px
    }

    .custom-donut {
        position: absolute;
        left: 100px;
        top: 24px;
    }

    .info-box {
        margin: 0;
        position: absolute;
        width: 226px;
        left: 700px;
        height: unset;
        padding: 0;
        background-color: unset;
    }

    .info-box.side {
        width: 226px;
    }

    .info__text {
        top: 100px;
        left: unset;
        font-size: 0.875em;
    }

    .info__container {
        display: flex;
        height: 250px;
        flex-direction: column;
        align-items: flex-start;
    }

    .controls {
        width: 90%;
        /*padding-left: 45px;*/
        left: 45px;
        top: 128px;
    }

    .info__text {
        top: 85px;
        font-size: 100%;
    }

    .info__img {
        scale: 1;
        height: 62px;
        margin-left: 0;
    }

    .widget__footer {
        padding-top: 20px;
    }

    .info-box.side {
        display: block;
    }

    .info-box.bottom {
        display: none;
    }

    .widget__footer.bottom {
        display: block;
        width: 680px;
    }

    .widget__footer.side {
        display: none;
    }
}

@media only screen and (min-width: 1280px) {
    .ofs_widget {
        background-repeat: no-repeat;
        background-size: cover;
        max-width: unset;
    }

    .ofs_widget__background {
        height: 450px;
        padding: 20px 50px 20px 40px;
    }

    .widget__container {
        max-width: 1280px;
        padding-top: 25px;
    }

    .widget__title {
        margin-left: 0;
        padding-left: 20px;
    }

    .stat__container {
        flex-direction: row;
        max-width: 1208px;
        /*margin-top: 25px;*/
    }

    .stat-box {
        align-items: center;
        margin: 0 10px;
        height: 300px;
        max-width: 300px;
        padding: 16px 24px 30px 24px;
    }

    .custom-donut {
        position: static;
        left: unset;
    }

    .stat-box__title {
        max-width: unset;
        text-align: center;
        margin-right: unset;
    }

    .stat-box__subtitle {
        max-width: unset;
        text-align: center;
        margin-right: unset;
    }

    .controls {
        display: none;
    }

    .info-box {
        padding-left: 20px;
        position: static;
        height: 300px;
        width: 226px;
        padding-top: 0;
        margin-top: 0;
    }

    .info__container {
        height: 325px;
    }

    .info__text {
        top: 100px;
        font-size: 110%;
    }

    .info__img {
        height: 80px;
    }

    .info__img__welsh {
        height: 60px;
    }

    .widget__footer {
        /*position: absolute;*/
        /*top: 420px;*/
        /*left: 40px;*/
        /*margin-left: 30px;*/
        padding-top: 20px;
    }

    .widget__footer.bottom {
        width: auto;
    }

    .stat-box.small-hidden {
        display: flex;
    }

    .info-box.bottom {
        display: none;
    }

    .info-box.side {
        display: flex;
    }

}
