:root{
    --main-color: rgb(243, 31, 197);
    /* --hover-color: rgb(109, 218, 255); */
    --hover-color: rgb(145, 238, 58);
}

html {
    scroll-behavior: smooth;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes revealImg {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(6px) invert(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0) invert(1);
    }
}

body{
    background: linear-gradient(135deg, #000000, #0f011d);
    color: azure;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

header{
    margin: 5vh auto;
    width: 90vw;
    height: 90vh;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 2vw;
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

section{
    margin: 5vh auto;
    width: 90vw;
    min-height: 90vh;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 2vw;
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    z-index: 0;
}

header div{
    text-align: center;
    margin-top: 5vw;
}

section div{
    text-align: center;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes glow {
    0% { color: var(--main-color); }
    50% { color: var(--hover-color); }
    100% { color: var(--main-color); }
}

header div span{
    animation: glow 2s infinite;
}

h1{
    font-size: 4vw;
    margin: 0;
    opacity: 0;
    animation: reveal 0.8s ease forwards;
    animation-delay: 0.1s;
}

h2{
    font-size: 2vw;
    opacity: 0;
    animation: reveal 0.8s ease forwards;
    animation-delay: 0.3s;
}

header nav{
    width: 100%;
    opacity: 0;
    animation: reveal 0.8s ease forwards;
    animation-delay: 0.7s;
}

header nav ul{
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}

header nav ul li a{
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--main-color);
    font-size: 1.4vw;
    font-weight: bold;
    transform: scale(1);
    transition: color 0.3s, transform 0.3s ease;
    cursor: pointer;
}

header nav ul li:nth-child(4) a{
    color: white;
}

header nav ul li a::before{
    content: '';
    position: absolute;
    margin: 0 auto;
    left: 50%;
    bottom: -10%;
    transform: translate(-50%);
    z-index: -1;
    width: 0;
    height: 120%;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}

header nav ul li a:hover{
    color: black;
    transform: scale(1.5);
}

header nav ul li a:hover::before{
    background-color: var(--hover-color);
    width: 120%;
}

header nav ul li:nth-child(4) > a:hover::before{
    background-color: white;
}

section h2{
    animation: reveal 0.8s ease forwards;
    animation-timeline: view();
    animation-range: entry 30% cover 60%;
}

section h3 {
    text-align: center;
    font-size: 1.5vw;
    animation: reveal 0.8s ease forwards;
    animation-timeline: view();
    animation-range: entry 30% cover 60%;
}

section p{
    font-size: 1vw;
    animation: reveal 0.8s ease forwards;
    animation-timeline: view();
    animation-range: entry 30% cover 60%;
}

section ul{
    padding: 0;
    font-size: 2vh;
    animation: reveal 0.8s ease forwards;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
    width: 60%;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1vh;
    text-align: center;
}

section ul li{
    padding: 1vh 2vw;
}

section ul li:nth-child(odd){
    background-color: rgba(255, 255, 255, 0.1);
}

section ul li span{
    display: inline-block;
    padding: 5px;
    background-color: azure;
    color: black;
    font-weight: bold;
}

section img{
    width: 30vw;
    animation: revealImg 0.8s ease forwards;
    animation-timeline: view();
    animation-range: entry 30% cover 60%;
}

.goup{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    background-color: var(--main-color);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    width: 8vh;
    height: 8vh;
    display: none;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
    animation: reveal 0.8s ease forwards;
}

.goup a{
    width: 100%;
    height: 100%;
    color: black;
    font-size: 4vh;
    font-weight: bold;
    text-decoration: none;
    padding: 7.5vh 0 0 3.7vh;
}

.goup:hover{
    background-color: var(--hover-color);
    width: 10vh;
    height: 10vh;
}

.tablediv{
    width: 80%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

table{
    width: 100%;
    height: 25vh;
    border-collapse: collapse;
    color: azure;
    opacity: 0;
    animation: reveal 0.8s ease forwards;
    animation-timeline: view();
    animation-range: entry 30% cover 40%;
}

th, td{
    text-align: left;
    padding: 1vh 2vw 1vh 0.5vw;
}

th{
    color: var(--hover-color);
    font-size: 3vh;
}

td{
    font-size: 2vh;
    color: azure;
}

tr:nth-child(even){
    background-color: rgba(255, 255, 255, 0.1);
}

td a{
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--main-color);
    font-size: 2.5vh;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s ease;
    cursor: pointer;
}

td a::before{
    content: '';
    position: absolute;
    margin: 0 auto;
    left: -10%;
    bottom: -10%;
    z-index: -1;
    width: 0;
    height: 120%;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}

td a:hover{
    color: black;
}

td a:hover::before{
    background-color: var(--hover-color);
    width: 120%;
}

.morsebtn{
    width: fit-content;
    padding: 2vh;
    height: 8vh;
    background-color: azure;
    border: azure 0.5vh solid;
    border-radius: 8vh;
    cursor: pointer;
    display: flex;
    margin: 3vh auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    text-decoration: none;
    box-sizing: border-box;
    transform: scale(1);
    transition: 0.3s;
}

.morsebtn p{
    font-size: 2.5vh;
    margin: 0;
    color: black;
    font-weight: bold;
    animation: none;
    transition: 0.3s;
}

.morsebtn img{
    width: 5vh;
    height: 5vh;
    animation: none;
    filter: invert(1);
    transition: 0.3s;
}

.morsebtn:hover{
    background-color: black;
    transform: scale(1.2);
}

.morsebtn:hover p{
    color: azure;
}

.morsebtn:hover img{
    filter: invert(0);
}

::-webkit-scrollbar {
    width: 1vh;
    background-color: black;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--hover-color);
}

@media (max-width: 768px) {
    h1{
        font-size: 10vw;
    }

    h2{
        font-size: 7vw;
    }

    section h3{
        font-size: 5vw;
    }

    section p{
        font-size: 4vw;
    }

    header nav ul{
        flex-direction: column;
        align-items: center;
        gap: 3vh;
    }

    header nav ul li a{
        font-size: 5vw;
    }

    /* header nav ul li a:hover{
        color: var(--hover-color);
    }

    header nav ul li:nth-child(4) a:hover{
        color: azure;
    }

    header nav ul li a:hover::before{
        display: none;
    } */

    .tablediv{
        width: 100%;
    }

    th {
        font-size: 2.5vh;
    }
    td {
        font-size: 1.5vh;
    }
    td a{
        font-size: 2vh;
    }

    section img{
        width: 60vw;
    }

    section ul{
        width: 100%;
    }

    section ul li{
        font-size: 3vw;
    };
}