/* Center all contents horizontally and vertically with fade-in effect */
body {
    display: -webkit-box;      /* Old Safari, Android browsers */
    display: -ms-flexbox;      /* IE10, IE11 */
    display: flex;             /* Modern browsers */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
    opacity: 0;                /* Initial invisible state for fade-in */
    transition: opacity 1.5s ease; /* Smooth fade-in transition */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.loaded {
    opacity: 1; /* When loaded, fade in the contents */
}

.logo-container {
    position: relative;
    display: inline-block;
    width: 150px;
    max-width: 40vw;
    height: auto;
    margin-bottom: 30px;
}

.logo-container img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    display: block;
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 3s linear infinite;
    box-sizing: border-box;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

h1 {
    font-size: 2.2em;
    color: #222;
    margin-bottom: 20px;
}

p {
    font-size: 1.1em;
    color: #555;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

#contact {
    font-size: 1em;
    color: #888;
}

#contact a {
    color: #3498db;
    text-decoration: none;
    position: relative;
    background-image: linear-gradient(#3498db, #3498db);
    background-size: 0% 2.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

#contact a:hover {
    background-size: 100% 2.5px;
}

@media (max-width: 500px) {
    h1 {
        font-size: 1.8em;
    }
    p {
        font-size: 1em;
    }
    #contact {
        font-size: 0.9em;
    }
}