.hidden {
    display: none;
}

@font-face {
    font-family: 'fffont';
    src: url('/fonts/astounder-squared-bb.woff2') format('woff2'),
        url('/fonts/astounder-squared-bb.woff') format('woff');
}

@font-face {
    font-family: 'fffont-body';
    src: url('/fonts/BalooTammudu2-Regular.woff2') format('woff2'),
    url('/fonts/BalooTammudu2-Regular.woff') format('woff');
}

@font-face {
    font-family: 'fffont-bold';
    src: url('/fonts/BalooTammudu2-Bold.woff2') format('woff2'),
    url('/fonts/BalooTammudu2-Bold.woff') format('woff');
}

@import url("normalize.css");

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

html, body {
    margin: 0; padding: 0;
}

body {
    height: 100%;
    min-height: 100%;
    background: white;
    font-family: 'fffont-body', Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    min-width: fit-content;
    color: black;
}

.scrollbar-visible {
    &::-webkit-scrollbar {
        width: 16px;
    }

    &::-webkit-scrollbar-thumb {
        background: white;
        border: 5px solid rgba(0, 0, 0, 0);
        background-clip: padding-box;
        border-radius: 9999px;
    }

    &::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        padding: 2px;
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    }
}

.scrollbar-visible-internal {
    &::-webkit-scrollbar {
        width: 16px;
    }

    &::-webkit-scrollbar-thumb {
        background: white;
        border: 5px solid rgba(0, 0, 0, 0);
        background-clip: padding-box;
        border-radius: 9999px;
    }

    &::-webkit-scrollbar-track {
        background: none;
        padding: 2px;
    }
}

::-webkit-scrollbar {
    width: 0px;
}

h1,
h2,
h3,
h4 {
    font-family: 'fffont', serif;
    font-weight: normal;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 6rem;
    line-height: 6rem;
}

h2 {
    font-size: 5rem;
    line-height: 5rem;
}

h3 {
    font-size: 2.5rem;
    line-height: 2.5rem;
}

h4, legend {
    font-size: 2rem;
    line-height: 2rem;
}

.bodyfont, legend {
    font-family: 'fffont-body', Arial, Helvetica, sans-serif;
}

strong,
b {
    font-family: 'fffont-bold', Arial, Helvetica, sans-serif;
    font-weight: 700;
}

a:active, a:visited, a:link {
    color: black;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

p {
    width: 70%;
    text-align: center;
    margin: 0 auto 1rem auto;
}

p.links {
    width: 100%;
    text-align: center;
}

p.links a.button {
    display: inline;
    margin: 0 auto 1rem auto;
}    

p a.button:active, p a.button:visited, p a.button:link {
    display: inline-block;
    color: white;
    text-decoration: none;
}

p a.button:active .cta, p a.button:visited .cta, p a.button:link .cta {
    display: inline-block;
    transition: transform 1s ease;
    transform: scale3d(1,1,1);
}

p a.button .cta:hover {
    transform: scale3d(0.95,0.95,0.95);
}

p.highlight, div.highlight {
    background: #cccccc;
    padding: 1rem 1rem 0.5rem 1rem;
    border-radius: 1rem;
    display: block;
    text-align: center;
}

.pre-load,
.pre-load img {
    width: 0;
    height: 0;
    overflow: hidden;
    display: none;
}

.social-icons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.social-icons a:active svg, .social-icons a:visited svg, .social-icons a:link svg {
    width: 40px;
    height: 40px;
    margin: 1rem;
    transform: scale3d(1,1,1);
    transition: transform 1s ease;
}

.social-icons a:hover svg {
    transform: scale3d(0.95,0.95,0.95);
}

.cover {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    opacity: 1;
    transition: opacity 1.5s ease;
}


.cta {
    color: white;
    background: black;
    border-radius: 2rem;
    font-size: 1.5rem;
    padding: 1rem 1.25rem 0rem 1.25rem;
    font-weight: 700;
    width: auto;
    margin: auto;
    display: inline-block;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close-btn .cta {
    font-size: 1.5rem;
    padding: 0.75rem 1rem 0rem 1rem;
}

.close-btn {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;

    transform: scale3d(1,1,1);

    transition: transform 1s ease;
}

.close-btn:hover {
    transform: scale3d(0.95,0.95,0.95);
}

section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-rows {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
}

section.videoplayer, section.reveal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: scale3d(0,0,0);
    z-index: 10;
    transition: transform .25s ease-in;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

section.videoplayer {
    background-color: black;
    color: white;
    padding: 10rem;
}

section.videoplayer .close-btn {
    z-index: 100;
}

section.videoplayer .close-btn .cta {
    background-color: white;
    color: black;
}

.video-wrap {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative; 
}

.video-wrap video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
}

.copy {
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.copy.half {
    width: 50%;
    max-height: 75vh;
    overflow-y: auto;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
    margin: 5rem;
}

.copy.half p {
    width: 100%;
}

/*Text colours & effects */
.white-text {
    color: #fff;
}

.shadow-text {
    text-shadow: 0rem 0rem 2px black, 0rem 0.1rem 0.3rem black, 0rem 0.25rem 0.5rem rgba(0,0,0,0.5);
}

.white-outer-glow {
    text-shadow: 0 0 1px white, 1px 1px 1px white,  -1px -1px 1px white,  0px 0px 2px white, 1px 1px 2px white, -1px -1px 2px white, 0px 0px 4px white;
}

/*BG Colours */
.white-bg {
    background: #fff;
}

/* Forms */

.sign-up-form-container {
    width: 90%;
    margin: auto;
    text-align: center;
}

.sign-up-form {
    width: 50%;
    margin: 0 auto;
    padding-bottom: 6rem;
    text-align: center;
}

span.required {
    color: red;
}

.sign-up-form select option:first-child {
    color: gray;
}

.form-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group.terms {
    flex-direction: row;
}

label,
input,
textarea,
button,
select,
select option {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
    padding: 0.75rem 1rem 0 1rem;
    font-family: 'fffont-body', Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 1.5rem;
}

input::placeholder, select:invalid {
    color: gray;
}

input,
textarea,
select,
select option {
    background: #ecf0f3;
    line-height: normal;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

input[type=checkbox]{
    margin-bottom: 0;
}

button[type=submit], input::file-selector-button {
    color: white;
    background: black;
    border-radius: 2rem;
    cursor: pointer;
    transform: scale3d(1,1,1);
    transition: transform .5s ease;
    font-size: 2rem;
    font-weight: 700;
    width: auto;
    margin: auto;
    margin-top: 2rem;
}

input::file-selector-button {
    font-size: 1.5rem;
    font-family: 'fffont-body', Arial, Helvetica, sans-serif;
    padding: 1rem 1rem 0 1rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    border: none;
    display: inline-block;
    margin: 0 1rem;
}

input[type=file] * {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

button[type=submit]:hover, input::file-selector-button:hover {
    transform: scale3d(0.95,0.95,0.95);
}

input[type=checkbox] {
    width: 30px;
    height: 30px;
    display: inline-block;
    border-radius: 2rem;
}

label.inline-label {
    width: auto;
    display: inline-block;
}

label a:active, label a:visited, label a:link {
    color: black;
    transition: color .5s ease;
}

label a:hover {
    color: gray;
}

.checkbox_group {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    background: #ecf0f3;
    padding: 1rem;
}

.checkbox_group div {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.checkbox_group div label {
    width: 50%;
    text-align: left;
    display: inline-block;
}

fieldset {
    border: 2px solid gray;
}

fieldset fieldset {
    border: 2px dotted gray;
}

fieldset, .checkbox_group {
    border-radius: 1rem;
    margin-bottom: 3rem;
}

fieldset p {
    width: 100%;
}

select option {
    color: black;
    font-size: 1rem;
}

select option small {
    color: gray;
}

/* Footer */

footer {
    padding-top: 1rem;
    position: relative;
    z-index: 2;
}

footer .footer-details {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
}

footer span {
    margin: 0 1rem;
}

/* High-density displays above 1920x1080 */
@media only screen and (min-width: 1921px) and (-webkit-min-device-pixel-ratio: 2), 
       only screen and (min-width: 1921px) and (min-resolution: 192dpi) {
    
        body {
            font-size: 40px;
        }

        /* High-density displays above 1920x1080 */
@media only screen and (min-width: 1921px) and (-webkit-min-device-pixel-ratio: 2), 
       only screen and (min-width: 1921px) and (min-resolution: 192dpi) {
    
        body {
            font-size: 30px;
        }

        h1 {
            font-size: 8rem;
            line-height: 8rem;
        }
        
        h2 {
            font-size: 6rem;
            line-height: 6rem;
        }
        
        h3 {
            font-size: 4rem;
            line-height: 4rem;
        }
        
        h4, legend {
            font-size: 2rem;
            line-height: 2rem;
        }

}

@media screen and (max-width: 1024px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 5rem;
        line-height: 5rem;
    }
    
    h2 {
        font-size: 4rem;
        line-height: 4rem;
    }
    
    h3 {
        font-size: 2rem;
        line-height: 2rem;
    }
    
    h4, legend {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
}

}

@media screen and (max-width: 1024px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 5rem;
        line-height: 5rem;
    }
    
    h2 {
        font-size: 4rem;
        line-height: 4rem;
    }
    
    h3 {
        font-size: 2rem;
        line-height: 2rem;
    }
    
    h4, legend {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
}

@media screen and (orientation:portrait) {

    h1 {
        font-size: 4rem;
        line-height: 4rem;
    }
    
    h2 {
        font-size: 3rem;
        line-height: 3rem;
    }
    
    h3 {
        font-size: 2rem;
        line-height: 2rem;
    }
    
    h4, legend {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

    p {
        width: 100%;
        margin: 0 auto 0.5rem auto;
    }

    .cta {
        font-size: 1rem;
        padding: 0.5rem 1rem 0rem 1rem;
    }

    .close-btn {
        top: 0.25rem;
        right: 0.25rem;
    }

    .close-btn .cta {
        font-size: 1rem;
        padding: 0.75rem 0.75rem 0rem 0.75rem;
    }

    p.links a.button {
        margin: 0.5rem auto;
    }

    section.videoplayer {
        padding: 0rem;
    }

    .section-rows {
        height: 100vh;
        display: block;
    }

    .copy {
        padding: 1rem;
    }

    .copy.half {
        width: 90%;
        margin: 3rem auto;
        max-height: 50vh;
        overflow-y: auto;
    }

    footer .footer-details {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    /* Forms */

    section.sign-up {
        display: block;
    }

    .sign-up-form {
        width: 100%;
        margin: auto;
        padding-bottom: 3rem;
    }

    label,
    input,
    textarea,
    button,
    select,
    select option {
        font-size: 12px;
        padding: 0.5rem 1rem 0 1rem;
        margin-bottom: 1rem;
    }

    label {
        margin-bottom: 0;
    }

    button[type=submit], input::file-selector-button {
        font-size: 1rem;
    }

    .checkbox_group div label {
        width: 75%;
        text-align: left;
        display: inline-block;
    }

    fieldset, .checkbox_group {
        border-radius: 1rem;
        margin-bottom: 1rem;
    }

    input::file-selector-button {
        padding: 0.5rem 1rem 0 1rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 18px;
        line-height: 1.25;
    }
}

@media screen and (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 3rem;
        line-height: 3rem;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
    
    h4, legend {
        font-size: 1rem;
        line-height: 1rem;
    }
}