body {
    background: #00B4AB;
    color: #fff;
}

a {
    color: #2ec9f9;
}

.section {
    background: #fff;
    color: #333;

    padding: 10% 0;
    margin: 5% 0;
}

#logo-upload-input {
    position: absolute;
    left: -1000px;
    top: -1000px;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.error {
    color: red;
}

.header {
    padding: 2% 0 0 0;
    text-align: center;
}

    .header h1 {
        margin-bottom: 0.1em;
    }

#get-started {
    margin-top: 7%;
}

    #get-started button {
        margin-top: 30px;
    }

    #get-started img {
        display: block;
        margin: 0 auto 7% auto;
    }


.gen-row {
    display: none;
    text-align: center;
    color: #333;
}

.gen-container {
    position: relative;
    display: inline-block;
    background: #fff;

    box-shadow: 0px 3px 15px rgba(0,0,0,0.2);

    width: 90%;
    max-width: 900px;

    margin: 7% auto;
}

    .gen-container h3 {
        margin: 20px 0 0 0;
    }

.modal {
    display: none;
    background: #000;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 100;
}

    .modal .dialog {
        background: #fff;
        color: #333;
        width: 90%;
        max-width: 500px;
        margin: 5% auto;
        
    }

.edit-form {
    text-align: left;
    padding: 15px;
    margin: 0;
}
    .edit-form .edit-head {
        text-align: center;
    }
        .edit-form .edit-head h4 {
            margin-bottom: 0;
        }

    .edit-form label {
        margin-left: 0;
        padding-left: 0;
    }

    .edit-form .trait-table {
        margin-bottom: 0;
    }

        .edit-form .trait-table input {
            margin-bottom: 0;
        }
        
        .edit-form .trait-table .row-controls {
            text-align: center;
        }

        .edit-form .trait-table a {
            text-decoration: none;
        }

        .edit-form .trait-table a.remove-trait {
            color: red;
        }

    .edit-form .trait-controls {
        text-align: right;
        font-size: 80%;
        padding: 5px 0 25px 0;
    }

.marker-wrapper {
    padding: 0 5% 5% 5%;
}

.marker-image {
    background: red;
    width: 100%;
    height: auto;
}

.marker-options {
    color: #333;
}
    .marker-options .option {
        display: inline-block;
        padding: 5px;
        margin: 0;
    }

.marker-controls {
    margin-top: 20px;
    padding: 2%;
    background: #333;
    color: #fff;
}
    .marker-controls .button {
        margin-bottom: 0;
    }

.marker-loader {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    width: auto;
    height: auto;

    background: #fff url(../images/loader.gif) center center no-repeat;
}

input[type=radio] {
  position: absolute;
  visibility: hidden;
  display: none;
}

label {
  color: #333;
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  padding: 5px 20px;
  margin-bottom: 0;
}

input[type=radio]:checked + label {
  color: #fff;
  background: #33C3F0;
}

label + input[type=radio] + label {
  border-left: solid 3px #33C3F0;
}

.radio-group {
  border: solid 3px #33C3F0;
  display: inline-block;
  margin: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.footer {
    padding-bottom: 5%;
    text-align: center;
}


.gen-container .pedigree {
    padding: 2%;
}

    .gen-container #pedigree-header .logo {
        margin-top: 20px;
    }

.gen-container .generation {
    padding: 1% 0;
}

.gen-container .animal {
    display: inline-block;
    min-width: 100px;
    font-size: 90%;
    background: #efefef;

    cursor: pointer;
}

    .gen-container .animal .wrapper {
        padding: 10px;
        border: 1px solid #333;
    }

    .gen-container .animal .info {
        display: block;
        font-size: 70%;
        padding: 2px;
        background: #333;
        color: #fff;
    }

.gen-container .animal.newpair {
    margin-left: 15px;
}

.pedigree-output-wrapper {
    background: #fff;
    position: absolute;
    left: 5%;
    top: 5%;
    width: 90%;
    height: 90%;
    z-index: 5;
}

.pedigree-output-controls {
    position: absolute;
    top: 5%;
    right: 5%;
    padding: 20px;
    z-index: 10;
}

@media print {
    .page {
        display: none;
    }
    
    .pedigree-output-wrapper {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }

    .pedigree-output-controls {
        display: none;
    }
}


.certificate-wrapper {
    display: table;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #000;
}

.certificate {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    font-size: 10px;
    text-align: center;
    padding: 5%;
}

    .certificate .cert-header {
        padding: 1% 3% 3% 3%;
    }

        .certificate .cert-header .logo {
            width: 60%;
            height: auto;
        }

    .certificate .cert-footer {
        padding: 2.5%;
        text-align: center;
    }

    .certificate .pedigree {
        padding: 0;
    }

    .certificate .pedigree .generation {
        display: table;
        table-layout: fixed;
        width: 100%;
    }
        .certificate .pedigree .generation .animal {
            display: table-cell;

        }

            .certificate .pedigree .generation .animal .animal-wrapper {
                display: inline-block;
                border: 1px solid black;
                border-bottom: none;
                padding: 20px 0;
                width: 50%;
            }

            .certificate .pedigree .generation:first-child .animal .animal-wrapper {
                font-size: 15px;
            }

            .certificate .pedigree .generation:last-child .animal .animal-wrapper {
                width: 75%;
                font-size: 80%;
                width: 90%;
            }