body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-padding-top: 80px;
    background-color: var(--dark);
    font-size: 1.1em;
    color: #ddd;
}

#topclar{
    background-color: #251a0a;
    border: 2px solid #8a774f;
    color: #F3DBA6;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

#topclar small{
    opacity: 0.8;
    margin-top: 5px;
}

header{
    display: flex;
    justify-content: center;
    background-color: var(--darque);
    height: 80px;
    padding: 10px;
    backdrop-filter: blur(40px);
    position: sticky;
    width: 100%;
    transition: 0.2s;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
}

header a{
    display: flex;
    align-items: center;
    height: 100%;
    border-radius: 10px;
    padding: 0 18px;
}

@media (pointer: fine){
    header a:hover{
        background-color: #ffffff0e;
    }
}

#headerlogo{
    height: 1.25em;
    opacity: 0.8;
    transition: opacity 0.2s;
}

header div{
    display: flex;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

main{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* padding-top: 80px; */
}

footer{
    background-color: black;
    padding: 40px;
    color: #888;
    position: relative;
}

footer p img{
    opacity: 0.5;
    height: 12px;
    padding-left: 1px;
}

#tacobox{
    max-height: 900px;
    height: calc(100vh - 80px - 60px - 38px);
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

#tacobox ::-webkit-scrollbar{
    display: none;
}

#tacowrapper{
    height: 100%;
    display: flex;
    width: 100%;
    overflow: scroll;
    gap: 10px;
}

.tacoslide{
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    color: white;
    position: relative;
}

.visitbtn{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: white;
    border-radius: 18px;
    text-decoration: none;
    color: black;
    margin-top: 40px;
    font-weight: 600;
    font-size: 0.85em;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (pointer: fine){
    .visitbtn:hover{
        transform: scale(1.03) translateY(-2px)
    }

    .visitbtn:hover img{
        transform: rotate(-45deg) translateX(3px)
    }
}

.visitbtn img{
    filter: invert();
    height: 16px;
    transform: rotate(-45deg);
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nomad{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to top, #273643, #131720);
}

.nomadtitle{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    margin: auto;
    font-size: 150%;
    text-align: center;
    width: 100%;
    word-break: break-word;
    padding-top: 50px;
}

@media (max-width: 700px) or (max-height: 700px){
    .nomadtitle{
        font-size: 120%;
    }
    .visitbtn{
        font-size: 100%;
    }
    .nomalaptop{
        max-width: calc(100% - 40px) !important;
    }
    #tacobox{
        max-height: 500px;
    }
}

@media (max-width: 500px) or (max-height: 600px){
    .nomadtitle{
        font-size: 100%;
    }
    .visitbtn{
        font-size: 120%;
    }
    .nomalaptop{
        max-width: calc(100% - 20px) !important;
    }
}

.nomad h1{
    font-family: Playwrite;
    font-weight: normal;
}

.nomadtitle p {
    color: #7e9aaa;
    mix-blend-mode: normal;
    position: relative;
}

.nomalaptop{
    flex-shrink: 1;
    min-height: 0;
    max-height: 500px;
    min-width: 0;
    max-width: calc(100% - 100px);
    border: 8px solid black;
    border-radius: 16px;
    background-color: black;
    margin-bottom: -16px;
}

#socials, #projects{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

#socials h1, #projects h1{
    font-size: 1.8em;
    font-weight: 500;
}

#socialcont{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    padding: 0 10px;
}

@media (max-width: 750px){
    #socialcont{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 380px){
    #socialcont{
        grid-template-columns: minmax(0, 1fr);
    }
}

.socialitem{
    display: flex;
    background-color: #1c1c1c;
    border-radius: 1rem;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (pointer: fine){
    .socialitem:hover{
        transform: scale(1.04) translateY(-1px);
    }
}

.socialitem img{
    height: 32px;
    width: 32px;
    opacity: 0.5;
    display: flex;
}

.socialitem p{
    font-size: 1.1em;
}

#socialcont a{
    text-decoration: none;
    color: #fff;
}

#projects h1{
    margin-bottom: 10px;
}

#projects{
    gap: 10px;
}

#clarifi{
    margin: 10px 20px;
    margin-top: 0px;
    text-align: center;
}

#balls{
    display: flex;
    width: 100%;
    border-radius: 12px;
    background-color: #eee;
    padding: 20px max(20px, calc(100vw - 1000px)/2);
    gap: 100px;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 1100px){
    #balls{
        gap: 40px !important;
    }
    #ballphone{
        zoom: 0.8;
    }
}

@media (max-width: 900px){
    #balls{
        flex-direction: column;
        padding: 60px;
        gap: 60px !important;
    }
    #balldetails{
        margin-left: 0 !important;
    }
    #ballphone{
        zoom: 1.2;
    }
}

@media (max-width: 600px){
    #balls{
        padding: 60px 40px;
    }
    #ballphone{
        zoom: 0.8;
    }
    #ballchoicebuttons{
        width: 100%;
    }
    #ballchoicebuttons a{
        flex-basis: 0;
        flex-grow: 1;
        padding: 14px !important;
    }
}

#ballphone{
    background-color: black;
    border: 7px solid black;
    border-radius: 40px;
    height: 650px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

#ballphone video{
    width: 100%;
    height: 100%;
}

#ballphone::after{
    position: absolute;
    content: '';
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background-color: black;
    z-index: 4;
    border-radius: 20px;
}

#balldetails{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    color: black;
    margin-left: 20px;
}

#balldetails img{
    filter: invert();
    margin-bottom: 10px;
}

#ballchoicebuttons{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#ballchoicebuttons a{
    text-decoration: none;
    color: inherit;
    padding: 10px 16px;
    border: 2px solid black;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.primchoice{
    background-color: black;
    color: white !important;
}

#sharebutt{
    display: flex;
    background-color: #fff1;
    border: none;
    border-radius: 20px;
    height: 40px;
    align-items: center;
    overflow: hidden;
    color: #aaa;
    gap: 6px;
    padding: 0 16px;
    margin-left: auto;
    margin-right: 10px;
    cursor: pointer;
}

@media (pointer: fine){
    #sharebutt:hover{
        filter: brightness(1.2);
    }
}

#sharebutt:active{
    filter: brightness(0.9);
}

#sharebutt img{
    height: 17px;
    filter: invert();
    opacity: 0.5;
}

#qrthing{
    flex-direction: column;
    align-items: center;
    justify-self: center;
    align-self: center;
    gap: 30px;
    padding: 30px;
transition:
    opacity .5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter .3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    display 1s allow-discrete,
    overlay 1s allow-discrete;
    transition-behavior: allow-discrete;
    opacity: 0;
    background-color: #000c;
    backdrop-filter: blur(20px);
    filter: blur(5px);
    border-radius: 20px;
    border: none;
    transform: scale(.94);
}

#qrthing:popover-open {
    display: flex;
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    pointer-events: all;
}

body:has(#qrthing:popover-open) #sharebutt {
    pointer-events: none;
}

@starting-style {
    #qrthing:popover-open {
        opacity: 0;
        transform: scale(.94);
        filter: blur(5px);
    }
}

#qrthing::backdrop {
    background: #0000;
    backdrop-filter: blur(0);
    transition: 0.3s;
}

#qrthing:popover-open::backdrop {
    background: #0005;
    backdrop-filter: blur(4px);
}

@starting-style {
    #qrthing:popover-open::backdrop {
        background: #0000;
        backdrop-filter: blur(0);
    }
}

#qrthing img:not(#qrthing button img){
    width: 220px;
    border-radius: 20px;
}

#qrthing button{
    width: 100%;
    padding: 14px 12px;
    font-size: initial;
    background-color: #fff1;
    color: #ddd;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

#qrthing button img{
    opacity: 0.6;
    height: 32px;
}

#qrthing button:hover{
    filter: brightness(1.05)
}

#qrthing button:active{
    filter: brightness(0.95)
}

body:has(#qrthing:popover-open) #SCREEN {
    transform: scale(.97);
    border-radius: 10px;
}

body:has(#qrthing:popover-open){
    pointer-events: none;
}

.forballsheader{
    background-color: #eee6;
}

.forballsheader img{
    filter: invert();
    opacity: 1 !important;
}

.forballsheader button img{
    filter: none !important;
}

.forballsheader button{
    background-color: #0001 !important;
    color: black !important;
}