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

a {
    color: rgb(0, 170, 0);
    text-decoration: none;
}

h1{
    text-align: center;
}

p{
    text-align: center;
}

#p1{
    text-decoration: underline;
}



nav {
    margin-top: 40px;
    text-align: center;
}

.underline:hover {
    color: rgb(0, 170, 0);
}

.underline {
    position: relative;
}

.underline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgb(0, 170, 0);
    transform-origin: bottom right;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.underline:hover::before {
    transform-origin: bottom left;
    transform: scaleX(1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background-color: rgb(6, 0, 10);
    font-family:'Fragment Mono', monospace;
    color: antiquewhite;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 5rem;
}
.heading {
    color: #eee;
    text-transform: uppercase;
}

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

.dropdown-content {
    border-radius: 18px;
    display: block;
    position: absolute;
    background-color: rgba(51, 51, 51, 1);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(-20px);
}


.dropdown-content a {
    color: rgb(0, 170, 0);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 18px;
}

.dropdown-content a:hover {
    border-radius: 18px;
    background-color: #575757;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


.dropdown:hover .underline {
    color: rgb(0, 170, 0);
}
