:root {
    --shadow-offset: 0;
    --shadow-blur: 20px;
    --shadow-spread: -3px;
    --shadow-color: rgba(189, 139, 180, 0.486);

    --tint-color: 197, 153, 190; 
    --tint-opacity: 0.1;

    --frost-blur: 6px;

    --noise-frequency: 0.008;
    --distortion-strength: 77;

    --outer-shadow-blur: 24px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0f0e0e;
    overflow: hidden;
    cursor: url('cursor/cursor.png'), auto;
}

::selection {
    background: rgba(133, 110, 129, 0.25);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #0f0e0e;
    color: rgba(133, 110, 129, 0.486);
}

#profile {
    position: absolute;
    display: flex;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;

    width: 70%;
    max-width: 500px;

    height: 70%;
    max-height: 350px;
    
    padding: 25px 70px;
    gap: 15px;
    border-radius: 30px;

    /* liquid glass https://github.com/archisvaze/liquid-glass */

    background-color: rgba(var(--tint-color), var(--tint-opacity));
    filter: url(#glass-distortion);
    backdrop-filter: blur(var(--frost-blur));
    
    isolation: isolate;
    -webkit-backdrop-filter: blur(var(--frost-blur));
    -webkit-filter: url("#glass-distortion");

    
    box-shadow:
        inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
    background-color: rgba(var(--tint-color), var(--tint-opacity));

    overflow: hidden;
}

#name {
    font-size: 280%;
    font-family: 'Montserrat', sans-serif;
    
    margin: 0;
    z-index: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.678);
    font-weight: 900;
}

@media (pointer: coarse) {
  #profile {
    width: 59%;
    height: 26%;
    max-width: 90%;
    max-height: none;
  }
  #name {
    font-size: 230%;
  }
}

#avatar {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 35%;
    max-height: 35%;

    margin-bottom: 15px;
}

#speed {
    position: fixed;
    width: 100%;
    height: 100%;
    opacity: 0.05;

    object-fit: cover;
    transition-duration: 0.3s;
    z-index: -1;
    border-radius: 30px;
}

#my-games {
    position: absolute;
    bottom: 1px;
    right: 8px;

    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 70%;
    gap: 4px;

    text-align: right;
    white-space: nowrap;

    transition-duration: 0.3s;

    font-size: 100%;
    cursor: url('cursor/click.png'), pointer;

    z-index: 3;
}

#my-games svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition-duration: 0.3s;
}

#pfp {
    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;
    
    border-radius: 50%;
    border: 4px solid rgba(202, 106, 165, 0.301);
    object-fit: cover;

    opacity: 0.8;
}

#pfp-status {
    position: absolute;
    bottom: 1px;
    right: 1px;

    width: 25%;
    height: 27%;
    background-color: #4CAF50;
    border-radius: 50%;

    box-shadow: 0 0 20px rgba(76, 175, 80, 0.9);
}

#links svg {
    width: 40px;
    height: 40px;
    fill: white;
    cursor: pointer;
    transition-duration: 0.3s;

    cursor: url('cursor/click.png'), pointer;
}

#links svg:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

#notification {
    bottom: 10px;
    right: 10px;
    position: fixed;
    z-index: 100;
    font-weight: 500;

    background-color: #9e2626;
    border-radius: 12px;

    color: white;
    text-align: center;

    max-width: 80%;
    opacity: 1;
    visibility: visible;
    padding: 1px 25px;

    transition: visibility 0.3s ease, opacity 0.3s ease;
}

#notification.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#profile {
    opacity: 1;
    visibility: visible;

    transition-duration: 0.8s;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#profile.hidden {
    visibility: hidden;
    opacity: 0;

    transform: translateX(-50%);
}

#games {
    display: flex;
    position: fixed;

    width: 100%;
    height: 100%;
    background-color: #0f0e0e;

    z-index: 2;
    border-radius: 30px;
    opacity: 0.8;

    transition-duration: 0.3s;
    flex-direction: column;
    align-items: center;
}

#games.hidden {
    opacity: 0;
    pointer-events: none;
}

#games-list {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 18px;
    padding: 20px 0px;

    width: 95%;
    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;
}

.game {
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background-color: #4c465085;

    transition-duration: 0.3s;
    display: flex;

    width: 90%;

    flex-direction: row;
    align-items: center;
    text-align: left;

    gap: 10px;
    padding: 15px;

    text-decoration: none;
    color: #fff;

    font-weight: 700;
    font-size: 110%;
}

.game:hover {
    transform: scale(1.02);
}

.play-button {
    background-color: #26389e;
    border: none;
    color: white;
    padding: 6.5px 22px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    margin-left: auto;
    font-family: 'Montserrat', sans-serif;

    box-shadow: 0 0 20px rgba(0, 39, 231, 0.401);

    border-radius: 16px;
    cursor: url('cursor/click.png'), pointer;
    transition-duration: 0.3s;
}

.play-button:hover {
    background-color: #1e2c7c;
    transform: scale(1.1);
}

.game-info {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.game-info p {
  margin: 0;
}

.game-icon {
    width: fit-content;
    height: fit-content;

    margin-right: 5px;

    max-width: 70px;
    max-height: 70px;

    border-radius: 15px;
    object-fit: cover;
}

#games-arrow {
    transition-duration: 0.3s;
}

#games-arrow.opened {
    transform: rotate(180deg);
}

#my-games:hover #games-arrow {
    opacity: 0.7;
    transform: rotate(180deg);
}

#games-text {
    transition-duration: 0.3s;
    opacity: 1;
}

#games-text.hidden {
    opacity: 0;
}

.link {
    cursor: url('cursor/click.png'), pointer;
} 