main {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.player-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.player-header h3 {
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

.player-header h3 span {
    color: #236DAD;
}


.player-header button {
    display: flex;
    align-items: center;
    color: #535252;
    background-color: #fcfcfc;
    border: 1px solid #53525274;
    border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.Container-skin {
    display: flex;
    gap: 18px;
    width: 100%;
    height: auto;
    min-height: 480px; 
    align-items: stretch;
}

.container-skin-left {
    flex: 0 0 58%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.card-left-viewer-data{
    position: absolute;
    display: flex;
    justify-content: end;
    align-items: end;
    width: 95%;
    height: 95%;
    color: #535252;
    pointer-events: none;
}

.card-left-viewer-data div{
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.card-left-skin-viewer-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: end;
    align-items: end;
    position: absolute;
    top: 12px;
    right: 8px;
    pointer-events: none;
    z-index: 100;

}

.card-left-skin-viewer-controls button {
    display: flex;
    align-items: center;
    background-color: #808080;
    padding: 10px;
    pointer-events: auto;
    border-radius: 8px;
}

#like-btn {
    background-color: #cf6464;
    border: 1px solid #ff4141;
}

#download-btn {
    background-color: #117617;
}

 .container-skin-left > .card-left-profiles{
        flex: none !important;
        width: 100% !important;
    }

.card-left-profiles {
    display: flex;
    flex-direction: column;
    border: #53525274 1px solid;
    border-radius: 10px;
}

.card-left-profiles-title {
    padding: 8px;
    width: 100%;
    background-color: #F8F8F8;
    border-bottom: 1px solid rgb(188, 188, 188);
    border-radius: 10px 10px 0px 0px;
}

.card-left-profiles-body {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0px 0px 10px 10px;
}

.container-skin-right {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}


.card-right-head {
    padding: 8px;
    gap: 4px;
    border: 1px solid rgb(188, 188, 188);
    border-radius: 10px;
    display: flex;
    text-align: center;
    justify-items: center;
    justify-content: center;
    background-color: #fff;
}

.card-right-head-name {
    color: #0099f9;
}

.card-right-labels {
    display: flex;
    flex-direction: column;
    border: #53525274 1px solid;
    border-radius: 10px;
}

.card-right-labels-title {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    width: 100%;
    background-color: #F8F8F8;
    border-bottom: 1px solid rgb(188, 188, 188);
    border-radius: 10px 10px 0px 0px;
}

#vote-btn {
    cursor: pointer;
    color: #236DAD;
}

.card-right-labels-body {
    display: flex;
    gap: 5px;
    padding: 8px 4px;
    width: 100%;
    height: auto;
    background-color: #fff;
    border-radius: 0px 0px 10px 10px;
    align-items: center;
    justify-content: center;
}

.tags-container{
    display: flex;
    gap: 5px;
}

.tag-name{
    padding: 2px 6px;
    background-color: #236DAD;
    color: white;
    border-radius: 10px;
    font-size: small;
}


.card-right-video{
    width: auto;
    height: 35vh;
    border-radius: 10px;
    border: #53525274 1px solid;
}

.card-right-tools {
    display: flex;
    flex-direction: column;
    border: #53525274 1px solid;
    border-radius: 10px;
}

.card-right-tools-title {
    padding: 8px;
    width: 100%;
    background-color: #F8F8F8;
    border-bottom: 1px solid rgb(188, 188, 188);
    border-radius: 10px 10px 0px 0px;
}

.card-right-tools-body {
    display: flex;
    gap: 5px;
    padding: 8px 4px;
    width: 100%;
    height: 90px;
    background-color: #fff;
    border-radius: 0px 0px 10px 10px;
    align-items: center;
    justify-content: center;
}

    .head-position-buttons {
        display: flex;
        gap: 8px;
        margin-bottom: 15px;
    }

    .head-position-btn, .invert-colors-btn {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        background: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s;
        border-radius: 8px;
    }

    .head-position-btn:hover {
        border-color: #999;
    }


    .invert-colors-btn:hover {
        border-color: #999;
    }

.card-right-command {
    display: flex;
    flex-direction: column;
    border: #53525274 1px solid;
    border-radius: 10px;
    overflow-x: hidden;
}

.card-right-command-title {
    padding: 8px;
    width: 100%;
    background-color: #F8F8F8;
    border-bottom: 1px solid rgb(188, 188, 188);
    border-radius: 10px 10px 0px 0px;
}

.card-right-command-body {
    display: flex;
    width: 100%;
    overflow-y: hidden;
    overflow-x: auto;
    background-color: #fff;
    border-radius: 0px 0px 10px 10px;
    padding: 1rem;
    justify-content: space-around;
}

.card-right-command-body .command-input {
    flex-grow: 1;
    max-height: 64px;
    padding: 8px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background-color: #f8f8f8;
    font-family: monospace;
    font-size: 12px;
    color: #333;
    overflow-x: auto;
    white-space: nowrap;
}

.card-right-command-body button {
    border: 1px solid #ccc;
    border-radius: 0 8px 8px 0;
    background-color: #f0f0f0;
    cursor: pointer;
    color: gray;
    font-size: 14px;

}

.card-left-,
.card-right- {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #000;
}


.card-left-skin-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    border: #53525274 1px solid;
    border-radius: 10px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX4+Pj///9njiF9AAAAFklEQVQoz2P4DwQMIDDKwMoYDQi8DADzAv8BKis8ZwAAAABJRU5ErkJggg==);

}

#viewer-container{
    width: 100%;
    height: auto;
}

.card-left-skin-viewer #skin-canvas {
    cursor: move;
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
}

.loading{
    position: absolute;
}

.container-other-skin {
    display: flex;
    flex-direction: column;
    gap: 10;
    width: 100%;
    margin-top: 40px;
}

.player-section {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
    width: 100% ;
}

.container-skins {
    display: flex;
    gap: 24px;
    width: 100%;
    justify-items: start;
    flex-wrap: wrap;
}


.container-other-skin{
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.container-other-skin h3 {
    font-size: 28px;
    color: #535252;
    line-height: normal;
    margin-bottom: 24px;
}

/* Select */
#command-version {
    font-size: 14px;
    border: 1px solid #d8d5d5;
    border-radius: 6px;
    background-color: #f8f8f8;
    cursor: pointer;
}

/* Textarea */
.command-block {
    display: flex;
    align-items: center;
}

.command-block textarea.command-input {
    flex-grow: 1;
    min-width: 0;
    max-height: 64px;
    resize: none;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: auto;
    white-space: nowrap;
}

/* Botón copiar */
#copy-command-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 0 6px 6px 0;
    background-color: #f0f0f0;
    cursor: pointer;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

#copy-command-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

.player-middle img{
    width: 35% !important;
}

.container-player{
    justify-content: start !important;
}

@media (max-width: 1100px) {
    .Container-skin {
        gap: 12px;
        width: calc(100% - 32px);
        min-height: 420px;
    }

    .container-skin-left {
        flex: 0 0 65%;
    }

    .container-skin-right {
        flex: 0 0 35%;
    }
    .card-left-skin-viewer-controls{
        top: 4px;
    }

}

@media (max-width: 1024px) {
    .container-2 {
        flex-direction: column;
        align-items: center;
    }

    .player-container {
        flex-direction: column;
        align-items: center;
    }

    .player-container .player-left,
    .player-container .player-right {
        width: 100%;
    }

    #viewer-container {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40vh;
    }
        .container {
            align-items: center;
            justify-content: center;
        }

        .Container-skin {
        flex-direction: column;
        gap: 10px;
        padding: 20px 8px; /* combiné los dos paddings */
        align-items: center;
        justify-content: center;
    }

    .container-skin-left,
    .container-skin-right {
        width: 100%;
        align-items: center;
        justify-content: center;
    }


    .container-skin-right > .card-right-,
    .card-right-head,
    .card-right-labels,
    .card-right-video,
    .card-right-tools,
    .card-right-command {
        flex: none !important;
        width: 100% !important;
    }


    #skin-canvas {
        width: 60%;
        height: auto;
    }
}

@media (max-width: 800px) {
    
    .player-header h3 {
        font-size: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container-2 {
        gap: 20px;
    }

    .container-skin-right {
        width: 100% !important;
        flex: 1 1 100%;
    }

    .container-skin-right > .card-right-,
    .card-right-head,
    .card-right-tools,
    .card-right-command {
        flex: none !important;
        width: 100% !important;
    }

    .card-actions-url {
        flex-direction: column;
    }

    .card-actions-url input,
    .card-actions-url button {
        width: 100%;
    }

    .container-player {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .Container-skin {
        gap: 8px;
        padding: 6px;
        width: calc(100% - 12px);
    }

    .card-left-,
    .card-right- {
        font-size: 12px;
    }

    .card-left-skin-viewer-controls button{
        font-size: small;
        padding: 8px;
    }

    .card-right-head{
        flex-direction: column;
    }

    main {
        flex-direction: column;
        align-items: center;
    }

    .player-container {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .player-container .player-left .skin-viewer {
        height: 100%; 
        width: 100%;
    }

    .card-info,
    .card-statistics,
    .card-details,
    .card-actions {
        padding: 12px;
    }

    .card-title {
        font-size: medium;
    }

    .container-player {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media(max-width: 320px){
    .card-left-skin-viewer-controls button{
        padding:6px;
    }
}

@media(max-height: 728px){
    .card-left-skin-viewer-controls button{
        padding: 8px;
    }
}

@media(max-height: 480px){
    .card-left-skin-viewer-controls{
        flex-direction: row;
    }
    .card-left-skin-viewer-controls button{
        padding: 4px;
    }
}

@media(max-height: 505px) and (max-width: 1025px){
    .card-left-skin-viewer-controls{
        gap: 2px;
    }
    .card-left-skin-viewer-controls button{
        padding: 5px;
    }
}

@media(max-width: 320px){
    .head-position-btn img, .invert-colors-btn img{
        width: 80%;
    }
    .head-position-btn, .invert-colors-btn {
        padding: 5px;
    }
}