* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100%;
    width: 100%;
    font-size: 14px;
    color: black;
    -webkit-font-smoothing: antialiased;
}

html {
    height: 100%;
}

#root {
    width: 100%;
    height: 100%;
}

#preview_container {
    width: 100%;
    height: 100%;
    margin: auto;
    min-width: 300px;
}

.realpreview-content {
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: black;
    position: relative;
    overflow: auto;
}

.main-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    overflow: auto;
    position: relative;
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 800px;
    margin: auto;
    position: relative;
    padding: 0 5%;
}



.avatar-container {
    height: 96px;
    width: 96px;
    box-sizing: border-box;
    margin-bottom: 8px;
    cursor: pointer;
}

.avatar {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50px;
    border: 1px solid #E8E9ED;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.profile-name {
    margin-top: 8px;
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    width: 90%;
    white-space: pre-wrap;
    color: white;
}

.profile-desc {
    margin-top: 4px;
    text-align: center;
    word-break: break-all;
    width: 90%;
    white-space: pre-wrap;
    font-size: 14px;
    color: rgb(255, 255, 255);
}

.links-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 20px;
    margin-top: 14px;
}

.link-card {
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
}

.link-card-inner {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    color: rgb(94, 94, 94);
    min-height: 30px;
    padding: 7px 7px 7px 6px;
    transition: all 0.2s ease;
}

.link-card-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link-icon {
    display: flex;
    align-items: center;
}

.link-icon img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 24px;
}

.game-icon img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 4px;
    margin: 7px;
}

.link-title {
    padding: 7px 20px;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 18px;
    color: rgb(51, 51, 51);
    text-align: center;
}

.link-arrow {
    flex-shrink: 0;
    margin-left: 10px;
    width: 16px;
    padding: 8px;
    vertical-align: bottom;
}

.link-arrow i {
    font-size: 16px;
    color: rgb(94, 94, 94);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}


