* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    color: rgb(0, 0, 0);
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    background-image: url('./Back.webp');
    background-repeat: repeat;
    background-size: 274px 422px;
    animation: scrollBackground 180s linear infinite;
    filter: brightness(0.4);
    z-index: -1;
}

@keyframes scrollBackground {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

.content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: rgb(255, 255, 255);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: vh;
}

.text-background {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.social-media-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 500px;
}

.social-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FEAC1B 30%, #1100ff 100%);
    color: white;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.wide {
    grid-column: span 2;
}

.social-box i {
    margin-right: 0rem;
    font-size: 2rem;
    transition: opacity 0.3s ease;
}

.social-box img {
    max-height: 40px;
    width: auto; 
    margin-right: 0.5rem;
    vertical-align: middle;
}

.social-box:hover {
    opacity: 0.85;
}

.discord {
    position: relative;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord .discord-text,
.discord i {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.discord .hover-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.discord:hover .discord-text,
.discord:hover i {
    opacity: 0;
}

.discord:hover .hover-text {
    opacity: 1;
}

.about-me-image {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .about-me-image {
        max-width: 120px;
        height: auto;
    }

    .social-media-container {
        grid-template-columns: 4fr;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: dropIn 0.5s ease-out;
}

@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-50%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background-color: white;
    color: black;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: rgb(255, 0, 0);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close:hover {
    color: red;
}
