@tailwind base;
@tailwind components;
@tailwind utilities;

iframe {
    border-radius: 1rem;
}

.theme-preview iframe {
    transform: translate(0)
    translateY(0)
    translateZ(0)
    rotate(0)
    rotateX(0)
    rotateY(0)
    rotate(0)
    skew(0)
    skewY(0)
    scaleX(0.5)
    scaleY(.5)
    scaleZ(.5);
    transform-origin: 0 0;
}

.desktop-preview {
    height: 500px;
    width: 90%;
    border-radius: 1rem;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.mobile-preview {
    height: 26rem;
    width: 13rem;
    bottom: -1.5rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
    border-radius: 1rem;
    --tw-shadow: 0 10px 15px rgb(0 0 0 / 10%);
    --tw-shadow-colored: 0 10px 15px rgb(0 0 0 / 10%);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.theme-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-card {
    background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
    border-radius: .375rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.theme-card__image {
    background-size: cover;
    height: 12rem;
    background-position: center top;
}

.theme-card__content {
    padding: 1rem;
}

.theme-card__button {
    display: flex;
    flex-wrap: wrap;
    grid-column-gap: .5rem;
    column-gap: .5rem;
}

.theme-store__desktop-view {
    border-bottom-right-radius: .5rem;
    border-bottom-left-radius: .5rem;
    height: 0;
    overflow: hidden;
    padding-bottom: 120%;
    --tw-shadow: 0 10px 15px rgb(0 0 0 / 10%);
    --tw-shadow-colored: 0 10px 15px rgb(0 0 0 / 10%);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    width: 90%;
}

.theme-store__mobile-view {
    display: flex;
    align-items: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: hsla(var(--bg-sidebar), 1);
    border-radius: 0.5rem;
    height: 12rem;
    padding: 1rem .375rem;
    position: absolute;
    bottom: 6rem;
    right: 0;
    --tw-shadow: 0 10px 15px rgb(0 0 0 / 10%);
    --tw-shadow-colored: 0 10px 15px rgb(0 0 0 / 10%);
    width: 8rem;
}

.theme-store__mobile-view img {
    border-radius: .5rem;
}
