@font-face {
    font-family: 'RGFont';
    src: url('../fonts/rg_font_inst.ttf')  format('truetype');
}

a {
    text-decoration: none;
}

body,html {
    height: 100%;
}

html {
    overflow-y: scroll;
}

body {
    font-size: 16px;
    padding-bottom: 50px;
    color: #0d0d0d;
    word-wrap: break-word;
    font-family: RGFont, "Trebuchet MS", Helvetica, sans-serif;
    line-height: normal;
}

table, th, td {
    border: solid #a6a6a6 1px;
}

#mainForm input {
    border: 1px solid #03899C;
    background-color: #ebf7f9;
    border-radius: 3px;
}

#mainForm, #mainForm tr, #mainForm th, #mainForm td  {
    border: 1px solid #dbdbdb;
}


.lowRow td {
    height: 15px;
}

.highRow td {
    height: 45px;
}

.valueName {
    width: 50px;
}

.valueNumber {
    width: 150px;
}

.valueInput {
    width: 100%;
    text-align: right;
    font-size: 18px;
}

.symbols {
    width: 100%;
    height: 100%;
}

.judgeField {
    width: 50px;
}

table {
    font-size: 12px;
    margin-left:auto;
    margin-right:auto;
}

.shortInput {
    margin-left: 5px;
    margin-right: 5px;
    text-align: center;
    width:150px;
}

.fundamentalInput {
    width: 50px;
    text-align: center;
}

.totalInput {
    float: right;
    text-align: center;
    width: 100px;
    font-size: 24px;
    margin-right: 10px;
}

.middleInput {
    height: 25px;
    float: right;
    text-align: center;
    width: 220px;
}

.longInput {
    width: 250px;
}

.main, .detail {
    text-align: center;
}

#buttons {
    width: 250px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
}

#buttons button {
    margin-left: 5px;
    margin-right: 5px;
}

.penalties {
    vertical-align: top;
}

.penalties li {
    text-align: left;
}

.centered {
    text-align: center;
}

#mainForm {
    max-width: 1200px;
    margin-left:auto;
    margin-right:auto;
    border-radius: 5px;
    border: 1px solid #bfbfbf;
    margin-bottom: 50px;
}

.signatures td {
    border: 0;
}

.tabs {
    width:100%;
    height:100%;
    display: flex;
    flex-direction: column;
}

.tab-links:after {
    display:block;
    clear:both;
    content:'';
}

.tab-links li {
    margin:5px 5px;
    float:left;
    list-style:none;
}

.tab-links a {
    padding:9px 15px;
    display:inline-block;
    border-radius:3px 3px 0px 0px;
    background: #36BBCE;
    font-size:16px;
    font-weight:600;
    color:#333333;
    transition:all linear 0.15s;
}

.tab-links a:hover {
    background:#03899C;
    text-decoration:none;
    color: #fff;
}

li.active a, li.active a:hover {
		 background: #bfbfbf;
		 color: #333333;
	     }

#tabsNav {
    width: 100%;
}

.tab-content {
    padding:15px;
    border-radius:3px;
    box-shadow:-1px 1px 1px rgba(0,0,0,0.15);
    background:#fff;
    margin-top: 10px;
    overflow-y: scroll;
    flex-grow: 1;
}

li.active a  {
    outline: none;
}

.tab {
    display:none;
}

.tab.active {
    display:block;
}

#id01 {
    padding-top: 0;
}

#id01 .w3-modal-content {
    top: 0;
    width: 100%;
    height: 100%;
}

#elementsToInsert {
    margin-left: 10px;
    margin-right: 10px;
    width: 400px;
    height: 50px;
    font-size: 28px;
    text-align: center;
    border: 1px solid #03899C;
    background-color: #ebf7f9;
    border-radius: 3px;
    display: table-cell;
    vertical-align: middle;
    max-width: 100%;
}

#addElements {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

}

#addElements span, input, button {
    align-self: center;
}

#insertButton, #searchBtn, #pdfBtn {
    background-color: #1ACD1A;
}

#clearButton {
    background-color: #ff704d;
}

#insertButton, #clearButton {
    color: #0d0d0d;
    margin: 20px;
    border-radius: 3px;
    font-weight: bold;
}

.jumpDesc, .balanceDesc, .rotationDesc {
    max-width: 50px;
    text-align: left;
}

#jumpsTable, #balancesTable, #rotationsTable {
    font-size: 9px;
    width: 100%;
    text-align: center;
}

#jumpsTable img, #balancesTable img, rotationsTable img {
    width: 55px;
    height: 55px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#apparatusTable img {
    height: 25px;
    margin: 5px;
}

.highlight {
    background-color: red;
}

.symbolsInForm {
    font-size: 36px;
    width: 100%;
}

input {
    color: #0d0d0d;
    background-color: #fff;
}

.elementsTable, .elementsTable tr, .elementsTable th, .elementsTable td  {
    border: 2px solid #dbdbdb;
}

.elementsTable {
    font-size: 20px;
    margin-bottom: 20px;
}


.noBullets {
    list-style:none;
}

.penalties {
    width: 33.3%;
}


.editBtn {
    background-color: #67BFCB;
    width: 40px;
    text-align: center;
    font-size: 36px;
    position: relative;
    border-radius: 3px;
}

.default {
    cursor: default;
}
.pointer {
    cursor: pointer;
}


#mainHeading {
    font-size: 36px;
    padding: 10px;
    text-align: center;
}


#magicButtons {
    text-align:center;
}

#magicButtons button, #publishBtn, #pdfBtn{
    margin: 15px;
    background-color: #1ACD1A;
    border-radius: 3px;
    color: #0d0d0d;
    font-weight: bold;
}


#dateInput {
    width: 220px;
}

.logos {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: auto;
    margin-bottom: auto;
    border: 2px solid transparent;
}

.selectedLogo {
    border: 2px solid #0d0d0d;
}

.elementGroupDescription {
    font-size: 12px;
}

.elementsInFIGTable {
    font-size: 40px;
    display: inline-block;
    padding: 2px 10px;
}

.elementsInFIGTable:hover {
    cursor: pointer;
}

.w3-modal table {
    table-layout: fixed;
    width: 100%;
}

.w3-modal table td {
    word-wrap: break-word;
    padding: 10px;
    vertical-align: top;
}

input[type="radio"] {
    display:none;
}

input[type="radio"] + label
{
    display:inline-block;
    border: 2px solid transparent;
}

input[type="radio"]:checked + label
			    {
				display:inline-block;
				border: 2px solid  #0d0d0d;
			    }


body.modal-open {
    /* overflow: hidden; */
}

#modalButtons {
    text-align: center;
}

.mainFormTableCell {
    text-align: center;
}

.mainFormTableCell input{
    text-align: center;
}

#msgFromServer {
    margin-top: 10px;
    height: 20px;
    font-size: 14px;
    text-align: center;
    color: #e60000;
}

#saveStatus {
    width: 50px;
    height: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.25s linear;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

#apparatusChoice {
    text-align: center;
    font-size: 28px;
}

#apparatusChoice label {
    padding-left: 2px;
    padding-right: 2px;
    margin-left: 2px;
    margin-right: 2px;
    cursor: pointer;
}

#penaltyAndFinalScore {
    height: 100%;
}

#penaltyRight {
    vertical-align: top;
    padding: 0;
}

#finalPenalty {
    border-bottom: 1px solid #dbdbdb !important;
    height: 50%;
    padding-left: 5px;
    padding-top: 5px;
}

#finalScoreJudge {
    height: 50%;
    padding-left: 5px;
    padding-top: 5px;
}

#mainForm td span{
    padding-left: 2px;
}

input:invalid {
    border: 2px solid red;
    border-radius: 3px;
    outline: none;
}

.centered {
    text-align: center;
}

input[type="checkbox"] {

}

#signatures {
    display: none;
    text-align: center;
}

.signature {
    height: 50px;
    line-height: 50px;
    display: inline-block;
    width: 90mm;
}

.nameInput {
    width: 210px;
    float: right;
}

.difficulty {
}

.w3-container {
    height: 100%;
}

#navbar {
    border-width: 1px 0;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #015965;
}

#navbar ul {
    font-size: 18px;
    margin: 0;
}

#navbar li {
    display: inline;
}

#navbar a {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    color: #fff;
}

#navbar a:hover {
    background-color: #d4f7db;
    color: #015965;
}

h1, h2, h3 {
    text-align: center;
}

h2 {
    font-size: 20px;
}

.invisibleFormId {
    visibility: hidden;
}

#contact {
    font-size: 16px;
}

#contact, #search {
    text-align: center;
}

#recentChangesTable a, #searchResults a, #recentComments a {
    text-decoration: underline;
    padding: 15px 0;
    display: block;
}

#recentChangesTable, #searchResults, #recentComments {
    text-align: center;
    width: auto;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    white-space: pre;
    margin-bottom: 50px;
}

#recentChangesTable tr:nth-child(1) {background: #ccc;}
#searchResults tr:nth-child(1) {background: #ccc;}
#recentComments tr:nth-child(1) {background: #ccc;}

#recentChangesTable th, #recentChangesTable td, #searchResults th, #searchResults td,
#recentComments th, #recentComments td {
    padding: 10px;
}
.recentChangesApparatusIcon {
    font-size: 28px;
}

.namesInRecentChanges, .NFInRecentChanges {
    text-transform: uppercase;
}

#searchResults th {
    font-weight: bold;
}

input[name="query"] {
    font-size: 18px;
    margin:18px;
    width: 700px;
    text-align: center;
    height: 33px;
    border: 1px solid #03899C;
    background-color: #ebf7f9;
    border-radius: 3px;
}

.error {
    color: #e60000;
}

button, .button {
    display: inline-block;
    outline: 0;
    padding: 8px 16px;
    vertical-align: middle;
    text-decoration: none;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    margin-top: 18px;
    margin-bottom: 18px;
    cursor: pointer;
    text-transform: uppercase;
}

#insertButton, #printBtn, #saveBtn, #searchBtn, #publishBtn, #cloneBtn, .editBtn, #pdfBtn {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    border: solid 1px green;
}

.viewBtn{
    display: inline-block;
    outline: 0;
    padding: 8px 16px;
    vertical-align: middle;
    text-decoration: none;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    margin-top: 18px;
    margin-bottom: 18px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    border: solid 1px green;
    margin: 15px;
    background-color: #1ACD1A;
    border-radius: 3px;
    color: #0d0d0d;
    font-weight: bold;
    text-decoration: none !important;
    padding: 10px 15px !important;
}

#searchBtn {
    margin-top: 0;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    color: #0d0d0d;
    font-weight: bold;
}

#clearButton {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    border: solid 1px red;
}

button:hover, .button:hover {opacity: 0.8;}

#saveOptions {
    text-align: center;
    line-height: 1.5;
}

#saveOptions input[type="checkbox"] {
    margin: 0 10px;
}

#attention {
    visibility: hidden;
    color: #e60000;
}

#comments {
    margin-top: 30px;
}

#comments form span {
    font-weight: bold;
}

#commentForm {
    width: 400px;
    height: 100px;
    display: block;
    margin: 10px auto;
    border: 1px solid #03899C;
    background-color: #ebf7f9;
    border-radius: 3px;
    font-size: 22px;
}

#commenter {
    font-size: 20px;
    border-radius: 3px;
    border: 1px solid #03899C;
    background-color: #ebf7f9;
    text-align: center;
    margin: 10px auto;
    width: 400px;
    display: block;
}

.author, .notAuthor {
    text-align: center;
    margin: 10px;
    font-weight: bold;
    font-size: 20px;
}

.author {
    color: #00b300;
}

.notAuthor {
    color: #e60000;
}

#mainForm input[readonly='readonly'] {
    background-color: #e6e6e6;
    color: #0d0d0d;
    border: none !important;
}

#formId {
    width: 100%;
    font-size: 10px;
    text-align: center;
}

.greenRow {
    background-color: #d4f7db;
}

.whiteRow {

}

#NFinput, #yearInput  {
    text-align: center;
    margin-left: 2px;
    margin-right: 2px;
    width: 65px;
    height: 25px;
}

.comment {
    margin: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 600px;
    background-color: #5FC0CE;
    border: 1px solid #b6b6b6;
    border-radius: 3px;
    height:auto;
}

.comment:target {
    border: 2px solid green;
    box-shadow: 0px 0px 5px green;
}

.comment .date {
    border-bottom: 1px dashed #111;
}

#addComment {
    margin-top: 30px;
}

.commenterAndDate {
    padding-left: 5px;
    text-align: left;
}

.commentText {
    word-wrap: break-word;
    padding: 10px;
    background-color: #ebf7f9;
    font-size: 20px;
    /* white-space: pre; */
}

.valueWarning {
    background-color: #5F5F5F;
    color: #FFF;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    padding: 5px;
    display: none;
    z-index: 9999;
}

.judge {
    display: none;
}

.symbolsInPenalties {
    font-size: 24px;
}

.fundamental {
    padding-top: 10px;
    padding-left: 5px;
    padding-bottom: 10px;
    margin: 0;
}

#fundamentalsPercent {
    padding-left: 10px !important;
}

.formDataRow td{
    padding-left: 5px;
    padding-right: 5px;
}

.changeFontSize {
    font-size: 18px;
}

#penaltyAndFinalScore, #penaltyAndFinalScore tr, #penaltyAndFinalScore td {
    border: 0;
    font-size: 20px;
}


#penaltyAndFinalScore td {
    height: 90px;
    vertical-align:top;
}

#penaltyAndFinalScore {
    margin: 0;
    padding: 0;
    height: 100%;
}

table { border-collapse: collapse; }

.mainFormTableCell, .mainFormTableCell tr, .mainFormTableCell td {
    border: 1px solid #bfbfbf;
}

.nameInput {
    width: 100%;
    text-align: center;
}

.NFandYear div {
    padding-top: 1px;
    padding-bottom: 1px;
}

.plus {
    text-align: center;
    vertical-align: middle;
}

.blockOfOtherElements {
    border: 2px solid #dbdbdb;
    font-size: 14px;
    margin: 10px;
}

#tab5 > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > th:nth-child(1) {
    width: 100px;
    text-align: center;
}

#donate, #help {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 16px;
}

#donate div {
    margin-bottom: 20px;
}

#donateLink {
    text-shadow: 0px 0px 2px rgb(0, 204, 18);
}

#help table {
    margin: 10px;
    text-align: center;
    min-width: 400px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#help table th {
    background-color:  #ccc;
    padding: 10px;
}

#help table td {
    font-size: 20px;
}

#help table tr:nth-child(even) {background: #fff;}
#help table tr:nth-child(odd) {background: #f2f2f2;}

.elementDescription {
    font-size: 12px;
}

#helpTable > tbody > tr > td:first-child {
    font-size: 44px;
}

#helpTable td {
    padding: 2px;
}

#numberOfComments {
    text-align: center;
}

#numberOfComments a {
    border-bottom: 1px dashed grey;
}

.link {
    text-decoration: underline;
}

@media (max-width:601px){.w3-modal-content{margin:0;width:auto !important}}
@media screen and (max-width:992px){
    #searchResults, #recentComments {width:100%;}
    #navbar a {font-size:12px;}
}

@media print {
    * {margin:0;padding:0}
    @page {size: A4 portrait; margin: 10mm 0mm 10mm 0mm;}
    html, body {height: 100%; color: #000;}
    .editBtn {visibility: hidden;}
    select { border-style: none; display: inline; background-color: inherit; color: #0d0d0d;}
    input { border-style: none; display: inline;}
    #printBtn, #saveBtn, #msgFromServer, #saveStatus, #mainHeading, #navbar,#formIdHeading, #saveOptions, #comments, #magicButtons, .author, .notAuthor, #numberOfComments {
	display: none;
    }

    body {transform: scale(0.95);}
    table {page-break-inside: avoid;}
    .renameMe {margin-left: 20px;}

    .symbolsInForm {
	font-size: 22px;
    }

    #mainForm {
	width: 210mm;
    }

    .valueInput {
	font-size: 12px;
	border: 0 !important;

    }

    .changeFontSize {
	font-size: 14px;
    }

    .penalties {
	font-size: 10px;
    }

    .shortInput {
	text-align: left;
    }

    #mainForm input, #mainForm input[readonly] {
	border:none;
	background-color: white;
    }

    #saveStatus, #msgFromServer, #magicButtons {
	display: none;
    }

    .judge{
	display: block;
    }

    #signatures {
	display: block;
    }

    #mainForm, #mainForm tr, #mainForm th, #mainForm td  {
	border: 1px solid #000;
    }

    #penaltyRight td {
	border: 1px solid transparent;
    }

    #finalPenalty {
	border-bottom: 1px solid #000 !important;

    }

    .fundamentalInput {
	text-align: left;
    }

    tr.formDataRow:nth-child(1) td, tr.formDataRow:nth-child(2) td {
					padding-top: 10px;
					padding-bottom: 10px;
				    }

    tr.formDataRow:nth-child(1) > td:nth-child(1) > span:nth-child(1) {
	font-weight: bold;
	font-size: 14px;
    }

    #mainForm > tbody:nth-child(1) > tr:nth-child(3) td {
	padding-top: 2px;
	padding-bottom: 2px;
    }

    .valueRow td, .symbolsRow td {
	padding-top: 2px;
	padding-bottom: 2px;
    }

    .symbolsInForm {
	font-size: 24px;
    }

    .nameInput {
	text-transform: uppercase;
    }

    @-moz-document url-prefix() {
	.valueRow td, .symbolsRow td {
            padding: 0;
	}
    }
