* {
    margin: 0;
    padding: 0;
}

body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
}

body {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

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

body {
    background-color: #010409;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 10rem;
    align-items: center;
    gap: 3rem;
}

#clock {
    padding: 15px;
    font-size: 6rem;
    color: #7573ff;
    font-weight: bold;
    text-shadow: 0px 0px 10px #7573ff;
}

.box-links {
    display: flex;
    gap: 5rem;
}

.boxes-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    padding: 2rem;
}

.box {
    background-color: #7573ff;
    border-radius: 15px;
    box-shadow: 0px 0px 10px #7573ff;
    width: 10rem;
    height: 10rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #010409;
    gap: 1rem;
    transition: 0.3s;
}

.box:hover {
    transform: scale(1.04);
}

.box i {
    font-size: 3rem;
}

.boxes-main a {
    text-decoration: none;
}

.boxes-other {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: rgba(255, 255, 255, 0.21);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.86);
}

.boxes-other a {
    text-decoration: none;
}

@media (max-width: 479px) {
    #clock {
        font-size: 3rem;
    }

    .box-links {
        grid-template-columns: repeat(1, 1fr);
    }

    .boxes-main {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    #clock {
        font-size: 3rem;
        margin-top: -27rem;
    }

    body {
        padding-top: 18rem;
    }

    .box-links {
        grid-template-columns: repeat(1, 1fr);
    }

    .boxes-main {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #clock {
        font-size: 3rem;
    }

    .boxes-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    #clock {
        font-size: 3rem;
    }

    .box-link {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1281px) and (max-width: 1400px) {
    #clock {
        font-size: 4rem;
    }

    .boxes-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1401px) and (max-width: 1500px) {
    #clock {
        font-size: 5rem;
    }

    .boxes-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1501px) and (max-width: 1919px) {
    .boxes-main {
        grid-template-columns: repeat(4, 1fr);
    }
}