/* 
Alexandre Morais
22.06.24
Portfolio
*/

/* ---------- Typographie ---------- */

@font-face {
    font-family: 'Satoshi-Variable';
    src: url('fonts/Satoshi-Variable.woff2') format('woff2'),
        url('fonts/Satoshi-Variable.woff') format('woff');
    font-weight: 300 900;
    font-display: swap;
    font-style: normal;
    font-variation-settings: 'wght' 300, 'wdth' 100;
}

/* ---------- Initialisation ---------- */

* {
    cursor: none;
}

:root {
    --primary: #0A0A0A;
    --text: #fff;
    --marge: 2rem;
}

::selection {
    color: var(--primary);
    background-color: var(--text);
}

html {
    font-size: 15px;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--primary);
    font-family: 'Satoshi-Variable', sans-serif;
    font-variation-settings: normal;
    overflow: hidden;
}


a,
nav,
ul,
li,
h1,
h2,
h3,
p {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style-type: none;
    color: var(--text);
}

.inner {
    width: 100%;
    min-width: 375px;
    box-sizing: border-box;
    padding: var(--marge);
    margin: 0 auto;
}

.hidden {
    opacity: 0;
}

.ball {
    transition: padding 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--text);
    border: solid 5px var(--text);
    padding: 5px;
    mix-blend-mode: difference;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    opacity: 1;
}

.scale.ball {
    padding: 10px;
}

/* ---------- Header ---------- */

header {
    position: fixed;
    top: 0;
}

.desk-header {
    display: block;
}

.phone-header {
    display: none;
}

/* ---------- Main ---------- */

main {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

main h3 {
    position: relative;
    font-size: 5vw;
    text-transform: uppercase;
    font-variation-settings: 'wght' 700;
    z-index: 5;
}

@media (min-width : 2000px) {
    main h3 {
        font-size: 7rem;
    }
}

.inner .appears {
    display: inline-block;
}

.container {
    overflow: hidden;
}

/* ---------- Navigation ---------- */

nav {
    position: fixed;
    bottom: 0;
}

ul {
    display: flex;
    gap: 1rem;
}

li a {
    font-weight: 400;
}

.dot {
    display: inline-block;
    opacity: 1;
}

nav {
    width: 100%;
}

nav .inner {
    display: flex;
    justify-content: space-between;
}

/* ---------- hover ---------- */

@media (min-width : 798px) {
    .box {
        transition: .2s ease-in-out;
    }

    a:hover .box {
        transform: translateY(calc(-1em - 7px));
    }
}

nav a {
    display: block;
    position: relative;
    height: calc(1em + 8px);
    overflow: hidden;
}

nav a span {
    display: block;
}

.copied {
    position: absolute;
    top: 0;
    font-size: 1rem;
    opacity: 0;
}

/* ---------- P5 Canevas Letters ---------- */

#defaultCanvas0 {
    position: fixed;
    top: 0;
    z-index: -1;
}

/* ---------- Huge screen ---------- */

@media (min-width: 2300px) {

    li {
        font-size: 20px;
    }
}


/* ---------- phone ---------- */

@media (max-width: 850px) {

    .desk-header,
    .ball {
        display: none;
    }

    .phone-header {
        display: block;
    }

    main h3 {
        font-size: 3rem;
    }

    .inner {
        justify-content: space-between;
    }

    .inner ul:nth-child(1) {
        width: fit-content;
    }

}

@media (max-width:500px) {
    main h3 {
        font-size: 3rem;
    }
}

@media (max-width:400px) {
    main h3 {
        font-size: 2.2rem;
    }
}