@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

@font-face {
    font-family: 'stencilregular';
    src: url('fonts/stencil-webfont.woff2') format('woff2'),
        url('fonts/stencil-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'dvla_2001regular';
    /* Assuming your CSS is in /public/css/ and fonts in /public/css/fonts/ */
    src: url('fonts/dvla_2001-webfont.woff2') format('woff2'),
        url('fonts/dvla_2001-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}



/****************************************/
/*  GENERIC 
/****************************************/
*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

img {
    vertical-align: top;
}

ul {
    list-style-type: none
}

a,
li {
    text-decoration: none;
}

a,
a:visited,
a:hover,
a:active {
    color: inherit;
}

a:hover {
    cursor: pointer;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none !important;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none !important;
    /* IE and Edge */
    scrollbar-width: none !important;
    /* Firefox */
}

/* Hide arrows on number inputs Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide arrows on number inputs Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

:root {
    --bgMain: #f0f0e0;
    --col1: #eee;
    --col2: #bbb;
    --col3: #888;
    --col4: #555;
    --col5: #222;
    --alt1: #cfddf1;
    --alt2: #7099d6;
    --alt3: #1155bb;
    --alt4: #0a3370;
    --alt5: #031125;

    --in3d: inset 2px 2px 4px 0px #000,
        inset -1px -1px 1px 0px #fff;
    --in3dlight: inset 2px 2px 4px 0px #0008,
        inset -1px -1px 1px 0px #fff;
    --in3ddark: inset 2px 2px 4px 0px #000,
        inset -1px -1px 1px 0px #fff4;
    --out3d: inset 2px 2px 4px -2px #fff,
        inset -2px -2px 4px -2px #000;
    --out3dlight: inset 2px 2px 4px -2px #fff,
        inset -2px -2px 4px -2px #000c;
    --out3ddark: inset 2px 2px 4px -2px #fff8,
        inset -2px -2px 4px -2px #000;
    --card3d: inset 3px 3px 6px -2px #fff,
        inset -3px -3px 6px -2px #000,
        0px 5px 10px -2px #000;
    --card3dlight: inset 3px 3px 6px -2px #fff,
        inset -3px -3px 6px -2px #0008,
        0px 5px 10px -2px #000;
    --card3ddark: inset 3px 3px 6px -2px #fff8,
        inset -3px -3px 6px -2px #000,
        0px 5px 10px -2px #000;

    --titleHpc: 130px;
    --titleHmob: 120px;
    --navH: 35px;
}

body {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.inset {
    width: fit-content;
    height: fit-content;
    padding: 4px;
    border-radius: 50px;
    box-shadow: var(--in3d);
    background: #0002;
    display: flex;
    align-items: center;
    cursor: pointer;

    &:has(input),
    &:has(select) {
        border-radius: 10px;
    }
}

button {
    position: relative;
    width: fit-content;
    padding: 5px 20px;
    border: none;
    border-radius: 50px;
    box-shadow: var(--out3d);
    background: red;
    font: inherit;
    color: #fff;
    transition: 200ms ease-in-out;
    cursor: pointer;

    .button-hover {
        position: absolute;
        content: '';
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        border: none;
        border-radius: 50px;
        box-shadow:
            inset 2px 2px 4px -2px #fff,
            inset -2px -2px 4px 0px #0006;
        background: pink;
        opacity: 0;
        transition: opacity 400ms ease-in-out;
        z-index: 1;
    }

    .button-text {
        position: relative;
        z-index: 1;
    }

    &:hover .button-hover {
        opacity: 1;
    }

    &:active {
        scale: 0.98;
    }

    &:has(a) {
        font-weight: inherit;
        color: inherit;
    }
}

/****************************************/
/*  HEADER
/****************************************/
header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(var(--titleHpc) + var(--navH));
    background-image: linear-gradient(var(--alt2), var(--alt3), var(--alt4));
    box-shadow: 0 3px 5px #0008;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#title-box {
    max-width: 1100px;
    height: var(--titleHpc);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#title {
    width: 460px;
    height: 110px;
    text-shadow: 0 2px 3px #0008;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#title-bw {
    line-height: .5;
    font-family: 'stencilregular', 'Arial Narrow', sans-serif;
    font-size: 70px;
    font-weight: 400;
}

#title-me {
    font-family: 'Arial Bold', Arial, Helvetica, sans-serif;
    font-size: 33px;
    font-weight: 900;
}

#title-coding {
    line-height: .5;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
}

#logo1,
#logo2 {
    width: 110px;
    border-radius: 50%;
    height: 110px;
    overflow: hidden;
    background-size: 102%;
    background-position: center center;
    background-image: url(https://www.blackwolf.me.uk/public/gfx/bwme.logo110.webp);
    box-shadow: 0 3px 5px #0008;
    display: flex;
    flex-direction: column;
}

#logo2 {
    background-image: url(https://www.blackwolf.me.uk/public/gfx/bw.logo110.webp)
}

/*####################################*/
/*  MENU
/*####################################*/
nav {
    width: 100%;
    height: var(--navH);
    display: flex;
    padding-top: 5px;
    flex-direction: column;
    align-items: center;
}

#menu {
    width: 320px;
    font-family: inherit;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

#menu.open {
    background: var(--bgMain);
    border-radius: 20px;
    transition: background 0.5s ease;
}

#menu.open #menu-items {
    display: flex;
    opacity: 1;

}

/* Menu */
#menu-items {
    width: 100%;
    display: none;
    opacity: 0;
    flex-direction: column;
    font-family: inherit;
    align-items: center;
    z-index: 6;
    transition: display 0.5s ease, opacity 0.5s ease;
}

.menu-btn {
    height: 40px;
    width: 300px;
    margin: 5px 0;
    background-image: linear-gradient(var(--col4), var(--col5));
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--col2) !important;
    display: flex;
    justify-content: center;
    transition: all 0.5s ease;
}

.menu-btn:hover {
    background-image: linear-gradient(var(--col2), var(--col3), var(--col4));
    color: var(--col1) !important;
}

@media screen and (min-width: 769px) {
    nav {
        padding: 0;
    }

    #menu {
        width: 100%;
        max-width: 1100px;
        height: 100%;
    }

    #menu-label {
        display: none;
    }

    #menu-items {
        display: flex;
        opacity: 1;
        flex-direction: row;
    }

    .menu-btn {
        width: auto;
        height: auto;
        margin: 0;
        padding: 3px 10px;
        border-radius: 10px;
        background-image: none;
        font-size: 1rem;
        color: #000 !important;
        text-shadow: 0 2px 3px #0008;
    }

    .menu-btn:hover {
        background-image: none;
        color: #ddd !important;
        /* text-shadow: 0 0 10px var(--col4), 0 0 10px var(--col5); */
    }

}

/****************************************/
/*  MAIN
/****************************************/
main {
    position: relative;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.backdrop {
    background: #ffffcc;
}

#main-container {
    position: absolute;
    max-width: 1100px;
    /* min-height: 100%; */
    height: fit-content;
    top: calc(var(--titleHpc) + var(--navH));
    padding: 20px 0px 40px 0px;
}


#main-info {
    /* overflow-y: scroll; */
    z-index: 2;
}

#main-info h1 {
    font-size: 1.5rem;
    color: black;
    text-shadow: 0px 2px 4px #0008;
    padding-bottom: 5px;
}

#main-info h2 {
    font-size: 1.3rem;
    color: black;
    text-shadow: 0px 2px 4px #0008;
    padding-bottom: 5px;
}

.nts {
    text-shadow: none !important;
}

#main-info p {
    font-size: 1rem;
    color: black;
}

#main-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    margin-bottom: 10px;
}

#main-top-left,
#main-top-right {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: black;
    text-shadow: 0px 2px 4px #0008;
    padding: 0 10px;
}

#main-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

#main-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-align: center;
    padding: 0 20px;
}

/****************************************/
/*  FOOTER
/****************************************/
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 30px;
    box-shadow: 0 -3px 5px #0008;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    z-index: 2;
}

#footer {
    max-width: 1100px;
    min-width: 360px;
    text-align: center;
    color: #ddd;
}



.popup-container {
    position: absolute;
    left: 50%;
    top: 276px;
    transform: translate(-50%);
    width: 320px;
    height: fit-content;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 99;
}

.popup {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--col2), var(--col3), var(--col4));
    border: solid 2px;
    border-color: var(--col1) var(--col5) var(--col5) var(--col1);
    border-radius: 20px;
}

.popuptitle {
    width: 100%;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--col5);
    text-shadow: 0 1px var(--col1);
}

.popupbody {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.input-error {
    color: red;
    background: #c008;
}

.success {
    font-size: 1rem;
    color: white;
    text-shadow: 0 1px black;
}

.hide {
    display: none !important;
}

/****************************************/
/*  MEDIA QUERIES
/****************************************/
@media (max-width: 768px) {
    #logo2 {
        display: none;
    }

    #navbar li {
        padding: 0 10px;
    }

    #navbar li a {
        font-size: 1rem;
    }

    #main-info p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    #logo1 {
        display: none;
    }

    #logo2 {
        display: none;
    }

    #title {
        width: 340px;
        padding-top: 20px !important;
        /* flex-direction: column; */
    }

    #title-bw {
        font-size: 3.5rem;
    }

    #title-me {
        font-size: 1.75rem;
    }

    #navbar {
        display: none;
    }

    #dropdown {
        display: flex;
    }

    header {
        height: calc(var(--titleHmob) + var(--navH));
    }

    #title {
        padding: 0;
    }

    #main-container {
        top: calc(var(--titleHmob) + var(--navH));
    }

    #main-info h1 {
        font-size: 1.3rem;
    }

    #main-info h2 {
        font-size: 1.1rem;
    }

    #main-info p {
        font-size: 1rem;
    }

    #main-top {
        flex-direction: column !important;
    }

    #main-top-pic {
        width: 100%;
        height: fit-content;
        padding-bottom: 10px;
    }

    #main-top-pic img {
        width: 320px;
        max-height: 100%;
    }
}


::-webkit-scrollbar-track {
    margin: 1px;
    color: transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;

}

::-webkit-scrollbar-thumb {
    border: 1px solid var(--bgMain);
    border-radius: 10px;
    background: var(--contrastMainMid);
}