@media (max-device-width:768px) and (orientation: landscape) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* Desktop */

@media screen and (min-width: 1024px) {
    #packCreationContainer {
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        position: absolute;
        border-radius: 10px;
        display: table;
        padding: 3em;
        margin: auto;
        background-color: #222;
        width: 30%;
        height: 30%;
        box-shadow: 0 0 5px black;
    }
}

/* Tablet */

@media screen and (min-width: 768px) and (max-width: 1023px) {
    #packCreationContainer {
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        position: absolute;
        border-radius: 10px;
        display: table;
        padding: 3em;
        margin: auto;
        background-color: #222;
        width: 100%;
        height: 100%;
        box-shadow: 0 0 5px black;
    }
}

/* Phone */

@media screen and (max-width: 767px) {
    #packCreationContainer {
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        position: absolute;
        border-radius: 10px;
        display: table;
        padding: 3em;
        margin: auto;
        background-color: #222;
        width: 50%;
        height: 50%;
        box-shadow: 0 0 5px black;
    }
}

#addSkinBtn,
#deleteSkinTextureBtn,
#removeSkinBtn {
    width: 20%;
    margin-left: 5px;
    height: 40px;
}

input,
label {
    color: var(--label)
}

#textureInputBtn,
#inputSkinLabel,
input[type=text],
select {
    width: 100%;
    display: inline-block;
    height: 40px
}

#deleteSkinTextureBtn {
    display: none;
}

#textureInputBtn,
#inputSkinLabel,
input,
input[type=text],
select {
    background-color: var(--input)
}

#deleteSkinTextureBtn:disabled,
.separator {
    opacity: .7
}

:root {
    --background: #121212;
    --skin-container: #0068ff;
    --label: #000000;
    --input: #fff;
    --add-button: #30d158;
    --red-button: #ff443a;
    --create-button: #0a84ff;
}

* {
    transition: all .3s ease, color .3s ease;
    -webkit-appearance: none
}

body {
    background-color: var(--skin-container);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: 1em;
}

#skinContainer {
    width: 100%;
}

label {
    font-weight: 500
}

input {
    border: 0
}

#textureInputBtn,
select {
    cursor: pointer
}

#textureInputBtn,
input[type=text],
select {
    padding: 12px 20px;
    appearance: none;
    border: 0;
    outline: 0;
    color: var(--label);
    border-radius: 4px;
    box-sizing: border-box
}

#inputSkin {
    width: 0;
    height: 0;
    overflow: hidden
}

input[type=text]:invalid:focus:enabled {
    outline: 0;
    border: 1px solid #ff443a;
    box-shadow: 0 0 5px #ff443a;
    transition: all .2s ease-in-out
}

input[type=button],
input[type=button]:focus:enabled,
input[type=submit],
input[type=submit]:hover:enabled {
    cursor: pointer;
    border-radius: 5px;
    height: 50px;
    color: #fff;
    background-color: var(--add-button);
    width: 100%;
    outline: 0;
}

input:disabled {
    opacity: 0.5;
}

input[type=button]:hover:enabled,
input[type=submit]:hover:enabled {
    transition: all .6s ease, color .5s ease;
    opacity: .9
}

input[type=file] {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px
}

input[type=file]:focus:enabled {
    outline: 0;
    border: 1px solid #5f9ea0;
    filter: drop-shadow(0 0 2px var(--create-button));
    transition: all .2s ease-in-out
}

#inputSkinLabel {
    cursor: pointer;
    border-radius: 5px;
    text-align: center
}

#textureInputBtn:hover:enabled,
input[type=text]:focus:enabled,
select:focus:enabled,
select:hover:enabled {
    outline: 0;
    border-radius: 5px;
    filter: drop-shadow(0 0 2px var(--create-button));
    transition: all .15s ease-in-out;
    opacity: 1
}

#addSkinBtn {
    background-color: var(--add-button)
}

#deleteSkinTextureBtn,
#removeSkinBtn {
    background-color: var(--red-button)
}

.separator {
    border: 1px solid gray;
    background-color: gray;
    border-radius: 5px
}

.flex {
    display: flex
}

.inputElement {
    padding-top: .5em;
    display: table;
    margin: 0 auto
}

#copyrightText {
    margin: auto;
    display: table;
    color: #ffffff;
    opacity: .7;
}

#skinImage {
    user-select: none;
    width: 128px;
    height: 128px;
}

#packInputButton {
    height: 120px;
    background-color: var(--create-button);
    border: dotted;
}

#premiumText {
    display: table;
    margin: auto;
    color: red;
}

#creatingPackOverlay {
    position: fixed;
    /* Sit on top of the page content */
    display: none;
    /* Hidden by default */
    width: 100%;
    /* Full width (cover the whole page) */
    height: 100%;
    /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black background with opacity */
    z-index: 2;
    /* Specify a stack order in case you're using a different order for other elements */
}

.circle {
    display: table;
    padding: 3em;
    margin: auto;
    animation: effect 1s linear infinite;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

@keyframes effect {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}