/* ---------- Global Elements ---------- */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Manrope:wght@200..800&family=Outfit:wght@100..900&display=swap');

/* Variables */
:root {
    --width: 80%;
    --max-width: 1200px;

    --primary-colour: #4C475E;
    --secondary-colour: white;
    --tertrary-colour: black;

    --angle: 0deg;
    --position: auto;
}

/* ---------- Standard Elements ---------- */

/* everything outside the site */
html {
    background-color: var(--primary-colour);
}

/* Site Default Style */
body {
    margin: 0px;
    padding: 0px;

    font-family: "Inter", sans-serif;
    font-size: 16px;
}

/* Primary Header */
h1 {
    margin: 0px;
    font-size: 64px;
    font-weight: bold;
    color: var(--primary-colour);
}

/* Secondary Header */
h2 {
    color: var(--primary-colour);
    margin: 0px;
    font-size: 32px;
    font-weight: bold;
}

/* Paragraphs */
p {
    margin: 0px;
    line-height: 1.5;
}

/* Links */
a {
    margin: 0px;
    color: var(--tertrary-colour);
}

/* Images */

img {
    display: block;
    height: 300px;
    width: 300px;
    border-radius: 5%;

    object-fit: cover;
    justify-self: center;
}

/* ---------- Navigation Bar ---------- */

/* Navigation Bar Background */
.nav-wrapper {
    width: 100%;
    background-color: var(--primary-colour);
    
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 4px rgba(0, 0, 0, 0.25);
}

/* Navigation Bar Content */
.nav-container {    
    width: var(--width);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-template-columns: repeat(5, auto);
    grid-gap: 10px;
    padding: 10px 0;
}

/* Navigation Bar Item */
.nav-div {
    position: relative;
    align-self: center;
    justify-self: center;
    width: auto;
}

/* Navigation Bar Link */
.nav-div a {
    cursor: pointer;
    color: var(--secondary-colour);
    text-decoration: none;
    font-weight: bold;
    font-size: 48px;
}

/* Navigation Bar Image */
.nav-div img {
    object-fit: contain;
    display: block;
    height: 100px;
    width: auto;
}

/* Events List */
.events-list {
    display: grid;
    padding: 5px;
    grid-gap: 5px;

    position: absolute;
    width: 100%;
    height: 4lh;
    overflow-y: scroll;

    border-style: solid;
    border-color: rgb(196, 196, 196);
    border-width: 2px;

    box-sizing: border-box;
    border-radius: 10px;
    background-color: var(--secondary-colour);
    box-shadow: 5px 10px 4px rgba(0, 0, 0, 0.25);
}

.events-list a {
    line-height: 1lh;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: var(--tertrary-colour);
    font-weight: normal;
}

.hidden {
    visibility: hidden;
}

/* ---------- Site Title ---------- */

/* Big Title Wrapper */
.big-title-wrapper {
    background-image: url("../images/index-background.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    height: 100%;
    padding: 200px 0;
}

/* Small Title Wrapper */
.small-title-wrapper {
    background-image: url("../images/team-background.jpeg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    height: 100%;
    padding: 100px 0;
}

/* Title Container */
.title-container {
    width: var(--width);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Title Container Header */
.title-container h1 {
    text-align: center;
    line-height: 1;

    font-size: 128px;
    font-family: "League Spartan", sans-serif;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 1);
    color: var(--secondary-colour);
    font-weight: normal;
}

/* Title Container Text */
.title-container p {
    text-align: center;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 1);
    color: var(--secondary-colour);
    font-size: 32px;
}

/* ---------- Main Section ---------- */

/* Main Section Background */
.main-wrapper {
    align-content: center;
    min-height: 100vh;
    width: 100%;
    background-color: var(--secondary-colour);

    position: relative;
    z-index: 1;
    box-shadow: 0 -10px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Main Section Cotent */
.main-container {
    width: var(--width);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-gap: 50px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.main-container h1 {
    text-align: center;
}

/* Big Title */
.alternate-title {
    text-align: center;

    font-size: 128px;
    font-family: "League Spartan", sans-serif;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 1);
    color: var(--primary-colour);
    font-weight: normal;
}

/* Body Container */
.body-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
}

/* Alternate Body Container */
.alt-body-container {
    padding-top: 50px;
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 25px;
}

.alt-body-container-double {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 25px;
}

.alt-body-column {
    text-align: center;
    width: 50%;
    justify-self: center;
}

/* Secondary Header */
.body-container h2 {
    color: var(--primary-colour);
    margin: 0px;
    font-size: 32px;
    font-weight: bold;

    justify-self: center;
    text-align: center;
    width: 300px;
}

/* Description Text */
.description {
    margin: 0px;
    line-height: 1.5;

    text-align: center;
    justify-self: center;
    width: 300px;
}

/* Body Container Left Column */ 
.left-column {
    text-align: left;
}

.left-column h2 {
    text-align: left;
    justify-self: left;
    padding-bottom: 50px;
}

/* Body Container Right Column */
.right-column {
    text-align: right;
}

.right-column h2 {
    width: 100%;
    text-align: right;
    justify-self: right;
    padding-bottom: 50px;
}

.centre-column {
    justify-self: center;
}

/* ---------- Image Stack ---------- */

/* Holds entire stack of image cards */
.image-stack {
    position: relative;
    height: 700px;
    display: grid;
    place-items: center;    
}

/* Background of the image card */
.image-card {
    background-color: var(--secondary-colour);
    position: absolute;
    z-index: 2;
    box-shadow: 0px 10px 4px rgba(0, 0, 0, 0.5);
    justify-self: center;
    padding: 20px;
    padding-bottom: 60px;

    rotate: var(--angle);
    transition: transform 1.0s ease 0s, opacity 0s ease 0.5s;
}

/* Photo in the card */
.image-card img {
    display: block;
    height: 450px;
    width: auto;

    justify-self: center;
    border-radius: 0px;
}

/* text behind stack */
.image-stack h2 {
    position: absolute;
}

/* text below stack */
.image-stack p {
    text-align: center;
    align-self: end;
}

/* Applied to make card exit left of screen */
.out-left {
    opacity: 0;
    transform: translate(-100vw, 0px) rotate(-60deg);
}

/* Applied to make card exit left of screen */
.out-right {
    opacity: 1;
    transform: translate(100vw, 0px) rotate(-60deg);
}

/* ----------- Webpage Footer ---------- */

.footer-wrapper {
    background-color: var(--tertrary-colour);
    width: 100%;
}

.footer-container {
    width: var(--width);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;

    height: 200px;
    align-content: center;
}

.footer-container p {
    text-align: center;
    color: var(--secondary-colour);
}