html{
    scroll-behavior: smooth;
}
:root {
    --bg: #f2f2f2;
    --text: #2c2c2c;
    --nav-bg: rgba(184,127,200,0.886);
    --footer-bg: #090709;
    --footer-text: #cfd7e6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f0f;
        --text: #eaeaea;
        --nav-bg: rgba(212, 182, 243, 0.8);
        --footer-bg: #121212;
        --footer-text: #f0f0f0;
    }
}
a{
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
#loader{
    position: fixed;
    inset: 0;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#loader.hide{
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}
.spinner{
    width: 48px;
    height: 48px;
    border: 4px solid #e5e5e5;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to{
        transform: rotate(360deg);
    }
}
body.loading{
    overflow: hidden;
}
.hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
body{
    background-image: url(background.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    color: #2c2c2c;
    position: relative;
    font-family: "Jost", sans-serif;
    font-size: 16px;
}
header{
    font-family: "Noto Sans", sans-serif;
    background-image: url(headerBack.svg);
    background-size: cover;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: repeat-x;
    padding: 10px;
    flex-direction: column;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
    position: relative;
    margin: 0;
    padding: 0;
}
main{
    flex: 1;
    padding-bottom: 25px;
}
footer{
    display: flex;
    flex-direction: column;
    background-color: inherit;
    color: #cfd7e6;
    margin-top: auto;
    padding: 0;
    width: 100%;
}
#contact{
    border-radius: 30px;
    padding: 10px 0 4px 0;
    display: flex;
    width: 100%;
    justify-content: space-around;
    transition: background-color 0.3s ease;
}
.flash {
  background-color: #75179e;
  border-radius: 20px;
}
.daviddesigns{
    display: flex;
    justify-content: center;
    background-color: #22092e;
    padding: 0;
    margin: 0;
}
.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    justify-items: center;
    padding: 0 5px 0 5px;
    text-align: center;
   }
.logo{
    width: 50vw;
    min-width: 50px;
    max-width: 300px;
    height: auto;
    animation: fade 0.6s forwards ease-in-out;
    animation-delay: 0.4s; 
    opacity: 0;
    transform: translateY(-40px);
    will-change: transform, opacity;
}
@keyframes fade{
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
button{
    background: none;
    border: none;
    cursor: pointer;
}
.contactBtn{
    transition: 0.3s ease-in-out;
}
.contactBtn:hover{
    transform: scale(1.2);
}
.navButton{
    width: 40px;
    height: 40px;
    position: absolute;
    right: 25px;
    bottom: 20px;
    transition: transform 0.3s ease-in-out;
}
.navButton:hover{
    transform: scale(1.3);
}
.mobileNav{
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: 120px;
    height: 100vw;
    position: fixed;
    right: 0;
    top: 0;
    padding: 10px;
    background-color: var(--nav-bg);
    border-radius: 0 0 0 8px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
}
.mobileNav.show{
    transform: translateX(0);
}
.navItem{
    color: #4f0571;
    font-size: 18px;
    padding: 10px;
    transition: transform 0.3s ease;
}
.navItem a{
    color: #6e1697;
}
.navItem:hover{
    transform: scale(1.1);
    
}
.navBar{
    display: none;
    width: 100%;
    justify-content: space-around;
    padding-bottom: 10px;
    font-size: 24px;
}
h1, h2{
    font-family: "Noto Sans", sans-serif;
}
.photoBanner h1{
    text-align: center;
    z-index: 1;
    color: #f2f2f2;
}
.photoBanner{
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    margin-top: 15px;
    border-top: #2c2c2c solid 2px;
    border-bottom: #2c2c2c solid 2px;
    transform: translateZ(0);
    contain: layout paint;
}
.photoBanner.sml{
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 144px;
    margin-top: 15px;
    border-top: #2c2c2c solid 2px;
    border-bottom: #2c2c2c solid 2px;
    transform: translateZ(0);
    contain: layout paint;
}
.photoBanner .pic{
    z-index: -1;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
}
.photoBanner .tag{
    display: flex;
    position: absolute;
    z-index: 0;
    width: 100px;
    height: auto;
    bottom: -30px;
    right: 1px;
}
.photoBanner .tagL{
    display: flex;
    position: absolute;
    z-index: 0;
    width: 100px;
    height: auto;
    bottom: -30px;
    left: 1px;   
}
.photoBanner .tagTL{
    display: flex;
    position: absolute;
    z-index: 0;
    width: 100px;
    height: auto;
    top: -20px;
    left: 1px;  
}
.photoBanner .tagTR{
    display: flex;
    position: absolute;
    z-index: 0;
    width: 100px;
    height: auto;
    top: -20px;
    right: 1px;
}
.photoBanner p{
    background-color: rgba(167, 167, 167, 0.74);
    padding: 5px;
    font-weight: 800;
    position: absolute;
    top: 0px;
    left: 0px;
    border-radius: 0 8px 8px 0;
}
.packagePanel h1{
    margin: 0;
}
.packagePanel{
    margin: 20px;
    padding: 5px 10px 10px 10px;
    border: #22092e dashed 3px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}
.scrollToTop{
    z-index: 4;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 10px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    background-color: #cfd7e6;
    border-radius: 100%;
}
.scrollToTop.show{
    opacity: 0.7;
    pointer-events: auto;
}
.bannerText{
    background-color: rgba(0,0,0,0.3);
}
.endRead{
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
}
@media (min-width: 800px) {
    .navButton{
        display: none;
    }
    .navBar{
        display: flex;
    }
    .logo{
        max-width: 250px;
    }
    .container{
        padding: 0 40px 0 40px;
    }
    .photoBanner img{
    height: auto;
    width: 100%;
    }
    .photoBanner{
        height: 500px;
    }
    .photoBanner.sml{
        height: 250px;
    }
}