@font-face {
    font-family: "stitch";
    src: url("xstitchwide.woff2") format("woff2");
}

@font-face {
    font-family: "stitchBody";
    src: url("xstitchbody.woff2") format("woff2");
}

h1 {
    font-family: "stitch";
    text-transform: uppercase;
    font-size: 2.5em;
    text-align: center;
    font-weight: 500;
}

p {
    font-family: "stitchBody";
}

#canvas-container {
    display: block;
    margin: auto;
    border-radius: 50%;
}

#defaultCanvas0 {
    border-radius: 50%;
    border: solid 2px black;
}

#info-container {
   align-items: center;
}

#message-input,
#width-input {
    display: flex;
    flex-direction: row;
    padding-top: 2%;
    justify-content: center;
    border-radius: 0;
}

#message-input input {
    height: 50px;
    width: 40%;
    font-family: "stitchBody";
    font-size: 1em;
    border: solid 2px black; 
}

#message-input button {
    width: 10%;
    background-color: white;
    text-decoration: none;
    color: black;
    margin-left: 2%;
    text-align: center;
    font-family: "stitchBody";
    font-size: 1.2em;
    cursor: pointer;
    border: solid 2px black;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    width: 60%;
}

.showbox {
    width: 35%;
    margin: 3% auto;
}

#aboutModal p {
    font-size: 1.5em;
}

.close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 10;
    cursor: pointer;
    color: black; 
    font-size: 72px;
    font-weight: bold;
    line-height: 1
}

.close:hover,
.close:focus {
    color: #888;
    text-decoration: none;
    cursor: pointer;
}

.sqr {
    width: 100%;
    z-index: 0;
}

@media (max-width: 800px) {
        #message-input {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0 4%;
        padding-top: 4%;
    }

    #message-input input {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
            box-sizing: border-box;

    }

    #message-input button {
        width: 100%;
        margin: 0;
        height: 44px;
    }

    .showbox {
    width: 90%;
    margin: 3% auto;
}
}