@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&display=swap');

html, body {
    width: 100%;
    height: 100%;
}

body {
    background-color: hsl(0deg, 12%, 5%);
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.main {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(180deg, rgba(18,3,3,1) 0%, rgba(39,6,6,1) 31%, rgba(0,0,0,0) 100%);
    left: 0px;
    right: 0px;
    gap: 30px;
    z-index: 999;
}

.navbar.list-open {
    background: none;
    background-color: hsl(0deg, 12%, 8%);
}

.navbar-logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 0;
}

.navbar-logo {
    width: 115px;
    margin-right: 30px;
}

.navbar-buttons {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

@media (max-width: 750px) {
    .navbar-buttons {
        display: none;
    }
    
    .navbar {
        position: absolute;
    }
}

.list-open .navbar-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: 0px;
    top: 88px;
    left: 0px;
    right: 0px;
    padding: 20px 20px;
    background-color: hsl(0deg, 12%, 10%);
}

.navbar-button-border {
    border: 2px solid rgb(255, 141, 141);
    display: flex;
    flex-direction: column;
}

.navbar-button {
    border: 2px solid transparent;
    margin: 2px 4px;
    background: none;
    font-size: 18px;
    color: white;
    padding: 0px 15px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-align: center;
    padding-bottom: 3px;
    /* transition: background-color ease-in 0.05s; */
}

.list-open .navbar-button {
    padding: 8px 20px;
}

.navbar-button.icon {
    width: 20px;
    padding: 6px 8px;
    margin: 2px 2px;
}

.navbar-button-border.icon {
    display: none;
    margin-left: auto;
}

@media (max-width: 750px) {
    .navbar-button-border.icon {
        display: block;
    }
}

.list-open .navbar-button-border.icon {
    display: block;
}

.navbar-button.selected {
    margin: 2px;
}

.navbar-button:hover, .navbar-button.selected {
    background-color: #9f0000;
    /* border-color: rgb(255, 141, 141); */
}

.page {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
}

.background-image {
    width: 100%;
    position: absolute;
    z-index: -2;
    filter: brightness(0.8);
    background-attachment: fixed;
}

@media (max-width: 900px) {
    .background-image {
        width: 200%;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .background-image {
        top: -100px;
        width: 350%;
        left: 50%;
        transform: translateX(-50%);
    }
}

.background-image.offset {
    top: -50px;
}

.home-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.35) 100%);
}

.home-top-center {
    display: flex;
    flex-direction: column;
    padding-top: 25%;
    padding-left: 20px;
    padding-right: 20px;
    font-family: 'Mayak', sans-serif;
    align-items: center;
    gap: 20px;
    color: rgb(255, 27, 27);
    text-align: center;
}

@media (max-width: 800px) {
    .home-top-center {
        padding-top: 35%;
    }
}

.home-top-title {
    font-size: 56px;
    text-shadow: 0px 0px 10px #000000;
}

.home-top-subtitle {
    font-size: 30px;
    text-shadow: 0px 0px 8px #000000;
}

@media (max-width: 600px) {
    .home-top-title {
        font-size: 40px;
        text-shadow: 0px 0px 10px #000000;
    }
    
    .home-top-subtitle {
        font-size: 28px;
        text-shadow: 0px 0px 8px #000000;
    }
}

.home-top-source {
    margin-left: auto;
    margin-bottom: 10px;
    margin-right: 10px;
    text-decoration: none;
    color: rgba(204, 204, 204, 0.59);
}

.home-top-source:hover {
    text-decoration: underline;
}

.page-heading {
    font-family: 'Mayak', sans-serif;
    background-color: hsl(0deg, 12%, 8%);
    padding: 10px 80px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.386);
    z-index: 1;
}

@media (max-width: 800px) {
    .page-heading {
        padding: 10px 60px;
    }

    .page-heading {
        padding: 10px 40px;
    }
}

.page-heading.padded {
    margin-top: 88px;
}

.page-heading-text {
    font-size: 44px;
    background: linear-gradient(0deg, rgba(221, 0, 0, 1) 0%, rgba(174, 0, 0, 1) 100%);
    color: transparent;
    -webkit-background-clip: text;
}

@media (max-width: 800px) {
    .padded .page-heading-text {
        display: none;
    }
}

.page-content {
    background-color: hsl(0deg, 12%, 6%);
    display: flex;
    flex-direction: column;
    padding: 0px 80px;
    color: white;
    flex: 1;
}

.page-content.no-padding {
    padding: 0px 40px;
}

.page-center {
    background-color: hsl(0deg, 12%, 10%);
    padding: 20px 60px;
    padding-bottom: 40px;
    flex: 1;
}

@media (max-width: 800px) {
    .page-content {
        padding: 0px;
    }

    .page-center {
        padding: 20px 40px;
        padding-bottom: 40px;
    }
}

.page-content h1 {
    margin: 20px 0px;
    font-family: 'Mayak', sans-serif;
    font-size: 34px;
    color: rgb(255, 50, 50);
    margin-bottom: 10px;
}

.page-content p {
    font-size: 17px;
    color: hsl(0deg, 12%, 85%);
    margin-top: 10px;
    margin-bottom: 0px;
}

.page-content a {
    color: hsl(0, 61%, 45%);
}

.stats-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
    gap: 20px;
}

.stats-list-entry {
    background-color: hsl(0deg, 12%, 15%);
    padding: 15px 10px;
    border-radius: 5px;
    flex: 1;
    text-align: center;
}

.stats-list-value {
    font-family: 'Mayak', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
    color:rgb(255, 50, 50);
}

@media (max-width: 800px) {
    .stats-list {
        flex-direction: column;
    }

    .stats-list-value {
        font-size: 28px;
    }
}

.map-viewport {
    display: flex;
    position: relative;
    flex: 1;
}

.map-canvas {
    background-color: rgb(48, 48, 48);
    position: absolute;
}

.map-info {
    background-color: hsl(0deg, 12%, 10%);
    z-index: 1;
    position: absolute;
    right: 0px;
    top: 0px;
    padding: 20px 20px 20px 40px;
    height: 100%;
    width: 300px;
}

.map-info-close {
    filter: invert(54%) sepia(0%) saturate(1646%) hue-rotate(240deg) brightness(100%) contrast(81%);
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 26px;
    width: 18px;
}

.map-info-close:hover {
    filter: invert(54%) sepia(0%) saturate(1646%) hue-rotate(240deg) brightness(140%) contrast(81%);
}

.map-info-title {
    margin: 10px 0px;
    font-family: 'Mayak', sans-serif;
    font-size: 28px;
    color: rgb(255, 50, 50);
    margin-top: 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.map-info-marker {
    background-color: rgb(0, 0, 176);
    border: 2px solid white;
    width: 13px;
    height: 13px;
    transform: rotate(45deg);
    margin: 0px 5px;
}

.map-info-subtitle {
    color: hsl(0deg, 12%, 90%);
    font-size: 20px;
    margin-bottom: 15px;
}

.map-info-name {
    color: hsl(0deg, 12%, 70%);
    font-size: 14px;
    margin-bottom: 4px;
}

.map-info-value {
    color: hsl(0deg, 12%, 90%);
    margin-bottom: 15px;
}

.map-info-create_blockage {
    background-color: hsl(0, 100%, 34%);
    font-family: 'Manrope', sans-serif;
    color: white;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 8px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.map-info-create_blockage:hover {
    border-color: hsl(0, 100%, 67%);
}

.map-info-create_blockage-icon {
    border: 2px solid white;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
}

.map-info-form {
    display: flex;
    flex-direction: column;
}

.map-info-input {
    background-color: hsl(0deg, 12%, 5%);
    font-family: 'Manrope', sans-serif;
    border: 2px solid transparent;
    padding: 6px 10px;
    border-radius: 5px;
    color: white;
    outline: none;
    margin-bottom: 15px;
}

.map-info-input:hover {
    border-color: hsl(0deg, 12%, 15%);
}

.map-info-input:focus {
    border-color: hsl(0, 100%, 34%);
}

.map-info-input.desc {
    resize: none;
    height: 150px;
}

.map-info-submit {
    background-color: hsl(0, 100%, 34%);
    font-family: 'Manrope', sans-serif;
    color: white;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 8px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

.map-info-submit:hover {
    border-color: hsl(0, 100%, 67%);
}

.map-legend {
    background-color: hsl(0deg, 12%, 10%);
    position: absolute;
    left: 10px;
    bottom: 10px;
    border-radius: 5px;
    z-index: 1;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-legend-entry {
    color: hsl(0deg, 12%, 80%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.map-legend-color {
    width: 10px;
    height: 10px;
    border: 1px solid black;
    border-radius: 5px;
}

.map-legend-coord {
    color: hsl(0deg, 12%, 50%);
    margin-top: 8px;
}

@media (max-width: 800px) {
    .map-legend {
        background: none;
        pointer-events: none;
        padding: 0;
    }
    
    .map-legend-entry {
        font-size: 15px;
    }

    .map-legend-coord {
        display: none;
    }
}

.map-info-highway {
    width: 24px;
    height: 24px;
    position: relative;
}

.hwicon-back-x {
    position: absolute;
    width: 24px;
    height: 4px;
    top: 10px;
    background-color: black;
}

.hwicon-back-z {
    position: absolute;
    width: 4px;
    height: 24px;
    left: 10px;
    background-color: black;
}

.hwicon-front-x {
    position: absolute;
    width: 24px;
    height: 2px;
    top: 11px;
    background-color: var(--color);
}

.hwicon-front-z {
    position: absolute;
    width: 2px;
    height: 24px;
    left: 11px;
    background-color: var(--color);
}

.footer {
    padding: 50px 80px 30px;
    background-color: hsl(0deg, 12%, 6%);
    background-color: black;
    display: flex;
    flex-direction: row;
    gap: 80px;
}

.footer-lists {
    display: flex;
    flex-direction: row;
    gap: 80px;
}

@media (max-width: 550px) {
    .footer {
        gap: 60px;
    }

    .footer-lists {
        gap: 60px;
    }
}

@media (max-width: 480px) {
    .footer-lists {
        flex-direction: column;
    }
}

.footer-logos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-list-title {
    color: hsl(0deg, 12%, 90%);
}

.footer-list-option {
    color: hsl(0deg, 12%, 65%);
    text-decoration: none;
}

.footer-list-option:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 10px 80px;
    background-color: black;
    color: hsl(0deg, 12%, 50%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media (max-width: 800px) {
    .footer {
        padding: 50px 40px 30px;
    }

    .footer-bottom {
        padding: 10px 40px;
    }
}

@media (max-width: 1000px) {
    .footer-bottom {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }
}