body {
  margin: 0;
  height: 100vh;
  font-family: 'Playfair Display', serif;
}

html body canvas {
  display: block;
}

.storage-messaging {
    position: absolute;
	border-radius: 10px;
    padding: 20px;
    width: 500px;
    font-weight: bold;
    color: black;
    margin-left: calc(50% - 250px - 380px/2);
    margin-right: auto;
    left: 0;
    right: 0;
    top: 25%;

    display: flex;
    align-items: center;
}

.storage-messaging.storage-error {
    background-color: #fff6f6;
    border: 2px solid #e0b4b4; 
    color: #9f3a38;
}

.storage-messaging.storage-success {
    background-color: #fcfff5;
    color: #2c662d;
}

html body .storage-messaging-icon {
    flex: 0 0 auto;
    font-size: 3em;
    width: auto;
    line-height: 1;
    margin-right: 0.6em;
}

.storage-messaging-content {
    flex: 1 1 auto;
}

.storage-messaging-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.5em;
}

html body .storage-messaging-message {
}



.storage-loading-indicator {
  position: absolute;
  z-index: 1000;
  background-color: #e5e5e5;
  color: black;
  opacity: 0.8;
  color: white;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storage-loading-indicator > div {
  max-width: 400px;
  flex: none;
  text-align: center;
  color: black;
}

.storage-loading-indicator i {
  font-size: 5em;
}

.storage-loading-indicator p {
  font-size: 2em;
}

.fence-controls {
    overflow: auto;
    background-color: white;
    border-left: 1px solid black;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.controls-section {
    min-height: 150px;
    padding: 1em;
}

.controls-section-outer {
    flex-grow: 1;
}

.controls-section > .controls-section-inner {
    /*
    padding: 15px;
    */
}


.controls-section-bottom {
    padding: 15px;
}

.controls-section-bottom button {
    padding: 10px 15px;
}

.rangeslider {
    margin: 20px 0;
}

.movement-controls {
    position: absolute;
    bottom: 15px;
    right: 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

html body .movement-controls button.ui.button:last-child {
    margin-right: 0;
}

@media screen and (max-width: 875px) {
    body .movement-controls button.ui.button {
        font-size: 1.5em !important;
        padding: 8px !important;
    }
}


.camera-controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.stats-element {
    position: absolute;
    top: 10px;
    left: 10px;
}
html body .movement-controls button:hover {
    opacity: 1;
}

html body .movement-controls button {
    font-size: 1.8em !important;
    padding: 10px !important;
    opacity: 0.8;
}


.section-text-details {
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.5em;
}

.element-button-container {
    margin-top: 0.75em;
}

html body .element-button-container > button.ui.button.small {
    margin-bottom: 5px;
}

.element-button-container p {
    margin: 0;
    padding: 0;
    margin-bottom: 0.25em;
    font-size: 1.1em;
    font-weight: bold;
}

html .ui.table.gates-table td,
html .ui.table.gates-table th, 
html .ui.table.elements-table td,
html .ui.table.elements-table th { 
    padding: 0.6em;
}


.builder-prices {
    display: none;
}

body {
    min-width: 0 !important;
}

.builder-maintenance-mode {
    width: 100vw;
    height: 100vh;
    background-color: white;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.builder-maintenance-mode .content {
    margin: 0 auto;
}

.builder-viewport-error {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 10000;
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.builder-viewport-error .content,
.builder-maintenance-mode .content {
    max-width: 80%;
}

.builder-viewport-error .content h1,
.builder-maintenance-mode .content h1 {
    font-size: 1.5rem;
}

.builder-viewport-error .content img,
.builder-maintenance-mode .content img {
    max-width: 75%;
    max-height: 150px;
}

/* New CSS For the builder */
.builder-outer-container-screenshot {

}

.builder-outer-container-screenshot .builder-inner-canvas {
    width: 100% !important;
}


.builder-outer-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    min-height: 100%;
}

.builder-inner-canvas {
    width: calc(100% - 380px);
}

.builder-inner-controls {
    width: 380px;
    min-width: 380px;
}

@media screen and (max-width: 1000px) {

    .builder-inner-canvas {
        width: calc(100% - 300px);
    }

    .builder-inner-controls {
        width: 300px;
        min-width: 300px;
    }

    html body .movement-controls {
        right: 320px;
    }

    html body .ui.elements-table, 
    html body .ui.gates-table {
        font-size: 0.9em;
        white-space: nowrap;
    }

    html body .ui.elements-table .ui.icon.button.mini, 
    html body .ui.gates-table .ui.icon.button.mini {
        padding: 4px;
    }

    html body .builder-sections .accordion .active.content {
        padding: 0.5em 0.5em 1.5em;
    }
}










/* Responsive CSS for popup fields */

html body .ui.form .field:last-child, .ui.form .fields:last-child .field {
    margin-bottom: 1em;
}

html body .builder-popup-form {
    width: 400px;
}

html body .builder-popup-form .field {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

html body .two-fields-mobile .field {
    width: 50%;
}

html body .two-fields-desktop, 
html body .two-fields-mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0em -0.5em 0em;
}

html body .ui.form.builder-popup-form > .field {
    margin: 0em -0.5em 0em;
    margin-bottom: 1em;

}


/* Special styles for the lower height displays */
@media screen and (max-height: 749px) {

    html body .ui.form.builder-popup-form input,
    html body .ui.form.builder-popup-form select {
        padding: 5px 10px;
        font-size: 13px;
    }

    .builder-hide-for-mobile {
        display: none;
    }

    html body .two-fields-mobile {
    }

    /*
    .four-fields-mobile {
        display: flex;
        margin: 0em -0.5em 0em;
    }
    */

    html body .four-fields-mobile .field {
        width: 25%;
    }

}

/* Special styles for the larger height displays */
@media screen and (min-height: 750px) {
    html body .builder-popup-form {
        width: 200px;
    }

    .four-fields-mobile {
        margin: 0em -0.5em 0em;
    }


    html body .two-fields-mobile .field {
        width: 100%;
    }

    html body .two-fields-desktop .field {
        width: 50%;
    }

    /*
    html body .two-fields-desktop .field {
        width: 50%;
    }
    */
}

.builder-logo {
    position: absolute;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    top: 0px;
    left: 0px;
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.7);
    padding: 5px 15px;
    border-bottom-right-radius: 5px;
    box-shadow: 6px 6px 24px -4px rgba(0,0,0,0.36);
}

.builder-logo img {
    max-height: 50px;
    display: block;
    margin-right: 15px;
}

.builder-logo p {

}

@media screen and (max-width: 750px) {
    html body .builder-logo {
        display: none;
    }
}



.welcome-tabs {
    margin-top: 1em;
}

html body .ui.segment[class*="bottom attached"]:last-child {
    margin-bottom: 1rem;
}

.welcome-modal .content .description ol > li {
    margin-bottom: 5px;
}

html body .builder-logo img.builder-screenshot-logo {
    display: none;
}

html body.builder-body-screenshot .builder-logo img.builder-inner-logo {
    display: none;
}

html body.builder-body-screenshot .builder-logo img.builder-screenshot-logo {
    display: block !important;
    max-height: 150px;
}


html body.builder-body-screenshot .builder-logo p {
    display: none;
}

html body.builder-body-screenshot .builder-logo img {
    margin-right: 0;
}

.modal-2d-hide-checkbox {
    float: left;
    padding-top: 5px;
}

.welcome-email-hide-checkbox {
    float: left;
    padding-top: 5px;
}

html body .contact-form .two.fields {
    margin-bottom: 0;
}

html body .ui.form.builder-popup-form > .create-section-wall-fields {
    margin-bottom: 0.5em;
}

html body .ui.form.builder-popup-form > .create-section-wall-fields-info {
    margin-bottom: 1em;
}


.builder-drawings {
    position: absolute;
    right: 380px;
    top: 0;
    /*
    background-color: rgba(255,255,255,0.7);
    border-bottom-left-radius: 5px;
    box-shadow: 6px 6px 24px -4px rgba(0,0,0,0.36);
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    */
}

.builder-drawings > ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    padding: 0;
    margin: 0 10px;
    /*max-width: 600px;*/
    max-width: calc(100vw - 320px - 380px);
    justify-content: flex-end;
}

@media screen and (min-width: 750px) and (max-width: 1000px)  {
    html body .builder-drawings {
        right: 300px;
    }

    html body .builder-drawings > ul {
        max-width: calc(100vw - 320px - 300px);
    }

}

/*
@media screen and (min-width: 1250px) and (max-width: 1350px)  {
    html body .builder-drawings > ul {
        max-width: 500px;
    }
}

@media screen and (min-width: 1100px) and (max-width: 1249px)  {
    html body .builder-drawings > ul {
        max-width: 400px;
    }
}

@media screen and (min-width: 900px) and (max-width: 1099px)  {
    html body .builder-drawings > ul {
        max-width: 300px;
    }
}

@media screen and (min-width: 800px) and (max-width: 899px)  {
    html body .builder-drawings > ul {
        max-width: 200px;
    }
}

@media screen and (min-width: 750px) and (max-width: 799px)  {
    html body .builder-drawings > ul {
        max-width: 150px;
    }
}
*/

.builder-drawings > ul > li.drawing-active {
    font-weight: bold;
    background-color: #F3F2F7;
    opacity: 1;
}

.builder-drawings > ul > li {
    padding: 5px 10px;
    margin-right: 10px;
    background-color: white;
    margin: 5px;
    border-radius: 5px;
    opacity: 0.75;

}

.builder-drawings > ul > li:hover {
    /*background-color: grey;*/
}

.builder-drawings > ul > li:last-child {
    /*margin-right: 0;*/
}

.builder-drawings > ul > li > a {
}


.builder-body-screenshot .builder-drawings {
    display: none;
}


.ui.attachments-table thead tr th:last-child, 
.attachments-table tr td:last-child {
    text-align: center;
}

.controls-section-deck-flipper {
    margin: 20px 0px;
}
