/* 
Deskop and mobile media queries 
@media screen and (min-width: 798px) {
    Desktop
}
@media screen and (max-width: 798px) {
    Mobile
} 
*/

/* Main style for website */

:root {
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;

    --primary: #D8338B;
    --secondary: #654DA8;

    /* Dark mode colours */
    --bg-primary: #222;
    --bg-secondary: #444;
    --text: #f4f4f4;

    /* Light mode colours */
    --bg-light-primary: #f4f4f4;
    --bg-light-secondary: #eee;
    --light-text: #222;

    /* Success error colours */
    --color-error: #d83333;
    --color-success: #33d880;

    color: var(--text);
}

* {
    box-sizing: border-box;
}

/* TEXT STYLES */
h1, h2, h3, h4, h5, h6, p {
    padding: 0 16px;
}

a.download-special {
    display: inline-block;

    transition-property: color, transform, box-shadow;
    transition-duration: .2s;

    margin: .5rem;
    box-shadow: 0 0 8px #000;
    border-radius: 1em;
    padding: .5rem;

    background-color: var(--primary);

    color: var(--text);
    text-decoration: none;
}
a.download-special:hover {
    box-shadow: 0 0 16px 4px var(--primary);
    transform: scale(1.05);
}
a.link-social {
    display: inline-block;

    transition-property: color, transform, box-shadow, background-color;
    transition-duration: .2s;

    margin: .5rem;
    border-radius: 2em;
    height: 3rem;
    width: 3rem;
    padding: .5rem;

    background-color: #0000;

    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
}
a.link-social:hover {
    transform: scale(1.05);

    box-shadow: 0 0 16px var(--primary);

    background-color: var(--primary);
}

.subtitle {
    margin: 0;
    color: #aaa;
}

.font-size-1 {
    font-size: 1rem;
}
.font-size-1-5 {
    font-size: 1.5rem;
}
.font-size-2 {
    font-size: 2rem;
}

.text-col-2 {
    columns: 2;
}


.accent-line::after {
    content: '';

    position: relative;
    top: 10px;

    display: block;

    transition: width .2s;

    border-radius: 1rem;
    height: .25rem;
    width: 100%;

    background-color: var(--primary);
}
@media screen and (min-width: 798px) {
    .accent-line::after {
        width: 33%;
    }
}
/* END TEXT STYLES */
section>img {
    width: 100%;
}
section>div>img {
    width: 100%;
}
/* IMAGE STYLES */
.image-50 {
    width: 50%;
}
.image-left {
    float: left;
}
.image-right {
    float: right;
}

/* END IMAGE STYLES */


/* INFO LAYOUT STYLES */
/* Table */
table {
    width: 100%;
    border-spacing: 1em;
}
td, th {
    text-align: left;
}

/* List */
::marker {
    color: var(--primary);
}
li {
    padding: .5em 0;
}
/* INFO LAYOUT STYLES */

/* UTILITY STYLES */
.constrain-width {
    margin: auto;
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
}
.no-scroll {
    overflow: hidden;
}
.display-none {
    display: none;
}
.viewport-height {
    height: 100vh;
}
.viewport-height-1-3 {
    height: 33.33vh;
}   

.margin-0 {
    margin: 0;
}

/* Flex utility styles */
.flex-center-center {
    display: flex;
    justify-self: center;
    align-items: center;

}
.flex-center-top {
    justify-content: start;
    align-items: center;

    display: flex;
}
.flex-column {
    flex-flow: column;
}
.flex-row {
    flex-flow: row;
}
.flex-wrap {
    flex-wrap: wrap;
}
.gap-1em {
    gap: 1em;
}

.light-colors {
    background-color: var(--bg-light-primary);
    
    color: var(--light-text);
}
/* END UTILITY STYLES */



/* MODAL STYLES */
.modal-container {
    position: fixed;
    top: -100vh;
    z-index: 10;

    /* display: none; */
    display: flex;
    justify-content: center;
    opacity: 0;

    overflow-y: scroll;

    transition-property: top, opacity;
    transition-duration: .5s;

    width: 100%;
    height: 100vh;
    padding: .5rem;
    padding-top: 4rem;

    background-color: var(--bg-primary);
    background-color: #0008;
}
.modal-open {
    display: flex;
    opacity: 1;

    top: 0;
}
.modal-content {

    box-shadow: 0 0 16px #000;
    border-radius: 1em;
    height: max-content;
    padding: 1em;

    background-color: var(--bg-secondary);
    background-color: #4448;
    backdrop-filter: blur(16px);

}
.modal-content :is(h1, h2, p) {
    padding: 0;
}

/* Modal button */
.modal-close {
    position: absolute;
    top: 0;
    right: 0;

    margin: 1rem;
    height: 2rem;
    width: 2rem;

    cursor: pointer;
}

.modal-close:hover:after, 
.modal-close:hover:before {
    background-color: var(--primary);
}


/* END MODAL STYLES */

/* CONTACT FORM STYLE */
.contact-form {
    font-size: 1rem;
}

@media screen and (min-width: 798px) {
    .contact-form {
        width: max-content;
    }
}
@media screen and (max-width: 798px) {
    .contact-form {
        width: 100%;
    }
} 


.contact-form div.input {
    margin: .1em;
}
.contact-form div.input + :is(div.input, div.submit) {
    margin-top: 1em;
}
.contact-form .input-label {
    margin: 0;
}
.contact-form .required .input-label::before {
    content: '* ';
    color: var(--color-error);
}


.contact-form :is(.text, .select, .textarea) :is(label, input, select, textarea) {
    display: block;
    width: 100%;
}
.contact-form :is(.text, .select, .textarea) :is(input, select, textarea) {
    box-shadow: 0 0 8px #000;
    border-radius: 1rem;
    padding: .5em;

    font-size: 1em;
}
.contact-form textarea {
    resize: none;
}
.contact-form .input-options {
    box-shadow: 0 0 8px #000;
    border-radius: 1rem;
    padding: 1em;

    background-color: var(--bg-secondary);
}
.contact-form .input-options>* {
    padding: .5em;  
}
/* Submit button and message styles */
.contact-form .submit {
    display: flex;
    align-items: center;
    justify-content: right;
}
.contact-form .submit-output {
    display: none;
    margin: 1em;
    border-radius: 1rem;
    padding: .5em;

    background-color: var(--bg-secondary);

    font-size: 1em;
}
.contact-form .submit-output.success {
    display: block;
    
    box-shadow: 0 0 8px var(--color-success);

    background-color: var(--color-success);
}
.contact-form .submit-output.error{
    display: block;
    
    box-shadow: 0 0 8px var(--color-error);

    background-color: var(--color-error);
}
.contact-form .submit button {
    transition-property: background-color, box-shadow;
    transition-duration: .2s;

    border-style: none;
    border-radius: 1rem;
    padding: .5em;

    background-color: #0000;
    cursor: pointer;

    color: var(--text);
    font-size: 2em;
}
.contact-form .submit button:hover {
    background-color: var(--primary);
    box-shadow: 0 0 16px 4px var(--primary);
}

/* Field error styles */
.contact-form :is(.field-empty, .field-invalid-chars, .field-invalid-email)>
:is(.input-options, input, select, textarea) {
    box-shadow: 0 0 16px 8px var(--color-error);
}
.contact-form :is(.field-empty, .field-invalid-chars, .field-invalid-email) .input-label::after {
    content: 'Error';

    width: max-content;

    display: block;

    border-radius: 1rem;
    padding: .5em;

    background-color: var(--color-error);

    font-size: .75em;
}
/* Field error messages */
.contact-form .field-empty .input-label::after {
    content: 'Field must be filled';
}
.contact-form .field-invalid-chars .input-label::after {
    content: 'Field cannot contain: < > ( ) [  ] \\ / . , ; : * @ \'double spaces\'';
    
}
.contact-form .field-invalid-email .input-label::after {
    content: 'Field must contain a valid email';
}

/* END CONTACT FORM STYLE */

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
}

/* NAV STYLES */
.breadcrumbs {
    margin-bottom: .5em;

    color: var(--text);
}
.breadcrumbs a {
    display: inline-block;

    width: auto;

    color: var(--text);
}
.breadcrumbs a:hover {
    color: var(--primary);
}
.breadcrumbs span {
    display: inline-block;

    width: auto;
}
nav {
    position: fixed;
    top: 0;
    z-index: 100;

    transition: all .5s;

    width: 100%;

    background-image: linear-gradient(#222f, #2220);
}
nav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
 
    height: 100%;
    padding: 0;

    list-style-type: none;
}
@media screen and (min-width: 798px) {
    /* Desktop */
    nav {
        height: 64px;
    }
    nav.scroll-down {
        transform: translateY(-100%);
    }
    nav ul {
        flex-direction: row;
    }
    nav li:nth-child(5) {
        margin-left: auto;
    }
}
@media screen and (max-width: 798px) {
    /* Mobile */
    nav ul {
        flex-direction: column;
    }
} 

/* Nav toggle style */
.nav-toggle {
    position: absolute;
    top: 0;
    right: 0;

    margin: 1rem;
    width: 2rem;

    cursor: pointer;
}

.nav-toggle:after, 
.nav-toggle:before, 
.nav-toggle div {
    content: '';
    
    display: block;
    
    transition: all .2s ease-in-out;
    
    height: 5px;
    border-radius: 3px;
    margin: 7px 0;

    background-color: var(--text);
}
.nav-toggle:hover:after, 
.nav-toggle:hover:before, 
.nav-toggle:hover div {
    background-color: var(--primary);
}
@media screen and (min-width: 798px) {
    .nav-toggle {
        display: none;
    }
}

@media screen and (max-width: 798px) {
    .nav-toggle {
        display: block;
    }
} 

/* When mobile nav is open */
.nav-open .nav-toggle:before {
    transform: translateY(12px) rotate(135deg);
}
.nav-open .nav-toggle:after {
    transform: translateY(-12px) rotate(-135deg);
}
.nav-open .nav-toggle div {
    transform: scale(0);
}

/* Nav link styles */
nav a {
    position: relative;

    display: block;

    overflow: hidden;

    transition: .2s ease-in-out;
    transition-property: color, text-shadow;

    margin: .5rem;
    border-radius: 1rem;
    padding: .5rem;
    
    font-size: 1.25rem;
    color: #F4f4f4;
    text-decoration: none;
}
nav a img {
    height: 2rem;
}
nav a:hover {
    color: var(--primary);
}
nav a::after {
    /* Link underline animation */
	content: '';

	position: absolute;
	bottom: 0;
	left: 0;

	opacity: 0;
    
	width: 100%;
	height: 0.1em;

	background-color: var(--primary);
    
	transition: opacity .3s ease-in-out, transform .3s ease-in-out;
	/* transform: translate3d(-100%, 0, 0); */
    transform: translateX(-100%);
}
nav a:hover::after{
    /* Link underline animation */
    opacity: 1;
    transform: translateX(0);
}
nav a:hover img {
    color: var(--primary);
    filter: brightness(0.5) sepia(1) saturate(10000) hue-rotate(328deg);
}

@media screen and (max-width: 798px) {
    /* Hide or display mobile menu */
    .nav-link {
        display: none;
    }
    .nav-open .nav-link {
        display: list-item;
    }
}
/* END NAV STYLES */

/* HEADER STYLES */
/* Image background */
.header-background {
    position: absolute;
    z-index: -100;

    overflow: hidden;

    width: 100%;
}
.header-background-1-3 {
    position: absolute;
    z-index: -100;

    overflow: hidden;

    width: 100%;
    height: 33.33vh;
}
.header-background :is(img, video) {
    position: absolute;
    
    width: 100%;
    height: 100%;

    object-fit: cover;
}
.header-background .background-gradient {
    position: absolute;
    
    width: 100%;
    height: 100%;
    
    background-image: linear-gradient(#0000, #222F);

    object-fit: cover;
}
header { 
    justify-content: center;
    align-items: center;
    flex-direction: column;

    display: flex;

    margin: auto;
    width: 100%;
    
}
#header-logo img {
    margin-top: 4rem;

    max-height:5em;
    max-width: 49%;
}

/* Header image */
@media screen and (min-width: 798px) {
    /* Desktop */
    #home-header-logo img {
        width: 49.5%;
    }
    #home-header-logo img:first-child {
        transform: translateY(-50%);
    }
    #home-header-logo img:last-child {
        transform: translateY(50%);
    }
}
@media screen and (max-width: 798px) {
    /* Mobile */
    #home-header-logo img {
        width: 100%;
    }
    
}
/* END HEADER STYLES */


/* Main Style */
main {
    padding: 1px;
    padding-top: 1px;
    
    border-radius: 1rem;

    background-color: var(--bg-primary);
}
main section {
    padding: 1px;
}

/* Footer Style */
footer {
    min-height: 33vh;
}

/* SCROLLBAR STYLES */
* {
    scrollbar-width: thin;
    scrollbar-color: #444 #0000;
}

/* Webkit */
::-webkit-scrollbar {
    width: .5rem;
    height: .5rem;
}
  
::-webkit-scrollbar-track {
    background-color: #0000;
}
  
::-webkit-scrollbar-thumb {
    background-color: var(--text);
    border-radius: 1rem;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}
/* END SCROLLBAR STYLES */

