@import "https://cdn.jsdelivr.net/npm/7.css@0.11.0/dist/7.min.css";

/*
 * 100% of this stylesheet grew organically as this is intended to be a small, quick,
 * fun project to make, so don't please complain about this mess in the issue tracker.
 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-image: url("./background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-attachment: fixed;
    user-select: none;
    min-width: 600px;
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

#window {
    left: 50%;
    transform: translateX(-50%);
    margin-top: 36px;
    text-align: left;
}

#window .title-bar {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 20px 1fr 79px;
}

.title-bar-text {
    text-shadow: 0 0 12px #fff, 0 0 12px #fff, 0 0 12px #fff, 0 0 12px #fff, 0 0 12px #fff, 0 0 12px #fff;
}

.field-row.only-column {
    display: inline;
    padding-right: 8px;
}

.controls, .configuration, .history {
    margin: 16px;
}

h5 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 8px;
}

.pad-in {
    margin-left: 16px;
    margin-right: 16px;
}

#length-slider {
    max-width: 300px;
}

.history ul {
    user-select: text;
    height: 430px;
}

.history ul li code {
    padding: 2px;
}

#generate-button {
    width: max-content;
}

#latest-password {
    width: calc(100% - 4px);
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: monospace;
    font-size: 12px;
}

#latest-password::selection {
    background: white;
    color: black;
}

#window-grid {
    display: grid;
    height: 500px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0px 16px;
}