@font-face {
  font-family: 'miglianormal';
  src: url("../fonts/Miglia.ttf") format('ttf'), url("../fonts/Miglia.ttf") format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
    font-family: 'Roboto', sans-serif, arial;
    background-color: black;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    
    min-height: 100vh;
    justify-content: space-between;
}

h1 {
    font-family: 'miglianormal', 'Roboto', sans-serif, arial;
}

a {
    font-family: 'miglianormal', 'Roboto', sans-serif, arial;
    color: #ff284c;
    font-size: 1.25em;
    text-decoration: none;
    padding: 2px;
}

a:hover {
    background-color: #ff284c;
    color: white;
}

ol {
    line-height: 1.75em;
}

pre {
    margin: 25px 0;
}

form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 95%;
    margin: 0 auto;
}

textarea#styled {
	width: 100%;
	height: 66vh;
	border: 3px solid #3d3d3d;
	background-color: white;
	color: #ffffff;
	padding: 5px;
	font-size: 1.125em;
}

textarea::placeholder {
    color: black;
}

aside {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    margin: 30px;
    max-width: 400px;
}

footer {
    max-width: 90%;
    text-align: center;
    margin: 0 auto;
    font-size: 0.75em
}

#textarea {
    margin: 0 15px;
    width: 66%;
    height: 56px;
    resize: vertical;
}

.sidebar {
    width: 400px;
}

input[type=submit] {
    background-color: #ff284c;
    color: white;
    border: none;
    padding: 16px 32px;
    display: block;
    margin: 5px auto;
    font-family: 'miglianormal', 'Roboto', sans-serif, arial;
    font-size: 1.5em;
    text-align: center;
}

input[type=text] {
    margin: 0 15px;
    width: 66%;
}

label {
    text-align: right;
    display: block;
    width: 100%;
}

.unitBox {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
}

.noSelect {
    user-select: none;
}

.img {
    user-select: none;
    margin: 5px;
    position: relative;
    width: 150px;
}

.img-unit {
    margin-top: 15px;
}


.tooltip {
    position: relative;
    display: inline;
}



.tooltip .tooltiptext {
    visibility: hidden;
    min-width: 150px;
    background-color: white;
    color: #000;
    text-align: center;
    border-radius: 6px;
    padding: 5px 2px;

    /* Position the tooltip */
    position: absolute;
    right: 0;
    top: 25px;
    z-index: 1;
}

.tooltip .crowntip {
    top: -60px;
    right: -70px;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%;  /* At the top of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.img-crown {
    position: absolute;
    right: -20px;
    top: -120px;
    width: 48px;
    height: 56px;
}



.textBox {
    display: block;
    margin: 5px 15px;
    padding: 5px;
    line-height: 1.66;
}

@media only screen and (min-width: 600px) {
 
    form {
         justify-content: space-evenly;
     }
     
    textarea#styled {
         width: 550px;
     }
     
    footer {
        max-width: 450px;
    }
}

@media only screen and (min-width: 900px) {
    aside {
        display: block;
    }
}
