
/* Left column */
.left-col {
    flex: 3;
    order: 1;
}

/* Right column */
.right-col {
    flex: 2;
    order: 2;
    display: flex;
    flex-direction: column;
}

/* Left column contents */
#product-view {
    padding: 20px;
    background-color: white;
}

#design-canvas {
    box-shadow: 0px 2px 3px #ccc;
    border-radius: 3px;
    position: relative;
}

#attribution-section {
    color: #ccc;
    font-size: 0.75rem;
    margin-top: 5px;
    font-style: italic;
    user-select: none;
}

#design-border {
    background-color: lightgrey;
    padding: 35px;
}
#design-border-inner {
    background-color: grey;
    padding: 5px;
}

#custom-design-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background-color: white;
}

#custom-design, .custom-design-fit {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#custom-design .default-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.design-text {
    position: absolute;
    text-align: center;
    user-select: none;
    bottom: 9px;
    left: 9px;
    right: 9px;
    margin: 0;
}
.design-text-style1 {
    color: white;
    font-family: sans-serif;
    font-size: 15px;
}
.design-text-style2 {
    color: white;
    font-family: cursive;
    font-size: 15px;
}


/* Right column contents */
.side-panel {
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 5px;
    /* border-top: #ccc solid 1px; */
}

.sub-panel {
    display: flex;
    flex-direction: column;
    /* border-bottom: #ccc solid 1px; */
    /* padding-bottom: 15px; */
    margin-bottom: 10px;
}

.boxed {
    background-color: rgba(255, 255, 255, 0.4);
}

#product-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.desc-style {
    color: #666;
    font-size: 0.95rem;
}

.btn {
    color: white;
    background-color: #444;
    border-radius: 3px;
    font-size: 0.95rem;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}
.btn:hover {
    background-color: #333;
}
#cart-btn {
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 10px;
}

.side-panel label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95rem;
}
.side-panel .sub-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: normal;
}
.side-panel .desc-text {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 5px;
}


.option-wrapper {
    display: flex;
    flex-wrap: wrap;
}
.style-btn {
    cursor: pointer;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    margin-bottom: 10px;
    
    text-align: center;
    display: table-cell; /* ?? best way? */
    vertical-align:middle;
}
.style-btn.diamond {
    transform:rotate(45deg);
    width: 20px;
    height: 20px;
    margin-right: 25px;
    margin-bottom: 25px;
    transition: 1.2s;
}
.style-btn.diamond:hover {
    transform: rotate(135deg);
}
.diamond .diagonal {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
.diagonal {
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.circle-mask {
    border-radius: 50%;
    overflow: hidden;
}

.side-panel input[type='text'] {
    border: none;
    border: #ccc solid 1px;
    border-radius: 3px;
    background-color: none;
    padding: 10px;
    font-size: 0.9rem;
    transition: 0.3s;
    /* margin: 5px 0px; */
}
.side-panel input[type='text']:hover {
    border-color: #aaa;
}
.side-panel input[type='text']:focus {
    border-color: #666;
    outline: none;
}

.textBtn {
    display:inline-block;
    background-color: #f0f0f0;
    padding: 1px 5px;
    margin-right: 4px;
    margin-bottom: 4px;
    border-radius: 2px;
    color: #777;
    cursor: pointer;
    transition: 0.3s;
}
.textBtn:hover {
    background-color: #dfdfdf;
}
.textBtn:active {
    background-color: #aaa;
}


/* Media query for small screens */
@media only screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-col, .right-col {
        flex: 1;
        width: 100%;
    }

    .left-col {
        margin-right: 0;
        padding: 0;
    }

    .style-btn {
        width: 40px;
        height: 40px;
    }
}
