/*
SIMPLIFIED BSD LICENSE

Copyright (c) 2008-2015 Susam Pal
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

  1. Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in
     the documentation and/or other materials provided with the
     distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


#unitLinks {
    /* #sidebar is 20% the width of #main. #unitLinks is within #content
     * which itself is 80% the width of #main. We want #unitLinks to be
     * 20% of the width of #main. Since #unitLinks is contained within
     * #content, #unitLinks needs to be 25% the width of #content, so
     * that it is 20% the width of #main. 25% of 80% is 20%. */
    /* width: 25%; */
    float: left;
    text-align: left;
}

#practicePanelWrapper {
    /* width: 75%; */
    float: right;
    text-align: center;
    display: none;
}
.practicePanelWrapper{
    
}
#noscriptWrapper {
    width: 75%;
    float: right;
    text-align: center;
}

#noscript {
    margin: 10% 0%;
    color: red;
    font-weight: bold; 
    border: 5px double red;
    padding: 1.5em;
    display: inline-block;
}

#unitLinks div {
    margin-bottom: 3px;
    text-align: center;
}

#subunitLinks {
    text-align: justify;
    height: 24px;
}

#subunitLinks div.stretch {
    width: 100%;
    border: 0;
}

#subunitLinks div {
    display: inline-block;
    text-align: center;
}

#alternateUnitLinks div {
    margin-right: 1em;
    width: 20%;
    text-align: center;
    display: inline-block;
}



#unitLinks div, #subunitLinks div, #alternateUnitLinks div {
    line-height: 30px;
    height: 30px;
    transition: all 0.1s linear;
    /* background: #e0d0f0; */
    border: 1px solid #807090;
    border-radius: 4px;
}
#unitLinks div:hover, #subunitLinks div:hover, #alternateUnitLinks div:hover{
    
    background: #3fbbc0;
    border: 1px solid #29797c
}

#unitLinks div a, #subunitLinks div a, #alternateUnitLinks div a{
    columns: #333;
}

#unitLinks div:hover a, #subunitLinks div:hover a, #alternateUnitLinks div:hover a{
    color: #fff;
}

#unitLinks div.selected,
#subunitLinks div.selected,
#alternateUnitLinks div.selected {
    color: #fff;
    background: #3fbbc0;
    border: 1px solid #29797c;
}

#practicePanel {
    display: inline-block;
    /* margin-top: 5%; */
}

#previousLink, #nextLink {
    width: 25px;
    display: inline-block;
    vertical-align: top;
    font-family: verdana;
}

#practicePane {
    display: inline-block;
}

#target {
    margin-top: 3%;
    height: 114px;
    font-family: monospace;
    display: inline-block;
    padding: 10px;
    font-size: 40px;
    line-height: 48px;
    padding-top: 30px;
}

#target, span.targetChar {
    border: 3px solid rgb(0, 119, 119);
    border-radius: 2px;
}

#feedbackPane {
    margin: 3% 0;
    overflow: hidden;
}

#statusPane {
    display: inline-block;
    width: 30%;
    text-align: left;
    vertical-align: top;
}

#progressPane {
    display: inline-block;
    width: 30%;
}

#resultPane {
    display: inline-block;
    width: 30%;
    text-align: right;
    vertical-align: top;
}

#status {
    color: #008000;
    font-weight: bold;
}

#restartLink {
    margin-top: 10px;
    visibility: hidden;
    border-radius: 5px;
}



#input {
    width: 95%;
}

#progressBar {
    width: 100%;
}

#guidePane {
    margin-top: 3%;
}

#guide {
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    text-align: justify;
}

/* State changes */
.error #target {
    background: #ff8888;
}

.completed,.error{
    flex: 1;
}


.completed #target, .completed #input {
    background: #dddddd;
}

.completed span.targetChar {
    border: 3px solid #dddddd;
}

.error #status {
    color: #ff0000;
}

#smiley {
    font-family: verdana;
}

#alternateUnitLinks {
    width: 95%;
    margin-top: 1%;
    display: inline-block;
}

#update {
    width: 80%;
}

#update a {
    margin-right: 2em;
}
