* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #44a08d, #093637);
    font-family: sans-serif;
    max-width: 500px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.container {
    background: #1c1e26;
    padding: 25px;
    border-radius: 20px;
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5); 
}

input[type="color"] {
    border: none;
    width: 32.5%;
    height: 40px;
    border-radius: 3px;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

a {
    text-decoration: none;
}

.qr-text {
    padding: 1rem;
    display: block;
    background: #181b29;
    border: 1px solid #414866;
    border-radius: 4px;
    width: 100%;
    margin: 0.5rem 0 1rem 0;
    color: #fff;
    outline: none;
}

.qr-text::placeholder {
    color: #8b92b7;
    font-weight: 500;
}

#qr-code {
    height: 500px;
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #414866;
}

#qr-code img, #qr-code canvas { 
    max-width: 100% !important;
    max-height: 100% !important;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sizes {
    width: 32.5%;
    height: 40px;
    color: #fff;
    background: #181b29;
    border: 1px solid #414866;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.btn {
    color: #fff;
    max-width: 200px;
    padding: 14px;
    background: darkgreen;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
    transition: 1s;
}

.btn:hover {
    background: #44a08d;
}

.btn img {
    width: 20px;
    margin-left: 10px;
}

.share-btn {
    margin-left: 0.7rem;
}

.action-container {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

/* Responsive */

@media (max-width: 512px) {
    body {
        max-width: 100%;
        padding: 10px;
    }
    #qr-code {
        width: 95vw;
        height: 95vw;
    }
    #qr-code img, #qr-code canvas {
        max-width: 95vw !important;
        max-height: 95vw !important;
    }
    .btn {
        min-width: unset;
    }
}

@media (max-width: 350px) {
    .action-container {
        flex-direction: column;
    }
    .share-btn {
        margin-left: 0;
        margin-top: 0.7rem;
    }
}