@font-face {
    font-family: "SB";
  
    src: url("../fonts/SB.woff2") format("woff2"), 
        url("../fonts/SB.woff") format("woff"),  
        url("../fonts/SB.svg") format("svg"),
        url("../fonts/SB.ttf") format("truetype"); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "SM";
  
    src: url("../fonts/SM.woff2") format("woff2"), 
        url("../fonts/SM.woff") format("woff"), 
        url("../fonts/SM.svg") format("svg"),
        url("../fonts/SM.ttf") format("truetype"); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "O";
  
    src: url("../fonts/O.woff2") format("woff2"), 
        url("../fonts/O.woff") format("woff"), 
        url("../fonts/O.svg") format("svg"),
        url("../fonts/O.ttf") format("truetype");  
    font-weight: normal;
    font-style: normal;
}

*{
    box-sizing: border-box;
}

html, body{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    background-color: #000;
    font-family: "SB", Helvetica, sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* ANIMATIONS */
@-webkit-keyframes open-blank{
    0%{transform: scaleX(0);}
    100%{ transform: scaleX(1);}
}

@keyframes open-blank{
    0%{transform: scaleX(0);}
    100%{ transform: scaleX(1);}
}

@-webkit-keyframes element-up{
    0%{transform: translateY(100vh); margin: auto;}
    100%{transform: translateY(0); margin: auto;}
}

@keyframes element-up{
    0%{transform: translateY(100vh); margin: auto;}
    100%{transform: translateY(0); margin: auto;}
}

@-webkit-keyframes element-slide-up{
    0%{opacity: 0; transform: translateY(200px);}
    100%{opacity: 1; transform: translateY(0);}
}

@keyframes element-slide-up{
    0%{opacity: 0; transform: translateY(200px);}
    100%{opacity: 1; transform: translateY(0);}
}

@-webkit-keyframes slide-left{
    0%{opacity: 0; transform: translateX(600px);}
    100%{opacity: 1; transform: translateX(0);}
}

@keyframes slide-left{
    0%{opacity: 0; transform: translateX(600px);}
    100%{opacity: 1; transform: translateX(0);}
}

@keyframes changecolor-1{
    0%{background-color: #ebff00;}
    20%{background-color: #EC5A1B;}
    40%{background-color: #1A6689;}
    60%{background-color: #E59471;}
    80%{background-color: #E0E0E0;}
    100%{background-color: #ebff00;}
}

@-webkit-keyframes changecolor-1{
    0%{background-color: #ebff00;}
    20%{background-color: #EC5A1B;}
    40%{background-color: #1A6689;}
    60%{background-color: #E59471;}
    80%{background-color: #E0E0E0;}
    100%{background-color: #ebff00;}
}

@keyframes changecolor-2{
    0%{background-color: #ef4949;}
    20%{background-color: #6CEB57;}
    40%{background-color: #365015;}
    60%{background-color: #5A57EB;}
    80%{background-color: #C5C5C5;}
    100%{background-color: #ef4949;}
}

@-webkit-keyframes changecolor-2{
    0%{background-color: #ef4949;}
    20%{background-color: #6CEB57;}
    40%{background-color: #365015;}
    60%{background-color: #5A57EB;}
    80%{background-color: #C5C5C5;}
    100%{background-color: #ef4949;}
}

@keyframes changecolor-3{
    0%{background-color: #2F80ED;}
    20%{background-color: #981F3C;}
    40%{background-color: #CEAF3F;}
    60%{background-color: #D6EE42;}
    80%{background-color: #7B7B7B;}
    100%{background-color: #2F80ED;}
}

@-webkit-keyframes changecolor-3{
    0%{background-color: #2F80ED;}
    20%{background-color: #981F3C;}
    40%{background-color: #CEAF3F;}
    60%{background-color: #D6EE42;}
    80%{background-color: #7B7B7B;}
    100%{background-color: #2F80ED;}
}

/* Navbar Settings */
.overlay {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    background-color: #000;
    overflow-x: hidden;
    transition: 0.7s; 
}

.overlay-content {
    display: contents;
}

.overlay .closebtn {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 46px;
    right: 73px;
}

a.closebtn img {
    width: 40px;
}

a.closebtn img:hover{
    content: url(../images/icons/greenbutton.png);
    transition: 0.3s;
}

.website-nav-links {
    position: relative;
    top: 48%;
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
    padding: 0 70px;
}

.website-nav-links a {
    font-family: "SM", Helvetica, sans-serif;
    font-size: 6vw;
    font-weight: 500;
    letter-spacing: -0.02rem;
    line-height: 80%;
    color: #f5f5f5;
    text-decoration: none;
    display: block;
}

.website-nav-links a.active{
    color: #0820F8;
}

.website-nav-links a:nth-child(1), .website-nav-links a:nth-child(2),
.website-nav-links a:nth-child(3) {
    padding-bottom: 45px;
    width: fit-content;
    margin: auto;
}

.website-nav-links a:hover{
    color: #0820F8;
    transition: 0.3s;
}

.social-nav-links {
    position: absolute;
    left: 70px;
    bottom: 30px;
}

.social-nav-links a {
    font-family: "SM", Helvetica, sans-serif;
    font-size: 2.347417840375587vw;
    font-weight: 500;
    line-height: 100%;
    color: #f5f5f5;
    text-decoration: none;
}

.social-nav-links a:hover{
    color: #0820F8;
    transition: 0.3s;
}

.last-update-nav {
    position: absolute;
    bottom: 30px;
    right: 70px;
    font-family: "SM", Helvetica, sans-serif;
    font-size: 1.1737089201877935vw;
    font-weight: 500;
    line-height: 130%;
    color: #f5f5f5;
    user-select: none;
    pointer-events: none;
}

.last-update-nav span {
    font-family: "SB", Helvetica, sans-serif;
    font-weight: 400;
}

@media (max-width: 1024px){
    .overlay .closebtn {
        top: 41px;
        right: 53px;
    }

    .website-nav-links {
        top: 50%;
        padding: 0 50px;
    }

    .website-nav-links a {
        font-size: 8vw;
    }

    .social-nav-links {
        left: 50px;
    }

    .social-nav-links a {
        font-size: 3vw;
    }

    .last-update-nav {
        right: 50px;
        font-size: 1.6vw;
    }
}

@media (max-width: 768px){
    .overlay .closebtn {
        top: 25px;
        right: 33px;
        width: 25px;
        height: 25px;
    }

    a.closebtn img {
        width: 25px;
    }

    .website-nav-links {
        padding: 0 25px;
    }

    .website-nav-links a {
        font-size: 9vw;
    }

    .website-nav-links a:nth-child(1), .website-nav-links a:nth-child(2),
    .website-nav-links a:nth-child(3) {
        padding-bottom: 40px;
    }

    .last-update-nav {
        font-size: 1.8vw;
        bottom: 20px;
    }

    .social-nav-links {
        left: 25px;
        bottom: 20px;
    }

    .social-nav-links a {
        font-size: 4vw;
    }
}

@media (max-width: 576px){
    .overlay .closebtn {
        top: 19px;
        right: 27px;
        width: 15px;
        height: 15px;
    }

    a.closebtn img {
        width: 15px;
    }

    .website-nav-links {
        padding: 0 25px;
    }

    .website-nav-links a {
        font-size: 10vw;
    }

    .website-nav-links a:nth-child(1), .website-nav-links a:nth-child(2),
    .website-nav-links a:nth-child(3) {
        padding-bottom: 25px;
    }

    .social-nav-links a {
        font-size: 4.4vw;
    }

    .last-update-nav {
        font-size: 2.8vw;
        right: 25px;
        bottom: 20px;
    }
}

/* Index Page Settings */
.main {
    padding: 20px 50px 50px 50px;
}

.scroll-content {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    overflow: hidden;
    margin: auto;
    -webkit-animation: open-blank .5s ease;
    animation: open-blank .5s ease;
}

.scroll-content-noanimation {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    overflow: hidden;
    margin: auto;
}

.top-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 25px 20px 0 20px;
    position: relative;
    top: -16px;
    overflow: hidden;
}

a.info-link {
    font-family: "SM", Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 100%;
    text-decoration: none;
    color: #000;
    position: absolute;
    left: 20px;
    bottom: 8px;
    user-select: none;
    -webkit-animation: element-slide-up .7s ease 1s backwards;
    animation: element-slide-up .7s ease 1s backwards;
}

a.info-link:hover{
    background: #E0E0E0;
    transition: 0.3s;
}

h1.name-logo {
    width: 85%;
    font-family: "SM", Helvetica, sans-serif;
    font-size: 9vw;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-align: center;
    margin: auto;
    user-select: none;
    -webkit-animation: element-slide-up .7s ease 1.3s backwards;
    animation: element-slide-up .7s ease 1.3s backwards;
}

.green-button {
    width: 40px;
    height: 40px;
    top: 46px;
    right: 73px;
    position: fixed;
    z-index: 99;
}
    
img.green-ellipse {
    width: 40px;
    cursor: pointer;
    z-index: 99;
    -webkit-animation: slide-left .3s ease 1.8s backwards;
    animation: slide-left .3s ease 1.8s backwards;
}
    
img.green-ellipse:hover{
    content: url(../images/icons/greenbutton_hover.png);
    transition: 0.3s;
}

.first-section {
    width: 100%;
    padding: 0 20px 50px 20px;
    z-index: 99;
}

.rectangle {
    width: 100%;
    height: 200vh;
    background: #ebff00;
    border: 3px solid #000;
    z-index: 99;
    -webkit-animation: element-up .5s ease .7s backwards, changecolor-1 30s ease 3s infinite;
    animation: element-up .5s ease .7s backwards, changecolor-1 30s ease 3s infinite;
}

.artworks-title, .commissioned-title {
    font-family: "O", Georgia, 'Times New Roman', Times, serif;
    font-size: 2.4vw;
    font-weight: 400;
    font-style: italic;
    line-height: 80%;
    padding-top: 50px;
    user-select: none;
    pointer-events: none;
}

.work-titles {
    font-family: "SB", Helvetica, sans-serif;
    font-size: 4.7vw;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 125%;
    padding-top: 20px;
    user-select: none;
}

.work-titles a {
    text-decoration: none;
    color: #000;
}

.work-titles a:hover {
    background: #E0E0E0;
    transition: 0.3s;
}

.second-section {
    width: 100%;
    padding: 0 20px 50px 20px;
}

.square {
    width: 100%;
    height: 100vh;
    background: #ef4949;
    border: 3px solid #000;
    -webkit-animation: changecolor-2 30s ease 3s infinite;
    animation: changecolor-2 30s ease 3s infinite;
}

.third-section {
    width: 100%;
    padding: 0 20px 50px 20px;
}

.small-rectangle {
    width: 100%;
    height: 40vh;
    background: #2f80ed;
    border: 3px solid #000;
    position: relative;
    -webkit-animation: changecolor-3 30s ease 3s infinite;
    animation: changecolor-3 30s ease 3s infinite;
}

.back-to-top {
    display: flex;
    padding: 8px 20px;
    background: #f5f5f5;
    border: 2px solid #000;
    border-radius: 50px;
    box-sizing: border-box;
    width: fit-content;
    font-family: "O", Georgia, 'Times New Roman', Times, serif;
    font-size: 1.8vw;
    font-weight: 100;
    font-style: italic;
    line-height: 100%;
    position: absolute;
    top: 15px;
    right: 15px;
    user-select: none;
}

.back-to-top:hover{
    text-decoration: underline;
    transition: 0.3s;
    cursor: pointer;
}

@media (max-width: 1024px){
    .main {
        padding: 20px 30px 30px 30px;
    }

    a.info-link {
        bottom: 6px;
    }

    .green-button {
        top: 41px;
        right: 53px;
    }

    .rectangle {
        height: 150vh;
    }

    .square {
        height: 80vh;
    }

    .small-rectangle {
        height: 27vh;
    }
}

@media (max-width: 768px){
    .main {
        padding: 10px 15px 15px 15px;
    }

    .top-section {
        padding: 20px 15px 0 15px;
    }

    a.info-link {
        font-size: 20px;
        left: 15px;
    }

    .green-button {
        width: 25px;
        height: 25px;
        top: 25px;
        right: 33px;
    }

    img.green-ellipse {
        width: 25px;
    }

    .first-section {
        padding: 0 15px 30px 15px;
        position: relative;
        top: -10px;
        z-index: 0;
    }

    .artworks-title, .commissioned-title {
        padding-top: 30px;
    }

    .work-titles {
        padding-top: 15px;
    }

    .second-section {
        padding: 0 15px 30px 15px;
        position: relative;
        top: -15px;
    }

    .third-section {
        padding: 0 15px 0 15px;
        position: relative;
        top: -20px;
    }

    .back-to-top {
        padding: 7px 17px;
        font-size: 2.2vw;
    }
}

@media (max-width: 576px){
    .top-section {
        padding: 20px 10px 0 10px;
    }

    a.info-link {
        font-size: 18px;
        left: 10px;
        bottom: 1px;
    }

    h1.name-logo {
        font-size: 8vw;
        margin-top: 0;
        margin-bottom: 0;
    }

    .green-button {
        width: 15px;
        height: 15px;
        top: 19px;
        right: 27px;
    }

    img.green-ellipse {
        width: 15px;
    }

    .first-section {
        padding: 0 10px 20px 10px;
        position: relative;
        top: -11px;
        z-index: 0;
    }

    .rectangle {
        height: 120vh;
        border: 2px solid #000;
    }

    .artworks-title, .commissioned-title {
        font-size: 4vw;
        padding-top: 20px;
    }

    .work-titles {
        font-size: 6.2vw;
        line-height: 130%;
        padding-top: 10px;
    }

    .second-section {
        padding: 0 10px 20px 10px;
    }

    .square {
        height: 70vh;
        border: 2px solid #000;
    }

    .third-section {
        padding: 0 10px 0 10px;
    }

    .small-rectangle {
        height: 22vh;
        border: 2px solid #000;
    }

    .back-to-top {
        padding: 5px 11px;
        font-size: 3.6vw;
        border: 1.7px solid #000;
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

/* Footer Index Section */
footer.footer-site {
    width: 100%;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 20px;
}

p.last-update {
    font-family: "SM", Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 125%;
    margin: 0;
    pointer-events: none;
    user-select: none;
    order: 1;
    width: 140px;
    color: #000;
}

p.last-update span::before {
    content: " ";
}

p.last-update span {
    font-family: "SB", Helvetica, sans-serif;
    font-weight: 400;
}

p.last-update span:after, .last-update-nav span:after {
    content: "may, 2021";
}

.social-links {
    text-align: center;
    font-family: "SM", Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 125%;
    order: 2;
    flex-direction: column;
    display: flex;
}

.social-links a {
    color: #000;
    text-decoration: none;
    user-select: none;
}

.social-links a:nth-child(1) {
    width: 52px;
    text-align: center;
    margin: auto;
}

.social-links a:hover {
    background: #E0E0E0;
    color: #000;
    transition: 0.3s;
}

p.copyright {
    width: 150px;
    font-family: "SB", Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 125%;
    margin: 0;
    text-align: right;
    pointer-events: none;
    user-select: none;
    order: 3;
    color: #000;
}

p.copyright span::before {
    content: " ";
}

@media (max-width: 768px){
    footer.footer-site {
        padding: 15px;
    }

    p.last-update, p.copyright {
        font-size: 16px;
        width: 110px;
    }

    .social-links {
        font-size: 16px;
    }

    .social-links a:nth-child(1) {
        width: 44px;
    }
}

@media (max-width: 576px){
    footer.footer-site {
        padding: 10px;
    }

    .social-links{
        display: none;
    }

    p.last-update, p.copyright {
        font-size: 14px;
        width: 100px;
    }
}