.container { 
  position: relative;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box; }

.column,
.columns {
  width: 100%;
  float: right;
  box-sizing: border-box; }

/* For devices larger than 550px */
@media (min-width: 768px) {
  .column:first-child,
  .columns:first-child {
    margin-left: 0; 
  }

  .container {
    min-width: 1140px;
  }

  .one-third.column               { width: 30.6666666667%; }
  .two-thirds.column              { width: 65.3333333333%; }
  .one-half.column                { width: 50%; }
}


/* Base Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* NOTE
html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
  font-size: 62.5%; }
body {
  font-size: 1.7em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.6;
  font-weight: 400;
  font-family: "Lato", sans-serif;
  -webkit-font-smooth: antialiased;
  color: #222; }

/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-weight: 300; }
h1 { font-size: 3.0rem; line-height: 1.3;  letter-spacing: -.1rem;}
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h3 { font-size: 3.0rem; line-height: 1.3;  letter-spacing: -.1rem; }
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h5 { font-size: 1.8rem; line-height: 1.5;  letter-spacing: -.05rem; }
h6 { font-size: 1.5rem; line-height: 1.6;  letter-spacing: 0; }

@media (min-width: 768px) {
  h1 { font-size: 6.0rem; }
  h2 { font-size: 4.2rem; }
  h3 { font-size: 3.6rem; }
  h4 { font-size: 3.0rem; }
  h5 { font-size: 2.4rem; }
  h6 { font-size: 1.5rem; }
}

p {
  margin-top: 0;
  opacity: .7;
}


/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
  color: gray;

}
a:hover {
  color: #0FA0CE; 
}


/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-block;
  height: 38px;
  padding: 0 30px;
  color: #555;
  text-align: left;
  font-size: 17px;
  line-height: 38px;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #bbb;
  cursor: pointer;
  box-sizing: border-box; }
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
  color: #333;
  border-color: #888;
  outline: 0; }
.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary {
  color: #FFF;
  background-color: #33C3F0;
  border-color: #33C3F0; }
.button.button-primary:hover,
button.button-primary:hover,
input[type="submit"].button-primary:hover,
input[type="reset"].button-primary:hover,
input[type="button"].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type="submit"].button-primary:focus,
input[type="reset"].button-primary:focus,
input[type="button"].button-primary:focus {
  color: #FFF;
  background-color: #1EAEDB;
  border-color: #1EAEDB; }


/* Forms
–––––––––––––––––––––––––––––––––––––––––––––––––– */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  height: 38px;
  padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
  background-color: #fff;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box; }
/* Removes awkward default styles on some inputs for iOS */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; }
textarea {
  min-height: 65px;
  padding-top: 6px;
  padding-bottom: 6px; }
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border: 1px solid #33C3F0;
  outline: 0; }
label,
legend {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600; }
fieldset {
  padding: 0;
  border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
  display: inline; }
label > .label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal; }


/* Lists
–––––––––––––––––––––––––––––––––––––––––––––––––– */
ul {
  list-style: circle inside; }
ol {
  list-style: decimal inside; }
ol, ul {
  padding-left: 0;
  margin-top: 0; }
ul ul,
ul ol,
ol ol,
ol ul {
  margin: 1.5rem 0 1.5rem 3rem;
  font-size: 90%; }
li {
  margin-bottom: 1rem; }


/* Code
–––––––––––––––––––––––––––––––––––––––––––––––––– */
code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 4px; }
pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre; }


/* Tables
–––––––––––––––––––––––––––––––––––––––––––––––––– */
th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #E1E1E1; }
th:first-child,
td:first-child {
  padding-left: 0; }
th:last-child,
td:last-child {
  padding-right: 0; }


/* Spacing
–––––––––––––––––––––––––––––––––––––––––––––––––– */
button,
.button {
  margin-bottom: 1rem; }
input,
textarea,
select,
fieldset {
  margin-bottom: 1.5rem; }
pre,
blockquote,
dl,
figure,
table,
p,
ul,
ol,
form {
  margin-bottom: 2.5rem; }


/* Utilities
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.u-full-width {
  width: 100%;
  box-sizing: border-box; }
.u-max-full-width {
  max-width: 100%;
  box-sizing: border-box; }
.u-pull-right {
  float: right; }
.u-pull-left {
  float: left; }


/* Misc
–––––––––––––––––––––––––––––––––––––––––––––––––– */
hr {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
  border-width: 0;
  border-top: 1px solid #E1E1E1; }


/* Clearing
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Self Clearing Goodness */
.container:after,
.row:after,
.u-cf {
  content: "";
  display: table;
  clear: both; }

.blurred {
  opacity: .7;
}

.same-height {
  height: inherit
}

.imgPanel {
  height: 0;
  opacity: 0;
  transition: opacity 2s ease-out;
}

.imgPanel.active {
  background-size: cover;
  background-position: top;
  opacity: 1;
  height: 215px;
}

#main-panel {
  background-color: #EDE8E4;
  min-height: calc(100vh - 215px);
}

#fb-connect {
  width: 80%;
  max-width: 640px;
  height: 60px;
  line-height: 60px;
  background-color: #345190;
  border-color: #345190;
  color: white;
  margin: 0 10%;
  padding: 0;
  position: absolute;
  top: 185px;
  left: 0;
  text-align: center;
}

#fb-connect img {
  width: 55px;
  height: 55px; /* some weird reason, it overflows if height matches */
  float: left;
}

#results-panel {
  margin: 20px 10%;
}

#results-panel.down {
  margin-top: 50px;
}

@media (min-width: 400px) {
  .imgPanel.active {
    height: 315px;
  }

  #fb-connect {
    top: 285px;
  }
}


@media (min-width: 768px) {
  #main-panel {
    height: 100%;
  }

  #results-panel.down {
    margin-top: 0;
  }

  #results-panel {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 470px;
    margin: 0 auto;
  }
  #main-panel p {
    width: 395px;
  }
}

#img-panel-container {
  position: relative;
}

#img-panel-container.loading > .imgPanel {
  transition: none;
}

#img-panel-container.loading::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(#FFF,#FFF);
  opacity: .6;
}

#img-panel-container.loading::after {
  content: url("/images/images/loading/flag.gif");
  margin: 0 auto;
  display: block;
  position: absolute;
  bottom: 45px;
  text-align: center;
  width: 100%
}

@media (min-width: 768px) {
  #img-panel-container.loading::after {
    bottom: 50%;
  }
}


.clinton {
  background-image: url("/images/images/candidates/hClinton.jpg");
}

.carson {
  background-image: url("/images/images/candidates/bCarson.jpg");
}

.sanders {
  background-image: url("/images/images/candidates/bSanders.jpg");
}

.trump {
  background-image: url("/images/images/candidates/dTrump.jpg");
}

.kasich {
  background-image: url("/images/images/candidates/jKasich.jpg");
}

.rubio {
  background-image: url("/images/images/candidates/mRubio.jpg");
}

.cruz {
  background-image: url("/images/images/candidates/tCruz.jpg");
}

#result-square {
  display: hidden;
}

.share img {
  height: 47px;
  float: left;
}

.share a {
  text-decoration: none;
  color: white;
}

#tw-share {
  background-color: #059FF5;
  color: white;
}

#fb-share {
  background-color: #345190;
  color: white;
}

#desktop-share {
  display: none;
}

#mobile-share {
  display: block;
}

.share {
  height: 50px;
  line-height: 50px;
  padding: 0;
}

#mobile-share .share {
  width: 40%;
  margin-right: 5%;
}
  
.bottom-page a {
  text-decoration: none;
  font-size: 13px;
}

/* Larger than mobile */
@media (min-width: 400px) {}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 768px) {
  html, body {
    height: 100%;
  }

  .share {
    width: 130px;
    margin-top: 30px;
    margin-right: 15px;
    padding: 0;
  }

  #desktop-share {
    display: block;
  }

  #mobile-share {
    display: none;
  }

  .full-screen {
    padding:0;
    margin:0;

    /*
    position:fixed;
    top:0;
    left:0;
    */

    width: 100%;
    height: 100%;
    min-height: 720px;
  }

  #fb-connect {
    width: 260px;
    height: 50px;
    line-height: 50px;
    background-color: #345190;
    color: white;
    margin: 0;
    padding: 0;
    position: static;
    top: inherit;
    text-align: left;
  }

  #fb-connect img {
    width: 50px;
    height: 47px; /* some weird reason, it overflows if 50. */
    float: left;
  }

  .imgPanel.active {
    background-size: cover;
    background-position: center;
    height: 100%;
  }

  #result-square { 
    width: 90%;
    height: 43%;
    margin: 0 5%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
  }

  footer {
    position: relative;
    top: 50px;
  }

  .bottom-page {
    font-size: 13px;
  }

  .imgPanel.blurred {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
    transition: none;
  }

}
