/* Flags CSS */

.flag-icon-background {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}

.flag-icon {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  width: 1.33333333em;
  line-height: 1em;
}

.flag-icon:before {
  content: "\00a0";
}

.flag-icon-au {
  background-image: url(../img/flags/au.svg);
}

.flag-icon-bg {
  background-image: url(../img/flags/bg.svg);
}

.flag-icon-br {
  background-image: url(../img/flags/br.svg);
}

.flag-icon-ca {
  background-image: url(../img/flags/ca.svg);
}

.flag-icon-ch {
  background-image: url(../img/flags/ch.svg);
}

.flag-icon-cn {
  background-image: url(../img/flags/cn.svg);
}

.flag-icon-cz {
  background-image: url(../img/flags/cz.svg);
}

.flag-icon-dk {
  background-image: url(../img/flags/dk.svg);
}

.flag-icon-gb {
  background-image: url(../img/flags/gb.svg);
}

.flag-icon-hk {
  background-image: url(../img/flags/hk.svg);
}

.flag-icon-hr {
  background-image: url(../img/flags/hr.svg);
}

.flag-icon-hu {
  background-image: url(../img/flags/hu.svg);
}

.flag-icon-id {
  background-image: url(../img/flags/id.svg);
}

.flag-icon-il {
  background-image: url(../img/flags/il.svg);
}

.flag-icon-in {
  background-image: url(../img/flags/in.svg);
}

.flag-icon-jp {
  background-image: url(../img/flags/jp.svg);
}

.flag-icon-kr {
  background-image: url(../img/flags/kr.svg);
}

.flag-icon-mx {
  background-image: url(../img/flags/mx.svg);
}

.flag-icon-my {
  background-image: url(../img/flags/my.svg);
}

.flag-icon-no {
  background-image: url(../img/flags/no.svg);
}

.flag-icon-nz {
  background-image: url(../img/flags/nz.svg);
}

.flag-icon-ph {
  background-image: url(../img/flags/ph.svg);
}

.flag-icon-pl {
  background-image: url(../img/flags/pl.svg);
}

.flag-icon-ro {
  background-image: url(../img/flags/ro.svg);
}

.flag-icon-ru {
  background-image: url(../img/flags/ru.svg);
}

.flag-icon-se {
  background-image: url(../img/flags/se.svg);
}

.flag-icon-sg {
  background-image: url(../img/flags/sg.svg);
}

.flag-icon-th {
  background-image: url(../img/flags/th.svg);
}

.flag-icon-tr {
  background-image: url(../img/flags/tr.svg);
}

.flag-icon-us {
  background-image: url(../img/flags/us.svg);
}

.flag-icon-za {
  background-image: url(../img/flags/za.svg);
}


/*
Fontello Custom Font
*/

@font-face {
  font-family: 'fontello';
  src: url('../font/fontello.eot?19036613');
  src: url('../font/fontello.eot?19036613#iefix') format('embedded-opentype'), url('../font/fontello.woff2?19036613') format('woff2'), url('../font/fontello.woff?19036613') format('woff'), url('../font/fontello.ttf?19036613') format('truetype'), url('../font/fontello.svg?19036613#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}


/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */


/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */


/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'fontello';
    src: url('../font/fontello.svg?19036613#fontello') format('svg');
  }
}
*/

[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.icon-star:before {
  content: '\f005';
}


/* '' */

.icon-cancel:before {
  content: '\f00d';
}


/* '' */

.icon-ok-circled:before {
  content: '\f05d';
}


/* '' */

.icon-plus:before {
  content: '\f067';
}


/* '' */

.icon-eye:before {
  content: '\f06e';
}


/* '' */

.icon-dollar:before {
  content: '\f155';
}


/* '' */

.icon-trash-empty:before {
  content: '\f1f8';
}


/* '' */


/* 
*
* main.css 
*
*/


/* main styles */

html {
  font-size: 18px;
  height: 100%;
}

body {
  height: 100%;
  font-family: 'Raleway';
  color: white;
  background-color: #545da9;
  background-image: -webkit-linear-gradient(top left, rgba(100, 255, 250, 0) 0%, rgba(100, 255, 250, .5) 75%, rgba(100, 255, 250, .5) 100%);
  background-image: -moz-linear-gradient(top left, rgba(100, 255, 250, 0) 0%, rgba(100, 255, 250, .5) 75%, rgba(100, 255, 250, .5) 100%);
  background-image: -o-linear-gradient(top left, rgba(100, 255, 250, 0) 0%, rgba(100, 255, 250, .5) 75%, rgba(100, 255, 250, .5) 100%);
  background-image: linear-gradient(to bottom left, rgba(100, 255, 250, 0) 0%, rgba(100, 255, 250, .5) 75%, rgba(100, 255, 250, .5) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}


/* button styles */

.effect {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  padding: 20px 0px;
  width: 200px;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  border-color: white;
}

.effect.effect-5 {
  -webkit-transition: all 0.2s linear 0s;
  transition: all 0.2s linear 0s;
}

.effect.effect-5:before {
  font-family: FontAwesome;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0px;
  height: 100%;
  width: 30px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0 50% 50% 0;
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-transition: all 0.2s linear 0s;
  transition: all 0.2s linear 0s;
}

.effect.effect-5:hover {
  text-indent: 30px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  border-color: white;
}

.effect.effect-5:hover:before {
  -webkit-transform: scale(1, 1);
  transform: scale(1, 1);
  text-indent: 0;
}


/* header styles */

.header {
  padding: 10px 0 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 50px;
}

.header h3 {
  font-weight: 100;
  font-family: 'Raleway';
  cursor: pointer;
}


/* intro styles */

#intro {
  padding: 0 50px;
}

.hero-icon {
  width: 80px;
  margin-bottom: 20px;
}

#intro p {
  font-family: 'Raleway';
  font-weight: 300px;
  font-size: 3em;
  padding: 20px;
  margin-bottom: 50px;
}

#intro .convert-btn:hover {
  background: green;
}

#intro .show-favorites:hover {
  background: #FF5800;
}

@media only screen and (max-width: 978px) {
  #intro {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 684px) {
  #intro {
    padding: 0 10px;
  }
  #intro p {
    font-size: 2em;
  }
}

@media only screen and (max-width: 492px) {
  #intro p {
    font-size: 1.5em;
  }
  button {
    display: block;
    margin: 0 auto;
    margin-bottom: 10px;
  }
}


/* conversion screen */

#conversion {
  margin-bottom: 50px;
}

#js-convert-form {
  margin: 0 auto;
}

#js-convert-form input {
  font-family: 'Source Code Pro';
  font-size: 1.2em;
  margin-bottom: 20px;
}

#js-convert-form input {
  color: white;
  border: none;
  border-bottom: 3px solid #c0c0c0;
  outline: none;
  background: transparent;
}

#js-convert-form input::placeholder {
  color: #c0c0c0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#js-convert-form input:focus {
  border-bottom: 3px solid white;
}

#js-convert-form a.btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  margin-left: 10px;
}

#js-convert-form a.btn:hover {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
}

#js-convert-form a .flag-icon {
  margin-right: 10px;
}

#favorite-btn:hover {
  background: green;
}

#results .show-favorites:hover {
  background: #FF5800;
}


/* Modal styles */

.modal-content {
  padding: 20px;
  font-size: 1em;
  font-weight: bold;
}

.modal-content .row {
  margin-bottom: 30px;
}

.modal-content .col {
  padding-left: 0;
  padding-right: 0;
}

.currency-label {
  background: gray;
  padding: 5px;
  margin-bottom: 15px;
  border-radius: 5px;
  display: inline-block;
  width: 110px;
}

.currency-label:hover {
  background: green;
  cursor: pointer;
}

.currency-label .flag-icon {
  margin-right: 10px;
}

button.close {
  float: none;
  height: 30px;
  width: 30px;
  background: gray;
  border: 1px solid darkgray;
  border-radius: 100%;
}


/* Favorites screen */

.fav-container {
  margin: 0 auto;
  width: 25%;
}

.delete-icon {
  margin-left: 10px;
}

.delete-icon:hover {
  color: #FF3F34;
  cursor: pointer;
}


/* Results screen */

#results .result-2 {
  margin-bottom: 30px;
}

.result-1 {
  margin-bottom: -5px;
}

.result-2 {
  font-size: 2em;
}

#favorites .convert-btn:hover {
  background: green;
}

#delete-favorites:hover {
  background: #c40233;
}


/* Button icons */

#favorite-btn:before {
  content: "\f067";
}

#delete-favorites:before {
  content: "\f00d";
}

.convert-btn:before {
  content: "\f155";
}

.show-favorites:before {
  content: "\f06e";
}
