* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    vertical-align: baseline;
}

html {
    scroll-behavior: smooth;
}



/* TYPOGRAPHY */
body {
    font-family: "Instrument Serif", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}



/*
 * Made by Erik Terwan
 * 24th of November 2015
 * MIT License
 *
 *
 * If you are thinking of using this in
 * production code, beware of the browser
 * prefixes.
 */

/* Menu code starts here */
#menuToggle {

    /* You can also use relative/absolute here if you want to stay on the top */
    position: absolute;
    top: 50px;
    left: 50px;

    -webkit-user-select: none;
    user-select: none;
}

#menuToggle a {
    text-decoration: none;
    color: white;

    transition: color 0.3s ease;
}

#menuToggle a:hover {
    color: rgb(186, 214, 236);
}


#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;

    cursor: pointer;

    opacity: 0;
    /* hide this */
    z-index: 13;
    /* and place it over the hamburger */

    -webkit-touch-callout: none;
}

/* Just a quick hamburger */
#menuToggle span {
    display: block;
    width: 33px;
    height: 2px;
    margin-bottom: 8px;
    position: relative;

    background-color: #cdcdcd;
    border-radius: 3px;

    z-index: 12;

    transform-origin: 4px 0px;

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background-color 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger into a crossmark.
 */
#menuToggle input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked~span:nth-last-child(2) {
    transform: rotate(-45deg) translate(1px, -2px);
}

/*
 * Make this absolute positioned at the top left of the screen
 */
#menu {
    position: absolute;

    max-width: 450px;
    width: 100vw;
    height: 100vh;

    margin: -80px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;

    overflow-y: auto;

    background: linear-gradient(to left,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 15%,
        rgba(59, 105, 116, 0.5) 50%,
        rgba(59, 105, 116, 1) 100%
    );

    list-style-type: none;

    -webkit-font-smoothing: antialiased;

    /* to stop flickering of text in safari */
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);

    z-index: 11;
}

#menu li {
    padding: 10px 0;
    font-size: 1.25rem;
}

#menu li label {
    cursor: pointer;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked~ul {
    transform: none;
}



/* HEADER */
body {
    position: relative;
}

header {
    height: 125px;
    width: 100%;
    position: fixed;

    z-index: 11;
}

header #siteid_box {
    position: absolute;
    left: 8vw;
    top: 50%;
    transform: translate(0, -45%);

    text-align: center;
}

header #siteid_box a {
    color: white;
    text-decoration: none;
}

header #siteid_box p {
    font-family: "Cinzel", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 1.25rem;
    letter-spacing: 0.1rem;
    line-height: 0.8rem;
}

header #siteid_box small {
    font-style: italic;
    letter-spacing: 0.1rem;
}


header #logotype_box {
    width: 6vw;
    min-width: 50px;
    overflow: hidden;

    position: absolute;
    left: 25vw;
    top: 50%;
    transform: translate(0, -50%);
}

header #logotype_box img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

header #subnav {
    position: absolute;
    right: 5vw;
    top: 50%;
    transform: translate(0, -50%);
}

header #subnav a {
    color: white;
    text-decoration: none;

    padding-left: 3vw;

    transition: color 0.3s ease;
}

header #subnav a:hover {
    color: rgb(186, 214, 236);
}


/* MAIN */
#cover_box {
    position: absolute;
    top: 0;

    width: 100vw;
    height: 100vh;
    overflow: hidden;

    z-index: -1;
}

/* lightweight Water Distortion Effect */
#cover_box canvas {
    position: absolute;
    left: -10%;
    width: 120%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#coverlink_box {
    position: absolute;
    bottom: 10vw;

    width: 100%;
}

#coverlink_box #coverlink_btn {
    width: 15vw;
    height: 15vw;
    margin: auto;

    overflow: hidden;

    text-align: center;

    background-color: rgba(111, 152, 190, 0.5);
    box-shadow: 0px 0px 5px 5px rgba(111, 152, 190, 0.3);
    border-radius: 50%;

    align-content: center;

    opacity: 0.8;
    filter: blur(2px);
    transition: opacity 1s ease, filter 1s ease;
}

#coverlink_box #coverlink_btn:hover {
    opacity: 1;
    filter: blur(0px);
}

#coverlink {
    color: white;
    
    font-family: "Cinzel", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 2rem;
    text-decoration: none;
}

#coverlink span {
    display: block;
}










/* FOR SMALLER DESKTOP */
@media (max-width: 1439px) {
    header #siteid_box p {
        font-size: 1rem;
        letter-spacing: 0.08rem;
        line-height: 0.6rem;
    }

    header #siteid_box small {
        letter-spacing: 0.08rem;
    }

    header #siteid_box {
        left: 12vw;
    }

    header #logotype_box {
        left: 32vw;
    }

    #coverlink_box #coverlink_btn {
        width: 20vw;
        height: 20vw;
    }

    #coverlink_box {
        bottom: 15vw;
    }
}



/* FOR TABLET */
@media (max-width: 1024px) {
    header #siteid_box {
        left: 15vw;
    }

    header #logotype_box {
        left: 40vw;
    }

    #coverlink_box #coverlink_btn {
        width: 25vw;
        height: 25vw;

        opacity: 1;
        filter: blur(1px);
    }

    #cover_box canvas {
        left: -20%;
        width: 140%;
    }

    #coverlink_box {
        bottom: 15vw;
    }

    #cover_box:has(#coverlink:hover) img {
        opacity: 0;
        transform: none;
    }
}



/* FOR MOBILE */
@media (max-width: 768px) {
    header #siteid_box p {
        font-size: 0.8rem;
        letter-spacing: 0.06rem;
        line-height: 0.4rem;
    }

    header #siteid_box small {
        font-size: 0.6rem;
        letter-spacing: 0.06rem;
    }

    header #subnav {
        display: none;
    }

    header #siteid_box {
        left: auto;
        right: 50px;
    }

    header #logotype_box {
        left: 100px;
    }

    #coverlink_box #coverlink_btn {
        width: 200px;
        height: 200px;
    }

    #coverlink_box {
        bottom: 125px;
    }
}