@font-face {
    font-family: "Sanomat Grab Web";
    src: url("../fonts/Sanomat Grab Web-Regular TH.woff2");
    font-weight: 400;
  }
  
  @font-face {
    font-family: "Sanomat Grab Web";
    src: url("../fonts/Sanomat Grab Web-Medium TH.woff2");
    font-weight: 500;
  }
  
  @font-face {
    font-family: "Sanomat Grab Web";
    src: url("../fonts/Sanomat Grab Web-Bold.woff2");
    font-weight: 700;
  }

*
{
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body
{
    margin: 0;
    padding: 0;
}

#card-container
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: black;
    flex-flow: column;

}

.card
{
    position: relative;
    background-color: #58BC6B;
    margin: 0 auto;
    min-width: 350px;
    max-width: 700px;
    height: 700px;
    max-height: 900px;
    border: 1px black;
    border-radius: 15px;
    display: flex;
    align-items: center;
    flex-flow: column;
    z-index: 1;
}

.headline
{
    font-family: "Sanomat Grab Web";
}

h1.headline
{
    font-size: 22px;
    font-weight: 700;
    color: black;
    background-color: white;
    padding: 10px;
    text-align: center;
    display: block;
    position: absolute;
    top: 50px;
}

h2.headline
{
    font-size: 16px;
    max-width: 200px;
    font-weight: 500;
    color: white;
    text-align: center;
    display: block;
    position: absolute;
    top: 130px;
}

input[type=submit]
{
  font-family: "Sanomat Grab Web", sans-serif;
  font-weight: 500;
  background-color: #002E27;
  border: none;
  color: white;
  padding: 10px;
  text-decoration: none;
  margin: 0 auto;
  cursor: hand;
  border-radius: 20px;
  width: 100px;
  position: absolute;
  top: 320px;
  animation-name: button-bounce;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

input[type=submit]:active
{
    transform: scale(1.05);
}

@keyframes button-bounce 
{
    from {transform: translateY(0px)}
    to {transform: translateY(-5px)}
}

#progress-bar
{
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    z-index: 2;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}

.progress-bar-indicator
{
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background-color: white;
    margin: 0 5px 0 5px;
}

.progress-bar-indicator-active
{
    background-color: #58BC6B;
}


/* Card Sections */

#cover, #insights, #insights-transport, #insights-finance, #actions
{
    opacity: 100%;
    transition: opacity 2s ease-out;
    overflow: hidden;
}

#cover
{
    background: url('../images/map.png'), url('../images/mart.png'), url('../images/services.png'), url('../images/halftone-green.png'), linear-gradient(to bottom, #002E27 10%, #58BC6B 60%, white 90%, #002E27);
    background-position: -50% -15%, 125% 70%, center 110%, center 25%;
    background-repeat: no-repeat;
    background-size: 60%, 50%, 100%, auto 70%, auto;
}

#cover-logo
{
    position: absolute;
    top: 175px;
    max-width: 250px;
}

#cover-subhead
{
    top: 120px;
}

#cover-description
{
    position: absolute;
    top: 220px;
    max-width: 280px;
    font-family: "Sanomat Grab Web";
    font-weight: 500;
    color: white;
    font-size: 14px;
    text-align: center;
    padding: 15px;
    line-height: 24px;
}

#cover-description span
{
    background-color: #002E27;
    padding: 2px;
    border-bottom: 1px solid white;
}

#insights
{
    background: url('../images/food.png'), url('../images/curves.png'), url('../images/food-confetti.png'), url('../images/halftone-green.png'), linear-gradient(to bottom, #002E27 10%, #58BC6B 60%, white 90%, #002E27);
    background-position: center 140%, center 50%, center -10%, center 35%;
    background-repeat: no-repeat;
    background-size: 100%, 200%, 120%, auto 70%;
}

#insights-transport
{
    background: url('../images/transport.png'), url('../images/curves.png'), url('../images/transport-confetti.png'), url('../images/halftone-green.png'), linear-gradient(to bottom, #002E27 10%, #58BC6B 60%, white 90%, #002E27);
    background-position: center bottom, center 50%, center -10%, center 35%;
    background-repeat: no-repeat;
    background-size: 100% auto, 200%, 120%, auto 70%;
}

#insights-finance
{
    background: url('../images/finance.png'), url('../images/curves.png'), url('../images/finance-confetti.png'), url('../images/halftone-green.png'), linear-gradient(to bottom, #002E27 10%, #58BC6B 60%, white 90%, #002E27);
    background-position: center 100%, center 50%, center -10%, center 35%;
    background-repeat: no-repeat;
    background-size: 100%, 200%, 120%, auto 70%;
}

#actions
{
    background: url('../images/confetti.png'), url('../images/actions.png'), url('../images/halftone-green.png'), linear-gradient(to bottom, #002E27 10%, #58BC6B 60%, white 90%, #002E27);
    background-position: center -15%, center 100%, center 50%, center 35%;
    background-repeat: no-repeat;
    background-size: 120%, 120%, 120%;
}

.hidden
{
    opacity: 0;
    display: none;

}

/* Popups */

.popup
{
    display: flex;
    align-items: center;
    flex-flow: column;
    transition: top 0.5s;
    padding-top: 15px;
}

.more
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    cursor: hand;
}

.more i
{
    display: block;
    transition: transform 0.5s;
}

.dive-deeper
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    border-radius: 15px;
    background-color: white;
    font-family: "Sanomat Grab Web";
    font-weight: 500;
    padding: 5px;
    cursor: hand;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}

#dive-options, #transport-dive-options, #finance-dive-options
{
    margin-top: 50px;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

#insights-popup, #insights-transport-popup, #insights-finance-popup
{
    position: absolute;
    top: 620px;
    width: 100%;
    height: 500px;
    background-color: transparent;
}

.expanded
{
    background-image: linear-gradient(to bottom, transparent, white);
    /*background-color: rgba(255,255,255,0.8) !important;*/
    top: 420px !important;
}

.expanded .more i
{
    transform: rotate(180deg);
}

.expanded .dive-deeper 
{
    box-shadow: none;
}

.explore
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    width: 200px;
    background-color: #eeeeee;
    font-family: "Sanomat Grab Web";
    font-weight: 500;
    padding: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
    cursor: hand;
    font-size: 12px;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: scale 0.5s;
}

.explore:active
{
    transform: scale(1.05);
}

#insights-results, #insights-transport-results, #insights-finance-results
{
    position: absolute;
    top: -320px;
    width: 90%;
    height: 300px;
    background-color: white;
    transition: top 0.5s;
    z-index: 3;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}

#insights-results-content, #insights-transport-results-content, #insights-finance-results-content
{
    display: flex;
    font-family: "Sanomat Grab Web", sans-serif;
    font-weight: 400;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 15px;
    flex-flow: wrap;
}

#insights-results-content ul, #insights-transport-results-content ul, #insights-finance-results-content ul
{
    list-style-type: none;
    padding-inline-start: 0;
    margin: 0;
}

#insights-results-content li, #insights-transport-results-content li, #insights-finance-results-content li
{
    margin-bottom: 10px;
}

.expanded-insights-results
{
    top: 100px !important;
    opacity: 100% !important;
}

@keyframes insights-loading 
{
    from {color: black;}
    to {color: #58BC6B;}
}

.insights-results-load-indicator
{
    animation-name: insights-loading;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

#suggestions
{
    position: absolute;
    display: flex;
    font-family: "Sanomat Grab Web", sans-serif;
    font-weight: 400;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 280px;
    height: 200px;
    padding: 15px;
    flex-flow: wrap;
    top: 150px;
    color: white;
    background-color: rgba(255,255,255,1);
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}

#suggestions table
{
    border-collapse: collapse;
}

#suggestions td
{
    text-align: center;
    vertical-align: middle;
    padding: 10px;
    color: black;
    font-size: 14px;
}

#suggestions span
{
    background-color: #002E27;
    padding: 2px;
    border-bottom: 1px solid white;
    color: white;
}

#suggestions h1
{
    font-size: 16px;
}

.actions-icon
{
    font-size: 30px;
}

#suggestions input[type=submit]
{
    top: 180px;
    width: 150px;
    height: 50px;
    background-color: #d14f0e;
    white-space: normal;
}