:root{
    --topBarColour:#DC143C;

    --logoWidth:200px;
    --logoHeight:200px;

    --topBarHeight:100px;
    --topBarWidth:min(calc(100% - 600px),800px);

    /* This variable is used when the window is big enough for the topBar to look weird if it stretches from corner to corner. */
    --topBarOffset:10vw;
}

body{
    margin:0px;
    overflow-x:hidden;
}

@keyframes honeyScroll{
    from{background-position:0px 0px;};
    to{background-position: 0px -32px};
}

#honeyGradient{
    height:200px;
    width:100%;
    background-image:url('../main imgs/honey.png');
    opacity:0.4;
    mask:linear-gradient(rgba(0,0,255,1) 50%,rgba(255,255,0,0));
    transform-origin:100% 0%;
    transform:translate(calc(sin(10deg) * 200px), -40px) rotate(10deg);
    animation: honeyScroll 2s linear infinite;

    z-index:2;
}

.topBar{
    margin:0px;
    margin-left:var(--topBarOffset);
    border-radius:0px 0px 100px 0px;
    
    height:var(--topBarHeight);
    width:var(--topBarWidth);
}

#honeyBar{
    position:absolute;
    top:0px;

    background-color:var(--topBarColour);
    overflow:hidden;
    background-blend-mode:multiply,multiply;
}

#topBarFlex{
    width:var(--topBarWidth);
}

#logoHouse{
    display:flex;
    flex-direction:column;
    gap:15px;
    position:absolute;
    top:0px;
    left:var(--topBarOffset);
    width:var(--logoWidth);
    height:var(--logoHeight);
    z-index:-1;
    border-radius:60px;
    background:linear-gradient(var(--topBarColour),var(--topBarColour));
    user-select:none;
}

.lengths{
    --edge:50px;
    height:2px;
    width:calc(100vw - var(--topBarOffset) - var(--edge) - var(--topBarOffset));
    transform:translateY(105px) translateX(var(--edge));
    background-color:var(--topBarColour);
}

#logoImg{
    position:absolute;
    z-index:3;
    left:calc(var(--logoWidth) / 2 + var(--topBarOffset));
    top:calc(var(--logoHeight) / 2);
    transform:translate(-50%,-50%);
    filter:invert(1);
    width:120px;
    filter: invert(1) drop-shadow(-10px 10px 3px rgba(0,0,0,0.3)) ;
}

#titleText p{
    font-size:2em;
    text-wrap:nowrap;
    font-family:Sans-serif;
    color:white;
    text-align:center;
    width:100%;
}

@keyframes titleWiggle{
    from{opacity:0;};
    50% {opacity:1};
    to{opacity:0};
}

.titleWiggle{
    opacity:0;
    animation:titleWiggle 1.6s infinite;
    animation-delay:calc(var(--n) * 0.4s);
}

#titleText{
    position:absolute;
    top:0px;
    left:calc(var(--logoWidth) + var(--topBarOffset));
    text-align:center;
    transform:translateY(calc(var(--topBarHeight)/2 - 50%));
    width:calc(var(--topBarWidth) - var(--logoWidth));
    user-select:none;
}


@media (max-width:1200px) or (max-device-aspect-ratio:2/3){
    :root{
        --topBarWidth:100%;
    }
    .topBar{
        margin-left:0px;
    	border-radius:0px;
        --topBarOffset:0px;
    }
    #logoHouse{
        left:0px;
    }
    #logoImg{
        left:calc(var(--logoWidth) / 2);
    }
    #titleText{
        position:absolute;
        left:var(--logoWidth);
        text-align:center;
        width:calc(var(--topBarWidth) - var(--logoWidth));
    }
    .lengths{
        display:none;
    }
}

#mobileOptions{
    display:none;
    flex-direction:column;
    gap:5px;
    font-size:30px;
    text-align:center;
    margin-right:40px;
    width:100vw;
    gap:2px;
    color:white;
    font-family:Sans-Serif;
    min-height:20px;
    background-color:var(--topShadowColour);
    --mobileOptionsStretch:100px;
}

#mobileOptions div{
    height:100px;
    text-align:center;
    width:100vw;
    background-color:var(--topButtonColour);
    color:white;
    text-decoration:none;
}
#mobileOptions div p{
    transform:translateY(calc(50px - 50%));
}

@media (max-device-aspect-ratio:2/3){
    :root{
        --topBarHeight:var(--logoHeight);
    }
    #titleText{
        font-size:2em;
    }
    #mobileOptions{
        display:flex;
        gap:10px;
    }
}

