html, body {
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: black;
    color: white;
    text-align: center;
    margin: 0;
    overflow-x: hidden;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    scrollbar-width: thin;
    scrollbar-color: rgb(255, 36, 69)  #151515;
    letter-spacing: 0.06rem;
}


body:has(.preview.active) {
    overflow: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

header {
    padding: 1.5rem 12%;
    background-color: #151515;
    top: 0;
    position: sticky;
    z-index: 1111;
}

.header-content {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    top: 0;
    position: sticky;
}

.header-content-title {
    font-size: 32px;
}

.person-details-header {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.header-content-about-me {
    font-size: 20px;
    color: white;
    text-decoration-color: white;
    text-decoration: none;
    white-space: nowrap;
}

.header-content-contact-me {
    font-size: 24px;
    background-color: rgb(255, 36, 69);
    color: white;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    margin-left: 1.5rem;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

.header-content-contact-me:hover {
    background-color: white;
    color: rgb(255, 36, 69);
}

.content-table-container {
    display: flex;
    justify-content: center;
    flex-flow: column;
    align-items: center;

}

.content-table {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(460px, 1fr));
    justify-content: center;
    gap: 3.5rem;
    margin: 3rem auto;
    width: clamp(76%, 1120px, 95%);
    transition: all 1s ease-in-out;
}

.content-table:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, black, transparent);
    pointer-events: none;
}

.content-table:not(.expanded) {
    max-height: 220vh;
    overflow: hidden;
}

.tile {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 95vw;
    height: auto;
    transform-origin: 100% 0;
    transition: all 0.3s ease-in-out;
    perspective: 1000px;
	perspective-origin: center top;
}

.tile .img-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transform: scale(1);
    transform-origin: 100% 0;
    transition: all 0.3s ease-in-out;
}

.tile .img-container img {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.tile .img-container:hover {
    transform: rotateX(3.5deg);
}

.tile .img-container .gradient {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    z-index: 1;

    transform: rotate(20deg);
    transform-origin: top right;

    width: 200%;
    height: 55%;

    opacity: 0.3;

    background-color: rgba(255, 255, 255, 0.1);
    transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    pointer-events: none;
}

.tile .img-container:hover .gradient {
    height: 100%;
    opacity: 1;
}

body:has(.preview.active) .tile img {
    display: none;
}

.tile .footer {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
}

.tile .footer .label {
    font-size: 24px;
    color: white;
    text-align: left;
    line-height: 25px;
}

.tile .footer .company {
    font-size: 15px;
    color: #3e3f3f;
    text-align: right;
    line-height: 15px;
}

.about-me {
    margin-top: 3rem;
    padding: 1rem 15% 2rem 15%;
    background-color: #151515;
}

.about-me h1 {
    font-size: 38px;
}

.about-me p {
    -webkit-user-select: text; /* Safari */
    -ms-user-select: text; /* IE 10 and IE 11 */
    user-select: text; /* Standard syntax */
    font-size: 20px;
    letter-spacing: 0.13rem;
}

.about-me p::selection {
    background-color: #6a6a6a8a;
}

.about-me .opinions {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    /* margin-bottom: 1rem; */
}

.about-me .opinion-block {
    background-color: #3b3b3b;
    margin: 1rem;
    padding: 0.7rem;
    width: 33%;
    height: 200px;
}

.about-me .opinion-block p {
    margin-bottom: 0;
}

.contact-me h1 {
    font-size: 46px;
}

.contact-me .contacts {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-me .contacts .twitter {
    padding: 0.5rem 1rem;
    background-color: #0682ca;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.contact-me .contacts .twitter:hover {
    background-color: white;
    color: #0682ca;
}

.contact-me .contacts .discord {
    padding: 0.5rem 1rem;
    background-color: #5639da;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.contact-me .contacts .discord:hover {
    background-color: white;
    color: #5639da;
}

footer {
    font-size: 12px;
    color: #3e3f3f;
}

footer p {
    padding-bottom: .5rem;
}

.switchers {
    margin-top: 3rem;
}

.switchers input[type="radio"] {
    display: none;
    margin: 0;
}

.content-table-container:not(:has(.expanded)) .show-more {
    background-color: white;
    color: black;
}

.switchers label, .show-more {
    padding: .5rem 1rem;
    background-color: black;
    color: white;
    cursor: pointer;
    border: 1px solid white;
    transition: all 0.3s ease-in-out;
    font-size: 24px;
    font-family: 'Black Bison', sans-serif;
}

.content-table-container:has(.expanded) .show-more {
    background-color: black;
    color: white;
}

.switchers label:has(input[type="radio"]:checked) {
    background-color: white;
    color: black;
    font-family: 'Black Bison', sans-serif;
}

.preview {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 3.5% 5%;
    display: none;
}

.preview.active {
    display: flex;
    z-index: 9999;
}

.preview .image-container {
    width: 90%;
    height: 80%;
    position: relative;
}

.preview .image-container img {
    width: 100%;
    height: auto;
}

.preview .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 1rem;
    cursor: pointer;
    color: white;
    font-size: 70px;
    border: none;
    background-color: transparent;
    font-family: 'Black Bison', sans-serif;
    transform: translate(50%, -55%);
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 88%;
    width: max-content;
    max-width: 300px;
    transform: translateX(-50%);
    background-color: #3e3f3f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s;
}

@media (max-width: 1360px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    } 
}

@media (max-width: 1024px) and (min-width: 769px) {
    .tile .label {
        font-size: 30px !important;
    }

    .tile .company {
        font-size: 20px !important;
    }
    .content-table {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 5%;
        margin: 3rem 1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
        position: static;
    }

    .header-content-contact-me {
        margin-left: 0;
    }

    .header-content-title {
        font-size: 24px;
        margin-bottom: .5rem;
        line-height: 30px;
        padding-top: 7px;
    }

    .person-details-header {
        flex-wrap: wrap;
    }

    .content-table {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 5%;
        margin: 3rem 1rem;
    }

    .switchers label {
        font-size: 18px;
        padding: 0.5rem;
    }

    .about-me, .contact-me {
        padding: 1rem 5% 2rem 5%;
    }

    .contact-me .contacts {
        flex-direction: column;
        gap: 1rem;
    }

    footer {
        text-align: center;
        padding: 1rem 5%;
    }

    .preview {
        padding: 2%;
    }

    .preview .image-container {
        height: fit-content;
        width: 96%;
        top: 50%;
        transform: translateY(-50%);
    }

    .preview .close {
        top: 7%;
        right: 5%;
        padding: 0 0.5rem;
        font-size: 40px;
    }

    .toast {
        left: 50%;
        transform: translateX(-50%);
    }
}
