/* Define sizetowidth & height (fullscreen) */

:root {
    --sizetowidth: 100vw;
    --sizetoheight: 100vh;
}

/* Site content object */
/* Where the site content is in */

.sitecontent {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    opacity: 0;

    transition: var(--transition);
}

.sitecontent.visible {
    opacity: 1; /* Content becomes visible */
}

/* SITE CONTENT FROM HERE */

/* Top navbar */

.navbar {
    width: 100vw;
    height: 60px;

    padding-left: 25px;
    padding-right: 25px;

    align-self: center;

    backdrop-filter: var(--extreme-blur);
    -webkit-backdrop-filter: var(--extreme-blur);

    display: flex;
    gap: 20px;

    transition: var(--short-transition);

    position: fixed;
    top: 0;
    left: 0;

    z-index: 2;
}

.navbar.expanded {
    height: 100vh;
}

/* Hamburger */

.navbar .hamburger {
    position: absolute;

    right: 0;
    top: 0;

    align-content: center;
    justify-content: center;

    height: 50px;
    width: 75px;

    padding: 0;
    margin: 0;

    background: transparent;
    outline: 0;
    border: 0;

    display: none;

    cursor: pointer;
}

.navbar .hamburger img {
    width: 100%;
    height: 75%;

    padding: 0;
    margin: 0;

    object-fit: contain;

    border: 0 !important;

    pointer-events: none;
}

/* Images for logo */

.navbar .logo {
    position: relative;

    height: 100%;

    padding-left: 10px;
    padding-right: 10px;

    border: 0px solid var(--background-colour);

    align-content: center;
    justify-content: center;

    overflow: visible;

    cursor: pointer;

    transition: var(--short-transition);
}

.navbar .logo img {
    width: 100%;
    height: 25%;

    padding: 0;

    object-fit: contain;

    border: 0 !important;

    pointer-events: none;
}

.navbar .logo div {
    position: absolute;
    top: 0;
    left: 50%;

    background-color: var(--background-colour);

    width: 0%;
    height: 3px;

    opacity: 0;

    transition: var(--short-transition);
}

.navbar .logo:hover div {
    left: 10%;
    width: 80%;

    opacity: 1;
}

/* Item for buttons */

.navbar .item {
    position: relative;

    width: 5vh;
    height: 100%;

    border: 0px solid var(--background-colour);

    align-content: center;
    justify-content: center;

    overflow: visible;

    cursor: pointer;

    text-decoration: none;

    transition: var(--short-transition);
}

.navbar .item img {
    width: 100%;
    height: 60%;

    padding: 0;

    object-fit: contain;

    border: 0 !important;
}

.navbar .item div {
    position: absolute;
    top: 0;
    left: 50%;

    background-color: var(--background-colour);

    width: 0%;
    height: 3px;

    opacity: 0;

    transition: var(--short-transition);
}

.navbar .item:hover div {
    left: 10%;
    width: 80%;

    opacity: 1;
}

.navbar p {
    display: none;
    text-decoration: none !important;
}

/* Divider for between logo and options */


.navbar hr {
    width: 3px;
    height: 60%;
    background-color: var(--background-colour);
    border: none;

    margin: 0;
    padding: 0;

    align-self: center;
}

/* FROM HERE, SITE CONTENT */

/* Spacer */

.spacer {
    width: 100%;
    height: 40vh;
}

/* Blurry container block */

.blurrycontainer {
    width: auto;
    height: auto;
    
    background-color: var(--background-colour-blurred);

    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;

    padding: 50px
}

/* Image background */

.imagecontainer {
    width: auto;
    height: auto;

    padding: 50px;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    flex-direction: column;
    gap: 20px;
    
    /* Background image needs to be set itself */
}

/* Content block inside of transparent container block */

.blurrycontent {
    width: 600px;
    height: auto;

    margin-left: 50px;
    margin-right: 50px;

    padding: 20px;

    align-self: start;

    background: var(--background-colour-blurred);

    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--box-shadow);

    border: var(--border);
    border-radius: var(--border-radius);
}

/* GALLERY */

.slider {
    display: flex;
    width: 100%;
    max-width: 500px;
    min-width: 0;

    border-radius: var(--border-radius);
    box-shadow: 0;

    align-self: center;
    justify-self: center;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    overscroll-behavior-x: contain;

    scrollbar-width: none;
    -ms-overflow-style: none;

    margin-bottom: 20px;

    transition: var(--transition);
}
.slider:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide scrollbar */
.slider::-webkit-scrollbar {
    display: none !important;
}

/* MEDIA CHANGES FOR MOBILE */

@media only screen and (max-width: 1000px) {
    /* Containers */
    .blurrycontent {
        align-self: center !important;
        width: auto !important;

        margin-left: 20px !important;
        margin-right: 20px !important;
        margin-bottom: 50px !important;
        margin-top: 50px !important
    }

    .imagecontainer {
        padding: 10px !important;
    }

    /* Navbar */

    .navbar {
        flex-direction: column;
        overflow: hidden;

        align-items: center;
        height: 50px;
        padding: 0;
    }

    .navbar .logo {width: 100% !important; align-content: left; height: 50px;}
    .navbar .logo img {width: auto !important; margin-left: 50px; margin-right: 50px;}
    .navbar div {display: none !important;}
    .navbar .item {width: 100% !important; height: 50px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start;}
    .navbar .item img {width: 30%;}
    .navbar hr {width: 80% !important; height: 3px !important;}
    .navbar p {display: inline-block;}

    .navbar .hamburger {display: block;}
}
