body {
    margin: 10px;
    
    font-family: Source Sans Pro, sans-serif;
    font-size: 16px;

    background: #232A3E;
}

input, button {
    font-family: inherit;
}

a {
    color: #6d7aaf;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main,
.footer {
    width: 95%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    box-sizing: border-box;
    padding: 10px;
    
    font-size: 0.9em;
    text-align: center;
    
    color: #8892a3;
}

.footer span {
    margin: 0 10px;
}

.content {
    clear: both;
    padding-top: 10px;
}

.result,
.innerResult {
    background-color: #2D344E;
}

.result {
    box-sizing: border-box;
    width: 100%;
    padding: 20px;
    margin-top: 10px;
    overflow-x: auto;
    
    font-size: 12px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
}

.innerResult {
    float: left;
    padding: 10px;
}

.extras {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 20px -2px rgba(0,0,0,0.5) inset;
    background: rgba(0,0,0,0.2);
}

.extras .button {
    margin-top: 4px;
    margin-bottom: 4px;
    width: 100%;
}

.text, 
.button {
    box-sizing: border-box;
    padding: 14px 16px;
    margin: 0;
    
    font-size: 1em;
    
    border: none;
    border-radius: 4px;
}

.button {
    display: inline-block;
    vertical-align: middle;
    
    
    text-transform: uppercase;
    text-align: center;
    
    color: #f8f8f8;
    cursor: pointer;
    background: #37495f;
    
    transition: padding 0.2s;
}

.button:hover {
    background: #44566c;
}

.button.left {
    border-radius: 4px 0 0 4px;
}

.button.loading {
    padding-right: 50px;
    position: relative;
}

.loading:before, .loading:after {
	content: '';
  	display: block;
	box-sizing: border-box;
	position: absolute;
		
	border-radius: 100%;
	border-width: 2px;
	border-style: solid;
}

.loading:before {
	width: 26px;
	height: 26px;
    top: calc(50% - 13px);
	right: 12px;
	
	border-color: #66adc3 transparent;
	animation: spin 2s linear infinite;
}

.loading:after {
	width: 18px;
	height: 18px;
	top: calc(50% - 9px);
	right: 16px;
	
	border-color: transparent #66adc3;
	animation: spin 2s linear infinite reverse;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	
	50% {
		transform: rotate(180deg);
	}
		
	to {
		transform: rotate(360deg);
	}
}

.text.right {
    border-radius: 0 4px 4px 0;
}

.mainText,
.convert {
    height: 48px;
}

.mainText {
    width: 60%;
    float: left;

    border-radius: 4px 0 0 4px;
}

.convert {
    width: 40%;
    float: left;

    border-radius: 0 4px 4px 0;
    background: #cc4566;
}

.convert:hover {
    background: #cb5b76;
}

.wrapper {
    float: left;
    margin-right: 2em;
    margin-bottom: 1em;
    height: 2.5em;

    line-height: 2.5em;
    white-space: nowrap;
}

.result img {
    max-width: 2.5em;
    max-height: 2.5em;
    margin: 0 0.1em;
    vertical-align: middle;
}

/*
 Kerning letters
*/

.result .L,
.result .K {
    margin-left: -0.5em;
}

.result .H,
.result .E,
.result .U,
.result .F {
    margin-left: -0.3em;
}

.result .F {
    margin-right: 0em;
}

.result .H,
.result .G,
.result .U {
    margin-right: -0.3em;
}

.result .T {
    margin-left: -0.2em;
    margin-right: -0.2em;
}

.result .R,
.result .P {
    margin-left: -0.2em;
}

.result .A,
.result .V,
.result .I,
.result .Z {
    margin-left: -0em;
    margin-right: -0em;
}

@media screen and (min-width: 320px) {
  .result {
      font-size: 16px;
  }
}

@media screen and (min-width: 620px) {
    .result {
        font-size: 24px;
    }

    .mainText {
        width: 80%;
    }

    .convert {
        width: 20%;
    }
    
    .extras .button {
        width: auto;
    }
}
