body {
    background: linear-gradient(to bottom right, #5d3a9b, #290a59);
    background-attachment: fixed;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    animation: fadeIn 3s;
}

.container {
    text-align: center;
}

@font-face {
    font-family: 'h1font';
    src: url('./font/font.ttf') format('truetype');
}

h1 {
    font-family: 'h1font', Arial, sans-serif;
    font-size: 5rem;
    margin: 0;
    background: linear-gradient(-5deg, purple, indigo, blue, red, green, orange, yellow);
    background-size: 100% 600%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 2s ease-out 1;
}

.mainheader h1 {
    animation: rainbow 3s cubic-bezier(0.33, 0, 0.68, 1) 1;
}

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



p {
    font-size: 1.1rem;
}

.icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.icon, .dropdown .icon {
    flex-direction: column;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
}

.icon {
    position: relative;
    display: inline-block;
}

.icon img {
    margin-bottom: 8px;
}

.label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4b2a75;
    color: white;
    padding: 5px;
    border: 1px solid white;
    border-radius: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.icon:hover .label {
    opacity: 1;
}


.dropdown-label {
    position: relative;
    display: inline-block;
}

.dropdown-label:hover .dropdown-content {
    display: block;
}

a:link {
    color: lightblue;
}

a:visited {
    color: lightblue;
}

a:hover {
    color: lightcoral;
}


.dropdown-content {
    position: absolute;
    background-color: #4b2a75;
    min-width: 160px;
    border-radius: 25px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border: 2px solid white;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.5s;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #694d9f;
}

.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@media only screen and (max-width: 768px) {
    h1 {
        font-size: 4rem;
    }

    p {
        font-size: 1rem;
    }

    /* .icons {
        flex-direction: column;
        align-items: center;
    } */

    .icon {
        margin-bottom: 15px;
    }

    .label {
        bottom: -30px; 
    }
}
