@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: Inter, Helvetica Neue, HelveticaNeue, Helvetica, Arial, sans-serif;
    text-decoration: none;
}

html {
    background-color: #1B1D21;
}

body {
    overflow: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.background-blur {
    position: fixed;
    height: 100%;
    width: 100%;
    -webkit-backdrop-filter: blur(.4px);
    backdrop-filter: blur(.4px);
}

main {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-gap: 20px;
    height: 100%;
    min-width: 320px;
    width: 100%;
    padding: 20px 40px 80px;
    transition: all 0.4s ease-in-out;
}

.hide-main {
    min-height: 0;
    height: 0;
    min-width: 0;
    width: 0;
    padding: 0;
}

.project {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.4);
    border-right: 1px solid rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(140,140,140,0.4);
    border-left: 1px solid rgba(140,140,140,0.4);
    border-radius: 16px;
    background: linear-gradient(70deg, rgba(255,255,255,0.4) 0%, rgba(230,230,230,0.4) 5%, rgba(255,255,255,0.4) 43%, rgba(200,200,200,0.4) 85%, rgba(255,255,255,0.4) 100%);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

.icon {
    height: 60px;
    width: 60px;
    margin-bottom: 6px;
    transition: height 0.4s ease-in-out,
                width 0.4s ease-in-out;
}

.title {
    position: absolute;
    left: 16px;
    bottom: 12px;
    color: #B7D4E8;
    font-size: .7em;
    font-weight: 600;
    transition: font-size 0.4s ease-in-out;
}

.description {
    position: fixed;
    display: flex;
    flex-direction: column;
    left: 50%;
    margin: 20px 0;
    color: #FFFFFF;
    text-align: center;
    transform: translateX(-50%);
    cursor: default;
}

h1 {
    font-size: 1.3em;
    font-weight: 600;
}

.description p {
    margin-top: 4px;
    font-size: .8em;
    font-weight: 400;
}

#about-name {
    position: fixed;
    right: 0;
    bottom: 0;
    margin: 12px;
    color: #FFFFFF;
    font-size: .85em;
    transition: all 0.4s ease-in-out;
}

#about {
    position: absolute;
    height: 100vh;
    width: 100vw;
    background: rgba(27, 29, 33, .9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out,
                visibility 0.4s ease-in-out;
}

#about-content {
    display: grid;
    align-content: flex-start;
    grid-template-rows: repeat(3, auto) 1fr;
    gap: 20px;
    height: 100vh;
    width: 100vw;
    padding: 20px;
    color: #FFFFFF;
}

#about-content p {
    font-size: .8em;
    line-height: 1.75em;
    font-weight: 400;
}

#about-content p:nth-of-type(2) {
    z-index: 1;
    cursor: default;
}

#about-content p:last-of-type {
    align-self: flex-end;
}

#about-content p a {
    color: #FFFFFF;
    text-decoration: underline;
}

#about-close {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    cursor: default;
}

#about:target {
    visibility: visible;
    opacity: 1;
}

button {
    position: fixed;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 65px;
    border-top: 1px solid rgba(255,255,255,0.4);
    border-right: 1px solid rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(140,140,140,0.4);
    border-left: 1px solid rgba(140,140,140,0.4);
    border-radius: 14px;
    background: linear-gradient(70deg, rgba(255,255,255,0.4) 0%, rgba(230,230,230,0.4) 5%, rgba(255,255,255,0.4) 43%, rgba(200,200,200,0.4) 85%, rgba(255,255,255,0.4) 100%);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    color: #FFFFFF;
    font-size: .8em;
    font-weight: 600;
    cursor: pointer;
}

body > button:nth-of-type(1){
    left: 20px;
}

body > button:nth-of-type(2){
    left: 97px;
}

#back-button {
    right: 20px;
    width: 45px;
    border-radius: 50%;
}

.button-icon {
    position: absolute;
    height: 4px;
    width: 16px;
    border-radius: 4px;
    background-color: #FFFFFF;
    transform: rotate(45deg);
}

.button-icon:nth-child(2) {
    transform: rotate(-45deg);
}

.border {
    position: absolute;
    height: calc(100% + 10px);
    width: calc(100% + 10px);
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    opacity: 0;
}

@media (hover) {

    .project, .icon, .icon .cls-2, .icon .cls-3, .icon .cls-4, .icon .cls-5, .icon .cls-6, .title, .button-icon {
        transition: all 0.4s ease-in-out;
    }

    button {
        transition: border-top 0.4s ease-in-out,
                    border-right 0.4s ease-in-out,
                    border-bottom 0.4s ease-in-out,
                    border-left 0.4s ease-in-out,
                    transform 0.4s ease-in-out;
    }

    .border {
        transition: opacity 0.4s ease-in-out;
    }

    /* project hover */
    .project:hover {
        border-top: 1px solid rgba(255,255,255,0.9);
        border-right: 1px solid rgba(255,255,255,0.9);
        border-bottom: 1px solid rgba(140,140,140,0.9);
        border-left: 1px solid rgba(140,140,140,0.9);
        transform: scale(1.015);
    }

    .project:hover .icon .cls-2, .project:hover .icon .cls-4, .project:hover .icon .cls-6 {
        opacity: 1;
    }

    .project:hover .icon .cls-3, .project:hover .icon .cls-5 {
        fill: #FFFFFF;
    }

    .project:hover .title {
        color: #FFFFFF;
    }

    /* button hover */
    button:hover {
        border-top: 1px solid rgba(255,255,255,0.9);
        border-right: 1px solid rgba(255,255,255,0.9);
        border-bottom: 1px solid rgba(140,140,140,0.9);
        border-left: 1px solid rgba(140,140,140,0.9);
    }

    #back-button:hover {
        transform: scale(1.04);
    }

    #back-button:hover .border {
        opacity: 1;
    }

    @media screen and (min-width: 426px) {

        /* project hover */
        .project:hover {
            border-top: 2px solid rgba(255,255,255,0.9);
            border-right: 2px solid rgba(255,255,255,0.9);
            border-bottom: 2px solid rgba(140,140,140,0.9);
            border-left: 2px solid rgba(140,140,140,0.9);
        }

        /* button hover */
        button:hover {
            border-top: 2px solid rgba(255,255,255,0.9);
            border-right: 2px solid rgba(255,255,255,0.9);
            border-bottom: 2px solid rgba(140,140,140,0.9);
            border-left: 2px solid rgba(140,140,140,0.9);
        }

        #back-button:hover {
            transform: scale(1.05);
        }

    }

    @media screen and (min-width: 1024px) {

        .button-icon {
            transform: rotate(0deg);
        }

        .button-icon:nth-child(2) {
            transform: rotate(-180deg);
        }

        #back-button:hover .button-icon {
            transform: rotate(45deg);
        }

        #back-button:hover .button-icon:nth-child(2) {
            transform: rotate(-45deg);
        }

    }

}

/* project active */
.project:active {
    border-top: 1px solid rgba(255,255,255,0.9);
    border-right: 1px solid rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(140,140,140,0.9);
    border-left: 1px solid rgba(140,140,140,0.9);
    transform: scale(1.015);
}

.project:active .icon .cls-2, .project:active .icon .cls-4, .project:active .icon .cls-6 {
    opacity: 1;
}

.project:active .icon .cls-3, .project:active .icon .cls-5 {
    fill: #FFFFFF;
}

.project:active .title {
    color: #FFFFFF;
}

/* button active */
button:active {
    border-top: 1px solid rgba(255,255,255,0.9);
    border-right: 1px solid rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(140,140,140,0.9);
    border-left: 1px solid rgba(140,140,140,0.9);
}

#back-button:active {
    transform: scale(1.04);
}

#back-button:active .border {
    opacity: 1;
}

@media screen and (min-width: 426px) and (max-width: 1023px) {

    main {
        grid-gap: 25px;
        min-height: 600px;
        max-width: 575px;
        padding: 25px 50px 100px;
    }

    .project {
        border-top: 2px solid rgba(255,255,255,0.4);
        border-right: 2px solid rgba(255,255,255,0.4);
        border-bottom: 2px solid rgba(140,140,140,0.4);
        border-left: 2px solid rgba(140,140,140,0.4);
    }

    .icon {
        height: 100px;
        width: 100px;
    }

    .title {
        font-size: 1.05em;
    }

    .description {
        margin: 25px 0;
    }

    #about-name {
        margin: 14px;
        font-size: 1em;
    }

    #about-content {
        max-width: 575px;
        padding: 25px 50px;
    }

    button {
        bottom: 25px;
        border-top: 2px solid rgba(255,255,255,0.4);
        border-right: 2px solid rgba(255,255,255,0.4);
        border-bottom: 2px solid rgba(140,140,140,0.4);
        border-left: 2px solid rgba(140,140,140,0.4);
    }

    body > button:nth-of-type(1){
        left: 25px;
    }

    body > button:nth-of-type(2){
        left: 102px;
    }

    #back-button {
        right: 25px;
    }

    .border {
        height: calc(100% + 14px);
        width: calc(100% + 14px);
        border: 2px solid #FFFFFF;
    }

    /* project active */
    .project:active {
        border-top: 2px solid rgba(255,255,255,0.9);
        border-right: 2px solid rgba(255,255,255,0.9);
        border-bottom: 2px solid rgba(140,140,140,0.9);
        border-left: 2px solid rgba(140,140,140,0.9);
    }

    /* button active */
    button:active {
        border-top: 2px solid rgba(255,255,255,0.9);
        border-right: 2px solid rgba(255,255,255,0.9);
        border-bottom: 2px solid rgba(140,140,140,0.9);
        border-left: 2px solid rgba(140,140,140,0.9);
    }

    #back-button:active {
        transform: scale(1.05);
    }

}

@media screen and (min-width: 1024px) { 

    main {
        grid-gap: 25px;
        min-height: 600px;
        max-width: 525px;
        padding: 50px;
    }

    .project {
        border-top: 2px solid rgba(255,255,255,0.4);
        border-right: 2px solid rgba(255,255,255,0.4);
        border-bottom: 2px solid rgba(140,140,140,0.4);
        border-left: 2px solid rgba(140,140,140,0.4);
    }

    .icon {
        height: 110px;
        width: 110px;
    }

    .title {
        font-size: 1.05em;
    }

    .description {
        bottom: 0;
        left: 0;
        margin: 25px 40px;
        text-align: left;
        transform: translateX(0);
    }

    #about-name {
        margin: 10px 20px;
        font-size: 1em;
    }

    #about-content {
        max-width: 525px;
        padding: 50px;
    }

    button {
        border-top: 2px solid rgba(255,255,255,0.4);
        border-right: 2px solid rgba(255,255,255,0.4);
        border-bottom: 2px solid rgba(140,140,140,0.4);
        border-left: 2px solid rgba(140,140,140,0.4);
    }

    body > button:nth-of-type(1){
        right: 40px;
        bottom: 85px;
        left: auto;
    }

    body > button:nth-of-type(2){
        right: 40px;
        bottom: 25px;
        left: auto;
    }

    #back-button {
        top: 25px;
        right: 40px;
    }

    .border {
        height: calc(100% + 14px);
        width: calc(100% + 14px);
        border: 2px solid #FFFFFF;
    }

    /* project active */
    .project:active {
        border-top: 2px solid rgba(255,255,255,0.9);
        border-right: 2px solid rgba(255,255,255,0.9);
        border-bottom: 2px solid rgba(140,140,140,0.9);
        border-left: 2px solid rgba(140,140,140,0.9);
    }

    /* button active */
    button:active {
        border-top: 2px solid rgba(255,255,255,0.9);
        border-right: 2px solid rgba(255,255,255,0.9);
        border-bottom: 2px solid rgba(140,140,140,0.9);
        border-left: 2px solid rgba(140,140,140,0.9);
    }

    #back-button:active {
        transform: scale(1.05);
    }

}