@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&family=Geist+Pixel&family=Geist:ital,wght@0,100..900;1,100..900&display=swap');


@font-face {
    font-family: 'TNR';
    src: url('./fonts/Times\ New\ Roman\ MT\ Condensed.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    overflow: hidden;
    height: 100dvh;
    width: 100dvw;
    padding: 0;
    margin: 0;
}

body {
    overflow: hidden;
    height: 100dvh;
    width: 100dvw;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

main {
    margin: 0;
    padding: 0;
    width: 50%;
    height: 50%;
    display: grid;
    grid-template-columns: repeat(3, 250px);
    grid-template-rows: repeat(3, 250px);
    grid-gap: 50px;
    justify-content: center;
    font-family: 'Geist';
    font-weight: bold;
}

a {
    color: black;
    text-decoration: none;
}

.icon {
    margin: 0 auto;
    display: block;
    padding: 5px;
    width: fit-content;
    cursor: pointer;

    div {
        color: black;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.189);
    }
}

.icon::selection,
.icon:active,
.icon:focus-visible,
.icon:focus {
    border: 1px dotted black;
}

.frame {
    position: absolute;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 1px solid black;
    z-index: 9;
}

.draghead {
    font-family: 'Geist Mono';
    z-index: 10;
    content: ' ';
    background-color: black;
    width: 100%;
    height: 25px;
    padding: 0;
    margin: 0;
}

.close {
    text-align: center;
    cursor: pointer;
    background-color: white;
    font-weight: bold;
    padding: 0;
    margin: 0;
    height: 20px;
    width: 20px;
}

.scatter {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: black !important;
}

.icon:hover {

    span {
        color: #414896;
    }
}

.placeholder {
    visibility: hidden;
    pointer-events: none;
}

#commonplaceCanvas,
#aboutCanvas {
    width: 240px;
    height: 240px;
    position: relative;
    overflow: hidden;
}

canvas {
    display: block;
    width: 240px;
    height: 240px;
}

iframe {
    background-color: rgba(255, 255, 255, 0.292);
    backdrop-filter: blur(5px);
    border: none;
    max-height: 80dvh;
    max-width: 80dvw;
    height: 50dvh;
    width: 40dvw;
    resize: both;
    overflow: scroll;
}

#iContact {
    iframe {
        height: 70dvh;
        width: 25dvw;
    }
}

img {
    width: 240px;
    height: 240px;
}

video {
    max-width: 240px;
    max-height: 240px;
}

.con {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.context {
    font-family: 'Geist Mono';
    font-size: 12px;
    position: absolute;
    background: lightgray;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.504);
}

.context ul {
    padding: 0px;
    margin: 0px;
    min-width: 150px;
    list-style: none;
}

.context ul li {
    padding: 2px;
    margin: 5px;
    cursor: default;
}

.context ul li a {
    text-decoration: none;
    color: black;
}

.context ul li:hover {
    background: #414896;
    color: white;
}


@media (max-width: 767px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: scroll;
    }

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

    main {
        grid-template-columns: repeat(2, 200px);
        grid-template-rows: repeat(4, 200px);
        grid-gap: 20px;
    }

    .icon {
        position: relative;
    }

    img {
        width: 140px;
        height: 140px;
    }

    .scatter {
        width: 190px;
        height: 190px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 80px;
    }


    span {
        color: #414896 !important;
    }

    .frame {
        top: 0;
        left: 0;
        width: 100dvw;
        height: 100dvh;
    }

    iframe {
        max-height: 100dvh;
        max-width: 100dvw;
        width: 100%;
        height: 100%;
        resize: none;
    }

    #iContact {
        iframe {
            width: 100%;
            height: 100%;
        }
    }

    canvas {
        display: block;
        width: 150px;
        height: 150px;
    }
}