body {
    text-align: center;
    font-family: sans-serif;
}

#content
{
    max-width: 300px;
    margin: auto;
}

#pinyin-input
{
    border: solid 2px #2af;
}

#current-character
{
    margin-top: 0;
    margin-bottom: 0;
    font-size: 100px;
}

@-webkit-keyframes shake
{
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(10px); }
    50% { transform: translateX(-10px); }
}

@keyframes shake
{
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(10px); }
    50% { transform: translateX(-10px); }
}


.shake
{
    animation-name: shake;
    animation-duration: 0.3s;
    animation-iteration-count: 1;
}

.unselectable
{
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.StyleButton
{
    padding: 10px;
    border-radius: 8px;
    border-style: solid;
    border-width: 2px;
    display: inline-block;
    margin: 2px;
}


.StyleButtonEnabled
{
    border-color: #2af;
    cursor: pointer;
}

.StyleButtonEnabled:hover
{
    background-color: #eee;
}


.StyleButtonDisabled
{
    color: #444;
    border-color: #444;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.StyleDropdownButton
{
    color: black;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    border-style: solid;
    border-width: 2px;
    border-color: #2af;
    display: inline-block;
    min-width: 180px;
    margin: 2px;
}

.StyleDropdownButton:hover
{
    background-color: #eee;
}

.StyleDropdownContainer
{
    position: relative;
    display: inline-block;
}

.StyleDropdownContent
{
    display: none;
    position: absolute;
    min-width: 220px;
    max-height: 500%;
    z-index: -1;
    overflow-y: scroll;
}

.StyleDropdownContent a
{
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.StyleDropdownContent a:hover
{
    background-color: #f1f1f1;
}


.StyleDropdownContainer:hover .StyleDropdownContent
{
    display: block;
}
