@font-face {
    font-family: Astro;
    src: url(/assets/font/astro.ttf);
}

@font-face {
    font-family: Xolonium;
    src: url(/assets/font/xolonium-regular.ttf);
}

* {
    font-family: Xolonium, serif;
}

.astro-title {
    font-family: Astro, serif;
}

/*Scrollbar*/
/*Firefox*/
* {
    scrollbar-color: rgba(0, 255, 255, 0.5) rgba(0, 0, 0, 0.9);
    scrollbar-width: thin;
}

/*Other browers*/
*::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.9);
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(0, 255, 255, 0.5);
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: center / cover no-repeat fixed url("../img/bg.jpg"), url("../img/bg-title.png");
    background-blend-mode: hard-light;
}

button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

#nav-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 255, 255, 0.5);
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

#nav-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
}

#nav-bar ul li {
    float: left;
}

.nav-bar-element {
    padding: 14px 16px;
}

.nav-bar-link {
    display: block;
    color: #959595;
    text-decoration: none;
    text-align: center;
}

.nav-bar-link:hover {
    text-shadow: rgba(149, 149, 149, 0.5) 2px 2px;
}

.logo {
    margin-left: 86px;
}

.nav-r-start {
    margin-left: auto;
}

.nav-r-end {
    margin-right: 86px;
}

#nav-menu-mods {
    position: absolute;
    background-color: transparent;
    transform: translateX(-25%);
}

.nav-menu-element {
    background-color: rgba(0, 0, 0, 0.9);
    border-style: solid;
    padding: 7px 8px;
    margin: 7px 8px;
    border-color: rgba(0, 255, 255, 0.5);
    border-radius: 20px 4px 20px 4px;
}

.nav-menu-element {
    height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 0;
    border-width: 0;
    visibility: hidden;
}

#content {
    margin-top: 6%;
    margin-left: auto;
    margin-right: auto;

    padding: 2%;

    min-height: 56%;
    max-width: 1080px;

    color: #959595;

    background-color: rgba(0, 0, 0, 0.9);
    border-style: solid;
    border-width: 2px;
    border-color: rgba(0, 255, 255, 0.5);
    border-radius: 64px 16px 64px 16px;
}

.center-empty-box {
    margin-top: 6%;
    margin-left: auto;
    margin-right: auto;

    padding: 2%;

    max-width: 1080px;

    color: #959595;
}

#project-list {
    display: flex;
    flex-wrap: wrap;
}

#project-list div {
    padding: 2%;
    overflow: auto;
    max-width: 24%;
    margin: 2% auto;
}

#project-list div img {
    width: 100%;
    border-radius: 16px;
}

.box {
    color: #959595;
    background-color: rgba(0, 0, 0, 0.9);
    border-style: solid;
    border-width: 2px;
    border-color: rgba(0, 255, 255, 0.5);
    border-radius: 64px 16px 64px 16px;
}

footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 255, 255, 0.5);
    border-top-width: 2px;
    border-top-style: solid;
    margin-top: 6%;
}

footer div {
    display: inline-block;
    margin: 1% 10% 2%;
    vertical-align: top;
}

footer div ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer div ul li {
    margin-bottom: 8px;
}

footer div ul li p {
    color: #00afaf;
    font-weight: bold;
    margin-bottom: 0;
}

footer div ul li a {
    color: #959595;
    text-decoration: none;
}

footer div ul li a:hover {
    text-decoration: underline;
}

#end {
    width: 100%;
    padding-bottom: 1%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    color: #959595;
}

#end p {
    margin: 0;
}

#end p b {
    font-size: 0.75em;
}

.link {
    color: #90b5b5;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.font-70 {
    font-size: 0.70em;
}

#desc-img {
    width: 100%;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(0, 255, 255, 0.5);
    border-radius: 16px 64px 64px 16px;
    padding: 4px;
}

.title {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: rgba(0, 255, 255, 0.5);
    border-bottom-right-radius: 10em;
    margin-bottom: 12px;
}

.badges {
    padding: 2px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(0, 255, 255, 0.5);
    border-radius: 12px 6px 12px 6px;
    margin-bottom: 12px;
    margin-left: 18px;
}

html {
    height: 100%;
}

.spoiler {
    margin-left: 4%;
    margin-right: 8%;
}

.spoiler input[type="button"], .custom-button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    font-weight: bold;
    width: 25%;
}

.spoiler input[type="button"], .custom-button {
    padding: 4px;
    border-style: solid;
    border-width: 2px;
    border-radius: 64px;
    border-color: rgba(0, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.9);
    color: #959595;
    box-shadow: 0 3px #959595;
    transition-duration: 0.05s;
}

.spoiler input[type="button"]:active, .custom-button:active {
    box-shadow: 0 1px #4f4f4f;
    transform: translateY(2px);
    transition-duration: 0.05s;
}

.spoiler input[type="button"]:hover, .custom-button:hover {
    text-decoration: underline;
}

.spoiler-inner {
    padding: 4px;
    border-style: solid;
    border-width: 2px;
    border-radius: 16px 128px 16px 64px;
    border-color: rgba(0, 255, 255, 0.5);
}

.spoiler-inner {
    margin: 8px 0 0;
    padding: 0 6%;
}

.spoiler-p {
    margin: 0;
    height: 0;
}

.spoiler-a {
    color: #899da9;
    text-decoration: none;
}

.spoiler-a:hover {
    color: #79aec1;
    text-decoration: underline;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -10;
}

@media screen and (max-width: 1130px) {
    #nav-bar ul li {
        float: none;
    }
    #nav-bar ul {
        display: block;
    }
    .logo {
        margin-left: 0;
    }
    .nav-r-start {
        margin-right: 0;
    }
    .nav-r-end {
        margin-right: 0;
    }
    #nav-menu-mods {
        position: relative;
        transform: none;
    }
    button[class*="nav-bar-link"] {
        width: 100%;
    }
    .nav-menu-element {
        margin-left: 6%;
        margin-right: 6%;
    }

    .logo {
        font-size: 1.5em;
    }

    #content, .center-empty-box {
        display: inline-block;
        width: calc(96% - 4px);
    }
}