/* Adding scrollability */
body {
    background-image: url('../Images/General/snow.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    overflow-y: scroll;
}

/* Setting page height to fill screen */
body.fixed-height {
    height: 100vh;
}

/* Flex class */
.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;
}

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

/* Positioning buttons */
.buttons {
    display: flex; 
    justify-content: center;
}

/* Styling buttons */
.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; 
}

.button2 {
    width: 150px;
    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: 25px;
    justify-content: center;
}

.line-container {
    width: 100%;
    position: relative;
    margin-bottom: 25px;
}

.line {
    height: 2px;
    width: 30%;
    background-color: white;
}

.left {
    float: left;
}

.right {
    float: right;
}

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

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

#form-container input[type="submit"] {
    display: inline-block;
    margin: 0 auto;
 }