body {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 30px;
    overflow: hidden;
}

.page-content {
    background: "#f5f2f0";
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
}

.screenshot {
    float: left;
    max-width: 100%;
    object-fit: contain;
}

canvas {
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
}

.on-hover:hover {
    background: rgba(223, 219, 219, 0.954) !important;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.left-div {
    margin-top: 15px;
    margin-right: 5px;
    overflow: scroll;
}


.right-div {
    overflow: auto;
    position: sticky;
    width: 100%;
    right: 0;
    top: 0;
    left: 0;
}

#code-container {
    white-space: nowrap;
    display: inline-block;
}

code,
pre {
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

#loading-overlay {
    position: fixed;
    /* position the overlay in the middle of the screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    /* add a semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    /* center the icon inside the overlay */
}

.loading-icon {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-group {
    display: flex;
    gap: 20px;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    vertical-align: top;
}

.form-group select,
.form-group input[type="text"] {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: none;
}

.form-group textarea {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: none;
}

#url {
    width: 80%;
}

#generate {
    background-color: #afccdf;
    color: black;
    box-shadow: none;
    border: 1px solid rgb(177, 176, 176);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    align-self: flex-end;
    font-weight: bold;
}

.form-group.side-by-side {
    flex-direction: row;
    justify-content: space-between;
}

.button-container {
    display: flex;
    justify-content: flex-end;
}

.rich-view {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    color: #000;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 1em;
    text-align: left;
    word-spacing: normal;
    word-wrap: normal;
    line-height: 1.5;
    tab-size: 4;
    hyphens: none;
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
    background: #f5f2f0;
}

.group {
    color: #dd4a68;
    line-height: 2;
    font-weight: bold;
}

.element-name {
    color: #07a;
}

.variable-name {
    color: #905;
}

.variable-value {
    color: #000;
}

.html-value-container {
    margin-left: 60px;
    margin-bottom: 0px;
    margin-top: -24px;
}

.group-elements-container {
    margin-bottom: 10px;
    margin-left: 20px;
}

.group-variables {
    margin-left: 20px;
    margin-bottom: 10px;
}

.element-variables {
    margin-left: 40px;
}

.hand-cursor {
    cursor: pointer;
}

.copy-to-clipboard-button {
    cursor: pointer;
}

.selectDisable {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.toggle-option {
    display: inline-block;
}

.toggle-option-container {
    display: flex;
    justify-content: flex-end;
    margin-right: 5px;
}

#error {
    user-select: text;
}

#error-general {
    font-weight: bold;
}

#error-message {
    font-weight: bold;
    color: red;
}

#error-detail {
    user-select: text;
    font-weight: lighter;
}

#feedback {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background-color: #afccdf;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    color: black;
    text-decoration: none;
}

.bottom-element {
    margin-bottom: 80px;
}

#history-dropdown {
    position: absolute;
    display: none;
}

#history-list {
    position: absolute;
    top: 40px;
    left: 98px;
    z-index: 1;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0;
    margin: 0;
    min-width: 500px;
    max-height: 1000px;
    width: 600px;
    overflow-y: auto;
}

#history-list li {
    padding: 8px;
    cursor: pointer;
}

#history-list li:hover {
    background-color: #f5f5f5;
}

.history-load {
    cursor: text !important;
}

.history-load:hover {
    background-color: #fff !important;
}


#browser-width {
    max-width: 105px;
}

#browser-height {
    max-width: 110px;
}

.tooltip {
    position: absolute;
    z-index: 9999;
    background-color: #000;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    visibility: hidden;
}

.tooltip:hover {
    visibility: hidden !important;
}

.has-tooltip:hover .tooltip {
    visibility: visible;
}

.get-attention {
    animation: blink 2s infinite;
    text-align: center;
}

@keyframes blink {
    50% {
        color: lightseagreen;
    }
}