/* Adding scrollability */
body {
    overflow-y: scroll;
}

/* Positioning video and setting z index to lower than 0 to put behind all elements */
#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    width: auto; 
    height: auto;
    z-index: -100;
}

/* Positioning the logo to the right-center */
.logo-position {
    margin: 0;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    transform: translateY(-50%);
    right: 25%;
}

body.fixed-height {
    height: 100vh;
}

.flex {
    display: flex;
    gap: var(--gap, 1rem);
}

.prim-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.prim-navigation a {
    color: white;
}

.prim-navigation a > [aria-hidden="true"] {
    font-weight: 700;
    margin-inline-end: .75em;
    color: white;
}

/* Applies only to a device that has at least 35em viewport */
@media (min-width: 35em) {
    /* Z index is set to 1000 to raise prim navigation above other elements */
    .prim-navigation {
        --gap: 2em;


        position: fixed;
        z-index: 1000;
        inset: 0 0 0 60%;

        flex-direction: column;
        /* min will allow the padding to shrink when the window is smaller */
        padding: min(30vh, 10rem) 2em;

        background: hsl(0 0% 100% / 0.1);
        backdrop-filter: blur(1rem);

        transform: translateX(100%); /* might need to add overflowx: hidden; in body if this causes overflow issues */
        transition: transform 350ms ease-out;
    }
    
    .prim-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    /* Formatting nav button, added icon */
    .nav-toggle {
        position: absolute;
        background-color: transparent;
        background-image: url('../Images/General/icon-hamburger.svg');
        background-repeat: no-repeat;
        width: 2rem;
        border: none;
        aspect-ratio: 1;
        top: 2rem;
        right: 2rem;
        z-index: 9999;
    }

    .nav-toggle:focus {
        outline: none;
    }

    /* Changing nav bar button to x when it is opened */
    .nav-toggle[aria-expanded="true"] {
        background-image: url('../Images/General/icon-close.svg');
    }
}

/* Transition speed */
.menu-item {
    transition: opacity 400ms ease;
}

/* When hovering over an item, all items go to lower opacity */
#menu-items:hover .menu-item {
    opacity: 0.5;
}
 
#menu-items {
    opacity: 1;
    transition: opacity 0.5s;
    text-decoration: none;
}

/* When hovering over an item, that item will be 1 opacity */
#menu-items:hover .menu-item:hover {
    opacity: 1;
    text-decoration: none;
}

a.prim-navigation:hover {
    opacity: 0.5%;
}

#logo {
    width: 50px;
    height: 50px;
}

input {
    width: 300px;
    height: 50px;
    border-radius: 50px;
    border: none;
    outline: none;
    margin-bottom: 20px;
    padding-left: 20px;
}

.buttons {
    display: flex; 
    justify-content: center;
    text-align: center;
}

/* Styling buttons on the form */
.button {
    width: 300px;
    height: 50px;
    border-radius: 50px; /* this will create a circular shape */
    background-color: white;
    border: none;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    margin-top: 15px;
    justify-content: center; 
    text-align: center;
}

.button2 {
    width: 150px;
    height: 50px;
    border-radius: 50px; /* this will create a circular shape */
    background-color: #4266B3;
    border: none;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    margin-top: 25px;
    justify-content: center;
    text-align: center;
}

/* Positioning and styling 2 lines either side of text on form */
.line-container {
    width: 100%;
    position: relative;
    margin-bottom: 25px;
}

.line {
    height: 2px;
    width: 30%;
    background-color: #4266B3;
}

.left {
    float: left;
}

.right {
    float: right;
}

.text-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Styling form container */
#form-container {
    position: absolute;
    top: 13%;
    left: 15%;
    text-align: center;
    margin: auto;
    background-color: #424952;
    border-radius: 50px;
    width: 400px;
    height: 500px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 8px 22px 0 rgba(0, 0, 0, 0.19);
    color: white;
}