/******************

WORKS OF FICTION 
POSTCARDS

*****************/

:root {
    --frontcolor: #000;
    --backcolor: rgb(0, 157, 86);
    --border-radius: 8px;
    /* 
    purple rgb(100,100,200)
    tennis green rgb(0, 139, 76)
    lighter tennis rgb(0, 157, 86)
    softest green rgb(139, 198, 141)
     --frontcolor: #333;
    --backcolor: #ddd;
    --border-radius: 5px;
    midnightblue
    darkseagreen
    mediumseagreen
    lemonchiffon
    tomato
    steelblue
    slategrey
    lightsalmon
    cadetblue
     */
}

html,
body {
    margin: 0px;
    padding: 0px;
    font-family: Azaret, Menlo, monospace;
    font-size: 14px;
    line-height: 1.6em;
    color: var(--frontcolor);
    background-color: var(--backcolor);
    background-repeat: repeat;
    background-size: 256px;
    background-image: url(../img/noise-light.png);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    user-zoom: none;
    transition: background-color 2s;
}

.highlight {
    /* background-color: rgb(1, 117, 65); */
    background-color: rgb(0, 86, 46);
    transition: background-color 1s;
}

div,
* {
    box-sizing: border-box;
    position: relative;
    /* border: 1px solid #00f; */
}

a,
a:link,
a:visited {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

a:hover,
a.link:hover {
    text-decoration: underline;
    color: rgba(0, 0, 0, 1);
}

a.button,
a:link.button,
.button {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    margin: 5px;
    margin-right: 0px;
    cursor: pointer;
    transition: color, background-color 0.5s;
    font-weight: normal;
    font-size: 1.2em;
    letter-spacing: .05em;
}

.button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.button.inactive {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}


a.download,
a:link.download,
.download {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
    margin: 5px 0px;
    margin-right: 0px;
    cursor: pointer;
    transition: color, background-color 0.5s;
    font-weight: normal;
    font-size: 1.2em;
    letter-spacing: .05em;
    text-decoration: none;
}
a.download::before,
a:link.download::before,
.download::before{
    content: url(../img/download.svg) " ";
}

a.download:hover,
.download:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.right {
    float: right;
}

#main-container {
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
    padding-top: 20px;
    height: 100%;
}

.noscroll {
    overflow: hidden;
}

#top-container {
    min-height: 100%;
    display: grid;
    grid-template-columns: 600px auto;
}

#logo-container {
    width: 600px;
    padding: 0px 0px 20px;
    overflow: hidden;
}

#logo-container img {
    width: 90%;
}

.helper {
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: .05em;
    color: rgba(0, 0, 0, 0.5);
}

.footer {
    position: relative;
    width: 100%;
    height: 700px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
}

.footer.playground {
    background-image: url(../img/target.svg);
}

#brick {
    width: 200px;
    height: 120px;
    z-index: 5;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#brick img {
    width: 100%;
    pointer-events: none;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    opacity: 0;
    user-select: none;
    pointer-events: none;
}

.about {
    font-size: 1.2em;
    padding: 0px;
    max-width: 800px;
}

.about p:first-child {
    margin-top: 0px;
}

.about img {
    height: 1em;
}

.hidden {
    display: none;
}

.title {
    font-size: 2em;
    line-height: 1.4em;
    padding: 20px 0px;
    cursor: pointer;
    color: #fff;
}

.title img {
    height: 1em;
}

.small-title {
    font-size: 1.3em;
    margin-bottom: 20px;
}

#postcard-container {
    margin-top: 0px;
}

#postcard {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    padding: 20px 0px;
    margin: 0px auto;
    max-width: 1200px;
}

#draw-undo {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 40px;
    height: 40px;
    background-image: url(../img/undo2.svg);
    background-size: 100%;
    cursor: pointer;
    opacity: 0.7;
    overflow: hidden;
    z-index: 1;
    border-radius: 100%;
}

#draw-undo:active {
    opacity: 1;

}

#drawing-pad {
    background-color: #fff;
    background-image: url(../img/grid.svg);
    background-position: 0 0;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    cursor: url('../img/pencil.svg') 20 20, crosshair;
}

textarea {
    border: none;
    margin: 0px;
}

#notes {
    resize: none;
    width: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    border: none;
    background-image: url('../img/h-line.svg');
    background-position: 0 0;
    font-size: inherit;
    font-family: inherit;
    line-height: 20px;
    box-sizing: border-box;
    padding: 20px;
}

#drawing-controls {
    height: auto;
    display: flex;
    justify-content: right;
    align-items: center;
}

#text-controls {
    text-align: right;
}

#send-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10;
}

#send-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 40px;
    height: 40px;
    background-image: url(../img/close.svg);
    background-size: 100%;
    cursor: pointer;
    opacity: 0.5;
    overflow: hidden;
    z-index: 99;
}

#send-close:hover {
    opacity: 1;
}

#send-box {
    position: relative;
    background-color: #ddd;
    border-radius: var(--border-radius);
    padding: 10px;
    max-width: 400px;
    margin: 40px;
}

#send-controls {
    display: flex;
    justify-content: right;
}

.note {
    margin-bottom: 20px;
}

.smallnote {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
}

#send-box input {
    width: 100%;
    margin-bottom: 1em;
    border: none;
    border-radius: 5px;
    font-size: 1.3em;
    font-family: inherit;
    padding: 5px;
}

#feedback-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99;
    cursor: url('../img/close.svg') 20 20, not-allowed;

}

#feedback {
    position: relative;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 40px 40px;
    min-height: 2em;
    margin: 40px;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
}

#key {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../img/key.svg');
    opacity: 0.2;
    z-index: 10;
    color: #000;
}

#username {
    position: absolute;
    top: 100%;
}

#key:hover {
    opacity: 0.5;
}

/* resizing for smaller screens */

@media screen and (max-width: 1000px) {
    #top-container {
        min-height: 100%;
        display: block;
        grid-template-columns: none;
    }
}

@media screen and (max-width: 900px) {
    #postcard {
        max-width: 590px;
        display: block;
        padding: 0px;
    }
}