body {
    background-color: #180614;
    font-family: "Exo 2", sans-serif;
}

a {
    color: #ccc;
}

main {
    height: calc(100vh - 100px);
}

circle {
    stroke-width: 1px;
    stroke: red;
}

projects-collection {
    display: block;
    width: 100vw;
    height: 500px;

}

projects-collection svg {
    width: 100%;
    height: 100%;
}

@keyframes flipProjectHex {
    from {
        fill-opacity: 0.7;
        rotate: 0;
        scale: 1;
        z-index: 0;
    }

    to {
        fill-opacity: 0;
        rotate: 60;
        scale: 1.3;
        z-index: 10;
    }
}

projects-collection g.project polygon {
    rotate: 0deg;
    scale: 1;

    transition: rotate 0.3s,
                scale 0.4s;

    cursor: pointer;
}

projects-collection g.project polygon.outline {
    rotate: 0deg;
    scale: 1;
    fill-opacity: 0.7;

    transition: fill-opacity 0.7s,
                rotate 0.3s,
                scale 0.4s;
}

projects-collection g.project.over polygon {
    rotate: 60deg;
    scale: 1.4;

    transition: rotate 0.3s ease-in-out,
                scale 0.4s;
}

projects-collection g.project.over polygon.outline {
    rotate: 60deg;
    scale: 1.4;
    fill-opacity: 0;
    transition: fill-opacity 0.8s,
                rotate 0.3s ease-in-out,
                scale 0.4s;
}

clipPath {
    transition: scale 0.4s,
                rotate 0.5s;
    rotate: 0deg;
}

clipPath.over {
    /* animation: flipProjectHex 0.5s 1; */
    /* animation-fill-mode: forwards; */
    fill-opacity: 0;
    rotate: 60deg;
    scale: 1.4;
    z-index: 10;

    transition: fill-opacity 0.3s,
                rotate 0.3s ease-in-out,
                scale 0.4s;
}

header {
    border-bottom: 1px solid #ff006e;
    padding-bottom: 1.5em;
}

nav#main {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    margin-left: 2em;
    margin-right: 2em;
}

nav#main a {
    display: inline-block;
    color: #04d9ff;
}

nav#main .home {
    font-size: 3em;
    color: #ff006e;
    text-decoration: none;
}

nav#main .rest {
    margin-left: auto;
    display: flex;
    flex-direction: row;
}

nav#main .rest a {
    font-size: 1.2em;
    align-content: center;
    margin-left: 1em;
}

nav#main .rest a:hover {
    text-decoration: none;
    color: white;
}

dialog {
    width: 66vw;
    background-color: #2a2a2a;
    color: white;
    border-color: #222;
}

dialog a:hover {
    text-decoration: none;
    color: #aaa;
}

dialog:open::backdrop {
  background-color: rgba(0,0,0,0.4);
  animation: backdrop-fade-in 0.7s ease-out forwards;
}

dialog {
    padding: 2.5em;
}

dialog ul {
    padding-left: 0;
}

ul {
    list-style-type: square;
}

ul.carousel {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    gap: 3em;
}

dialog#frendz ul,
dialog#about ul,
dialog#elsewhere ul {
    list-style-type: square;
}

dialog h1 {
    margin-top: 0;
    color: #999;
}

dialog .self-portrait {
    float: left;
}
