.ship {
    transition: opacity 0.25s;
    transition: transform 0.25s;

    transform: scale(.9); 
    opacity: 0;
}

.ship.in {
    transform: scale(1); 
    opacity: 1;
}

.ship h4 {
    margin: 5px 0;
    padding: 10px 20px;
    background: #CD4A36;
    color: #efefef;
    margin-top: 15px;
    text-transform: capitalize;
}

.ship dt {
    padding: 0 20px;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    padding-top: 10px;
    border-top: 1px solid #fff;
}

.ship dd {
    border-bottom: 1px solid #ddd;
    padding: 2px 20px 5px 20px;
    margin-inline-start: 0;
    margin-top: 5px;
}

.card {
    width: 250px;
    margin: 20px;
    padding: 0;
    border-radius: 4px;
    color: rgba(0, 0, 0, 0.87);
    background-color: #f3ebe5;
    overflow: hidden;
}

.card:hover,
.card:focus {
    box-shadow: 0px 0px 5px 5px rgb(230, 41, 41);
    outline: none;
}

.card.nav:hover,
.card.nav:focus {
    box-shadow: 0px 0px 10px 10px rgba(41,164,230,1);
}

.card.nav {
    background: #29a4e6;
    opacity: 0.25;
}

.card.nav:hover,
.card.nav:focus {
    cursor: pointer;
    opacity: 1;

    /* https://stackoverflow.com/questions/20816739/image-div-flicker-on-hover-in-google-chrome */
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateX(0);
}

.card.nav img {
    width: 100%;
}

@media (max-width: 750px) {
    
    .card {
        width: 100%;
    }

    .card.nav {
        text-align: center;
    }

    .card.nav img {
        width: 50px;
        text-align: center;
        transform: rotate(90deg);
    }

}

.ships {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
}

.loading-container {
    color: wheat;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
}

.star-wars {
    display: flex;
    justify-content: center;
    height: 819px;
    perspective: 400px;
    color: #feda4a;
    font-size: 500%;
    font-weight: 600;
    letter-spacing: 6px;
    line-height: 150%;
    text-align: justify;
    transition: opacity 1s;
}

.isTransitioningOut {
    transition: opacity 0.5s;
    opacity: 0;
}

.crawl {
    position: relative;
    transform-origin: 50% 100%; /*  */
    animation: crawl 60s linear;
}

@keyframes crawl {
    0% {
      top: 50vh;
      transform: rotateX(20deg) translateZ(0);
    }
    100% { 
      top: -6000px;
      transform: rotateX(25deg) translateZ(-2500px);
    }
  }


  @media (max-width: 750px) {
    
    .loading-container {
      height: 100vh;
  }
  
  .star-wars {
      font-size: 200%;
  }
  

}

.app {
    min-height: 100vh;
    display: flex;
}

header {
    padding: 20px;
    width: 225px;
    flex-shrink: 0;
    position: fixed;
    height: 100%;
    color: #fff;
    display: flex;
}

header h1 {
    margin: 0;
    color: #eee;
    font-size: 16px;
    text-transform: capitalize;
    line-height: 30px;
    font-weight: bold;
    text-align: center;
    width: 200px;
}

header img {
    width: 75%;
}

.content {
    width: 100%;
    margin-left: 225px;
    position: relative;
}

@media (max-width: 750px) {
    
    .app {
        flex-direction: column;
    }
    
    header {
        width: 100%;
        position: relative;
        justify-content: center;
    }
    
    .content {
        width: 100%;
        margin-left: 0;
        position: relative;
    }

}

* {
    box-sizing: border-box;
}

html {
    background: #000;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url("/stars.jpg");
    overscroll-behavior: none;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

