* {
    box-sizing: border-box;
}

html {
    background-color: #B9D6F2;
    font-size: 16px;
    min-width: 300px;
    overflow-x: hidden;
    overflow-y: scroll;

    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
  
    font-family: ‘Segoe UI’, Candara, ‘Bitstream Vera Sans’, ‘DejaVu Sans’, ‘Bitsream Vera Sans’, ‘Trebuchet MS’, Verdana, ‘Verdana Ref’, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    background-color: #B9D6F2;
}

a {
    display: inline-flex;
    text-decoration: none;
    color: #FB4D3D
}
  
h2, h3 {
    margin:0;
    padding:0;
    padding-bottom:1.5rem;
    color: #FB4D3D;
}

form {
    accent-color: hsla(120, 100%, 50%, 0.482);
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    flex: 1;
}

.container {
    margin: 0 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: start;
    flex:1;
}

.header {
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1.5rem;
    font-size: 2.5rem;
    color: #FB4D3D;
}

.header h1 {
  display:flex;
  list-style: none;
  flex-direction: row;
  
  background-color: #061A40;
  color: #FB4D3D; 

  border: 2px dotted;
  border-radius: 6px;
  font-size: 1.5rem;
  padding: 1.25rem;
  margin:0; 

  
  box-shadow: 0 0.5em 1em -0.125em rgb(10 10 10 / 10%), 0 0 0 1px rgb(10 10 10 / 2%);
}

.header h1 {
  display: block;
  color: #FB4D3D;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 24px;
}

.header h1 a:hover {
  background-color: gold;
}

.box {
    background-color: #061A40;
    border: 2px dotted;
    border-radius: 4px;
  
    width: fit-content;
    height:fit-content;
    padding: 1.5rem;
    margin: 0 auto;
}

  .center_segment {
    background-color: #061A40;
    color: #FB4D3D;
    flex: 0 1 auto;
    margin: 1rem;
    padding: 1.5rem;
}
  
  .left_segment {
    background-color: #061A40;
    color: #FB4D3D;
    flex: 0 1 auto;
    margin: 1rem;
    padding: 1.5rem;
}
  
  .right_segment {
    background-color: #061A40;
    color: #FB4D3D;
    flex: 1 2 auto;
    margin: 1rem;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.grid {
  display: flex;
  justify-content: space-evenly;
  flex-flow: wrap;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

.grid img {
  width: 100%;
  height: 100%;
}

.footer {
    flex-shrink: 0;
    padding: 1rem;
    background-color: #061A40;
    color: #FB4D3D;
    border: 2px dotted;
    font-size: 1.2rem;
    font-weight: 600;
}
  
  .footer a {
    color: gold;
    text-decoration: underline;
}
  
  
  .footer a:hover {
    
    background-color: hsla(0, 0%, 90%, 0.15);
    
    color: rgb(246, 169, 93);
    text-decoration: none;
}

form input {
      
    width: 100%;
    width: -moz-available;          
    width: -webkit-fill-available;  
    width: fill-available;

    
    margin-bottom: 1rem;
    height: 2rem;
    border-radius: 4px;
}

form label {
  width: 100%;
  width: -moz-available;          
  width: -webkit-fill-available;  
  width: fill-available;
  align-items: flex-start;

  display: block; 
  margin-bottom: 0.5rem;
}

@media only screen and (max-width: 736px){
  
    .container {
      background-color: #B9D6F2;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .right_section{
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
    }
}

/* MAP STYLES */
#map {
    display: block;
    width: 500px;
    height: 480px;
    border: 2px dashed rgb(99, 99, 99);
    margin-bottom: 1rem;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

  .lds-ellipsis_hidden {
    display: hidden;
}

  .lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
  .lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}
  .lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}
  .lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}
  .lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}
  @keyframes lds-ellipsis1 {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes lds-ellipsis3 {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
  }
  @keyframes lds-ellipsis2 {
    0% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(24px, 0);
    }
}