@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ Light.otf);
    font-weight: 100;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ Light\ Italic.otf);
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ Light.otf);
    font-weight: 200;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ Light\ Italic.otf);
    font-weight: 200;
    font-style: italic;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ SemiBold.otf);
    font-weight: 550;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ SemiBold\ Italic.otf);
    font-weight: 550;
    font-style: italic;
}

body, html, div, p, a {
    font-family: 'Times Now';
    margin: 0;
    padding: 0;
    font-size: 20px;
    letter-spacing: -0.07em;
    line-height: 18px;
    cursor: help !important;
}
p {
    margin-bottom: 5px;
}

div.home {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 5px;
    grid-row-gap: 5px;
}

/* GRIDS SETTINGS */

        .top-1, .top-2, .top-3, .top-4, .btm-1, .btm-2, .btm-3, .btm-4 {
            /*background-color: #FF000022;*/
            display: flex;
            padding: 5px;
        }

        .top-1 {
            display: block;
        }

        .top-1, .top-2, .top-3 {
            align-items: flex-start;
        }

        .btm-1, .btm-2, .btm-3, .btm-4 {
            align-items: flex-end;
        }

        .top-1 { grid-area: 1 / 1 / 2 / 2; }
        .top-2 { grid-area: 1 / 2 / 2 / 3; }
        .top-3 { grid-area: 1 / 3 / 2 / 5; }

        .btm-1 { grid-area: 2 / 1 / 3 / 2; }
        .btm-2 { grid-area: 2 / 2 / 3 / 3; }
        .btm-3 { grid-area: 2 / 3 / 3 / 4; }
        .btm-4 { grid-area: 2 / 4 / 3 / 5; }

        .btm-1 > p {
            margin-bottom: -2px;
        }

div.menu {
    height: 20px;
    width: 40px;
    overflow: hidden;
}
div.menu:hover {
    height: unset;
    width: unset;
    overflow: unset;
}
  
sup {
    font-weight: 100;
    font-style: italic;
    vertical-align: top;
    font-size: 14px;
    position: relative;
    top: -5px;
}

ul {
    margin: 0;    
}

a:not(.pages), a:visited {
    color: blue;
}
a.pages {
    margin-left: 15px !important;
    color: black;
    text-decoration: none;
}
a.pages:hover:after {
    content: '→';
}
p:has(.pages) {
    margin-top: -5px;
}

a:hover, div.top-1 > p:nth-child(1):hover {
    animation: rainbow 10s linear 0s infinite;
}

.btm-1 > a {
    transition: transform 1s;
    transform-origin: bottom left;
}

.btm-1 > a:hover {
    transform: scaleX(10);
    transform-origin: bottom left;
}

@keyframes rainbow {
    5% {
        color: blue;
    }
    10% {
        color: rgb(0, 255, 0);
    }
    15% {
        color: yellow;
    }
    25% { 
        color: orange;
    }
    30% {
        color: red;
    }
    35% {
        color: rgb(255, 0, 255);
    }
    42.5% {
        color: rgb(179, 0, 255);
    }
    45% {
        color: blue;
    }
    55% {
        color: rgb(0, 255, 0);
    }
    60% {
        color: yellow;
    }
    70% { 
        color: orange;
    }
    75% {
        color: red;
    }
    80% {
        color: rgb(255, 0, 255);
    }
    87.5% {
        color: rgb(179, 0, 255);
    }
    95% {
        color: blue;
    }
}


@media screen and (orientation: portrait) {

body, html, div, p, a {
    font-family: 'Times Now';
    margin: 0;
    padding: 0;
    font-size: 80px;
    letter-spacing: -0.07em;
    line-height: 80px;
}
body, html {
    overflow: hidden;
}

.top-1, .btm-1 {
    width: 100vw;
    height: 50vh;
    padding: 20px;
}
.btm-1 {
    position: fixed;
    bottom: 0;
    left: 0;
}
.top-2, .top-3, .btm-2, .btm-3, .btm-4 {
    display: none;
}

.btm-1 > a {
    transform: scaleX(5.8);
    transform-origin: bottom left;
    animation: rainbow 10s linear 0s infinite;
}
.btm-1 > a:hover {
    transform: scaleX(5.8);
}

div.menu, div.menu:hover {
  height: 90px;
  width: 160px;
  overflow: hidden;
}
div.menu.expanded {
    height: unset;
    width: unset;
    overflow: unset;
}
a.pages {
    margin-left: 70px !important;
    color: black;
    text-decoration: none;
}

sup {
    font-size: 50px;
    top: -15px;
}

}