@use "variables.scss" as vars;

@mixin button-style {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #0078d7;
    color: #fff;

    &:hover {
        background-color: #005fa3;
    }
}

@mixin modal-window {
    max-height: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    margin: 0;
    background: vars.$modal-window-background-color;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    cursor: default;
    z-index: 999999999999999;
    border-radius: 0.5em;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    min-width: vars.$default-modal-width;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@mixin main-textarea {
    resize: none;
    width: 100%;
    padding: 8px;
    border-radius: vars.$default-border-radius;
    border: 1px solid #ccc;
    background: #fff;
    color: black;
}
