@import url('https://fonts.googleapis.com/css?family=Shadows+Into+Light+Two');
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
	height: 100vh;
}

body {
    background-size: cover;
    background-position: center center;
    min-width: 320px;    
}

#console-wrapper {
	background: rgba(0,0,0,0.4);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
}

#console {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-height: 100vh;
    max-width: 1200px;
    margin: 0;
    padding: 1em;
    white-space: pre-wrap;
}

#console > li {    
    /* margin-bottom: 5px; */
    animation: fadein 1s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#console > li.faded {
    /*animation: fadeout .2s;*/
    animation: none;
    opacity: .25;
    filter: grayscale(100%);
    /*transition: opacity 1s, filter 1s;*/
}

#console .center {
    text-align: center;
}

#console ul {
    list-style-type: none;
}

#console ul.list-columns {
    columns: 3;
}

#console .compass-rose {
    background: url("../img/compass_rose.svg") no-repeat center center;
    background-size: 150px;
    margin-top: 25px;
}

#console .rose-center-wrapper {
    display: flex;
    justify-content: stretch;
    align-items: center;
}

#console .rose-west {
    text-align: right;
    flex: 1;
}

#console .rose-east {
    flex: 1;
}

#console .rose-center {
    text-align: center;
    width: 106px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 2px black,  0 0 4px black,  0 0 6px black,  0 0 8px black,  0 0 10px black,  0 0 12px black,  0 0 14px black,  0 0 16px black,  0 0 18px black,  0 0 20px black;
    margin: 10px;
}

#map {
    position: absolute;
    display: none;
    background: url("../img/map.png");
    background-size: cover;
    width: calc(100vw - 2rem);
    /*height: calc(100vh - 2rem);*/
    max-width: 1280px;
    overflow: hidden;
    
    padding: 2rem;
    margin: 2rem;
    opacity: 1;
    z-index: 100;
}

#close-map-button {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 2rem;
    color: grey;
    text-decoration: none;
    font-weight: bold;
    z-index: 101;
    text-shadow: 0 0 2px black;
}

.legend, .legend-responsive {
    display: flex;    
    width: 100%;
    text-align: center;
}

.legend-responsive {
    display: none;
}

.legend > div {
    flex: 1;
    align-items: center;
    /* aspect-ratio: 1 / 1; */
    flex-direction: column;
    display: flex;
}

.legend-responsive > div {
    flex: 1;
    text-align: center;
}

.legend img {
    width: 50%;
    height: auto;
    max-height: 50%;
    object-fit: contain;
    display: block;
    opacity: 0.4;
    filter: invert(1) brightness(1);
    transition: opacity 0.1s ease;
}

#console .legend {
    cursor: pointer;
} 

#console .legend-responsive > div:hover, #console .clickable:hover {
    transition: text-shadow 0.1s ease;
    text-shadow: 0 0 10px currentColor;    
    cursor: pointer;
    
}

.legend > div:hover img {
    opacity: 1;    
}

#console .console-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    resize: none;
    field-sizing: content;
}

.hint--cooling > img, .hint--cooling > div:first-of-type { opacity: 0.2; }
.hint--cooling { pointer-events: none; cursor: default !important; }
.hint-progress { width:100%; height:4px; background:rgba(0,0,0,.3); margin-top:.4rem; border-radius:2px; overflow:hidden; }
.hint-progress__bar { width:0; height:100%; background:#28a745; transition:width 120s linear; }

/* landscape mobile */
@media (min-width: 481px) {
    
    .keyboard-key {
        text-decoration: underline;
        text-transform: uppercase;
    }   

}

/* portrait mobile */
@media (max-width: 480px) {

  .legend .responsive {    
    display: none;    
  }

  .legend-responsive {
    display: flex;
  } 
  
   #map {   
        width: 100vw;             
        padding: 4rem 0;
        margin: 2rem 0;
    }

}

