@import url('https://rsms.me/raster/raster2.css?v=20');
@import url('https://cdn.jsdelivr.net/gh/picturepan2/devices.css@master/dist/devices.css');

/* BOX MODEL RESET */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body{
    background-image: url('img.jpg');
    background-size: cover;
    background-position:center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* POPUP / SETTINGS */
.popup{
   z-index: 100;
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: #fff;
   border: 2px solid #000;
   transition: all 0.5s ease-in-out;
   padding: calc(var(--lineHeight)*2);
}

.popup.hidden{
    transform: translateX(100%);
}

/* MAIN CONTAINER / WRAPPER */
.container{
    max-width: 70rem;
    margin: 0 auto;
}

/* LOADING */
.loading{
    z-index: 100000;
    position: absolute;
    background: rgba(0,0,0,0.7);
    font-size: 3rem;
    font-weight: bold;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading > span{
    padding: 2rem;
    background: #fff;
    border-radius: 1000px;
    height: 6rem;
    width: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotation 2s infinite linear;
}

.loading.hidden{
    display: none;
}

/* Loading Animation */
@keyframes rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
}

/* FORM ELEMENTS */
input,
select,
button {
    appearance: none;
    outline: 0;
    box-shadow: none;
    background-color: #fff;
    border: 1px solid #dadada;
    border-radius: 5px;
    font-size: var(--h3-size);
    padding: 0.7em 1.2em;
    width: 100%;
    margin-bottom: calc(var(--lineHeight) * 1.5);
}

input:hover,
input:focus {
    border-color: rgb(30, 6, 68);
}

input[type='submit'],
input[type='button'],
button {
    width: auto;
    background: rgb(30, 6, 68);
    border-color: #000;
    color: #fff;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type='button']:hover,
input[type='button']:focus,
input[type='submit']:hover,
input[type='submit']:focus,
button:hover,
button:focus {
    background: #fff;
    color: rgb(39, 3, 43);
}

.top-buttons {
    text-align: right;
}

.top-buttons > button{
    margin: 0;
    margin-left: 1rem;
}

#editor{
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

img{
    width: 100%;
}

/* Theme Images */

.themes-list{
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-rows: 1fr
}

.theme{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    text-align: center;
}

.theme > h3{
    margin-top: -4rem;
    font-size: 2rem;
}

.device-macbook,
.device-macbook-pro{
    transform: scale(0.7) !important;
}