#main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 720px;
}

#main-content section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5rem auto;
}

#main-content section::before {
    content: "Loading, please wait . . .";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    padding: 1.5rem 2.5rem;
    white-space: nowrap;
    text-align: center;
}

#main-content section:has(.ime)::before {
    display: none;
}

#canvas {
    outline: none;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

#canvas:focus {
    border-color: var(--primary);
}

.resolution-message {
    display: none !important;
}

@media (max-width: 1026px) {
    #canvas {
        display: none;
    }

    #main-content section::before {
        display: none;
    }

    .resolution-message {
        display: inherit !important;
    }

    #main-content section {
        margin: 0 auto;
    }

    #main-content {
        min-height: auto;
    }
}
