@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background-color: #ffffff;
    color: #333;
}

h1, p {
    text-align: center;
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: black;
}

#project {
    font-family: 'Allura', cursive;
    font-size: 3em;
    margin: 20px 0;
    background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rgbText 5s ease infinite;
}

@keyframes rgbText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#table {
    border-spacing: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 600px;
}

#bg {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

#logo {
    width: 2.5rem;
    display: block;
    border-radius: 50%;
    padding: 0%;
}

#user {
    display: block;
    margin: 20px auto;
    width: 10rem;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

*[data-href] {
    cursor: pointer;
}

#rcorners1 {
    transition: transform .2s;
    border-radius: 25px;
    background: #ffffff;
    width: 25rem;
    height: 15px;  
    margin: 10px auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333;
    border: 1px solid #e0e0e0;
}

#rcorners2 {
    transition: transform .2s;
    border-radius: 25px;
    background: #ffffff;
    text-align: center;
    width: 12rem;
    height: 2rem;  
    margin: 5px auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    position: relative;
}

#rcorners2 span {
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rgbText 5s ease infinite;
}

#rcorners1:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#rcorners2:hover {
    transform: scale(1.017);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #333;
    text-shadow: none;
    font-weight: bold;
}

@media only screen and (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    #rcorners1 {
        width: 20rem;
    }
    #rcorners2 {
        width: 8rem;
    }
    #project {
        font-size: 2.5em;
    }
    #user {
        width: 8rem;
    }
}

/* Loading Animation */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.loader-circle:nth-child(1) {
    border-top-color: #ff6b6b;
    animation-delay: 0s;
}

.loader-circle:nth-child(2) {
    border-right-color: #4ecdc4;
    animation-delay: 0.5s;
}

.loader-circle:nth-child(3) {
    border-bottom-color: #45b7d1;
    animation-delay: 1s;
}

.loader-circle:nth-child(4) {
    border-left-color: #96ceb4;
    animation-delay: 1.5s;
}

.loader-text {
    color: #fff;
    font-size: 1.2em;
    margin-top: 20px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Hide content while loading */
.content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.content.visible {
    opacity: 1;
}

  