/*
  CSS para o Mockup do iPhone 14 Pro - Adaptado do CodePen
*/

.iphone-14-pro-codepen {
    position: relative;
    margin: 20px;
    /* width: 180px;
    height: 360px; */
    max-width: 150px !important;
    width: 150px !important;
    height: 300px !important;
    background: #142304;
    border-radius: 20px;
    /*box-shadow: 0 0 0 0px #f7f7f7, 10px 10px 1px rgba(0, 0, 0, 0.1);*/
    padding: 5px !important;
    box-sizing: border-box;
}

.iphone-14-pro-codepen .screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 17px; /* Bordas da tela interna */
    overflow: hidden; /* Garante que a imagem não saia das bordas */
    position: relative; /* Necessário para a imagem se ajustar */
}

.iphone-14-pro-codepen .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem cobrir toda a tela sem distorcer */
    display: block;
}

.iphone-14-pro-codepen .camera {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 8px;
    background: #000;
    border-radius: 12px;
    z-index: 999; /* Garante que a "Dynamic Island" fique sobre a tela */
}

/* Adicionando as listras laterais e botões para mais realismo */
.iphone-14-pro-codepen::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 90px;
    width: 2px;
    height: 25px;
    background: #4d4d4d;
    border-radius: 2px 0 0 2px;
}

.iphone-14-pro-codepen::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 120px;
    width: 2px;
    height: 40px;
    background: #4d4d4d;
    border-radius: 0 2px 2px 0;
}

.marvel-device .screen img {
    width: 100%; /* Ajusta a largura da imagem ao contêiner */
    height: 100%; /* Ajusta a altura da imagem ao contêiner */
    object-fit: cover; /* Garante que a imagem preencha o contêiner */
    object-position: top; /* Alinha a imagem ao topo */
    margin-top:30px;
}

.marvel-device .screen img {
    display: block;
    width: 100%;
    height: auto;
    transform: translateY(0); /* Posição inicial */
    transition: transform 15s ease; /* Transição mais lenta */
}

/*.marvel-device:hover .screen img {*/
/*    transform: translateY(calc(-100% + 570px)); !* Move a imagem para cima até o limite inferior *!*/
/*}*/

.marvel-device {
    margin-top: 50px;
    position: absolute;
    right: 0px;
    bottom:-10px;
    z-index:700;
}

.marvel-device .browser-header {
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 800;
}

.marvel-device .browser-header .circle {
    width: 10px;
    height: 10px;
    background-color: #ccc; /* Cor do botão de fechar */
    border-radius: 50%;
    margin-right: 5px;
}


/*Macbook*/

.css-mb {
    max-width: 70%; /* Set the desired maximum width of the macbook */
    min-width: 50%; /* Set the desired minimum width of the macbook */
    margin: 50px auto 0; /* Align mockup to center */
}

.css-mb div {
    box-sizing: border-box !important; /* Just in case */
}

/* Center the display */
.css-mb .mb-display-position {
    width: 80%;
    margin: 0 auto;
}

/* The display */
.css-mb .mb-display {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 65.9442%;
    background: #142304;

    -webkit-border-top-left-radius:  3.5% 5.3075%;
    -moz-border-radius-topleft:  3.5% 5.3075%;
    border-top-left-radius:  3.5% 5.3075%;

    -webkit-border-top-right-radius: 3.5% 5.3075%;
    -moz-border-radius-toptight: 3.5% 5.3075%;
    border-top-right-radius: 3.5% 5.3075%;
}

/* Webcam */
/* Browser may not render a perfect circle */
.css-mb .mb-display:before {
    content: '';
    display: block;
    position: absolute;
    top: 3%;
    left: 50%;
    width: 1%;
    height: 1.5164%;
    margin-left: -0.5%;
    border-radius: 50%;
    background: #142304;
}

/* Glare */
/* Browser may not render the top and right offset evenly */
.css-mb .mb-display:after {
    content: '';
    display: none;
    position: absolute;
    right: 0.4%;
    top: 0.64%;
    width: 62.5%;
    height: 100%;

    background: none; /* Hide the gradient on older browsers */
    background:    -moz-linear-gradient(55deg, rgba(0,0,0,0) 61%, rgba(255,255,255,0.05) 61%); /* FF3.6+ */
    background: -webkit-linear-gradient(36deg, rgba(0,0,0,0) 61%, rgba(255,255,255,0.05) 61%); /* Chrome10+ and Safari5.1+ compute the degree differently */
    background:      -o-linear-gradient(55deg, rgba(0,0,0,0) 61%, rgba(255,255,255,0.05) 61%); /* Opera 11.10+ */
    background:     -ms-linear-gradient(55deg, rgba(0,0,0,0) 61%, rgba(255,255,255,0.05) 61%); /* IE10+ */
    background:         linear-gradient(55deg, rgba(0,0,0,0) 61%, rgba(255,255,255,0.05) 61%);

    -webkit-border-top-right-radius: 5.3075%;
    -moz-border-radius-toptight: 5.3075%;
    border-top-right-radius: 5.3075%;
}

/* Only show glare, if the class is applied */
.css-mb.with-glare .mb-display:after { display: block; }

/* Position the screen and give make it the right size, ratio 16:10 */
.css-mb .mb-screen-position {
    position: absolute;
    top: 6.5%;
    width: 93.2%;
    left: 3.4%;
    height: 0;
    margin: 0;
    padding-bottom: 58.25%; /* Ratio */
}

/* Give parent (this element) a "height", so that child elements can use height: 100%;*/
.css-mb .mb-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: #4b4b4d; /* bg color if content is not big enough, or rendering is off */
}

/* Image on the screen */
.css-mb .mb-screen img {
    max-width: 100%;
    height: auto;
}

/* Iframe on the screen */
.css-mb .mb-screen iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Macbook body */
.css-mb .mb-body {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 2.3%;
    background: #e6e7e8;
}

/* The groove */
.css-mb .mb-body:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 14.0740%;
    height: 0;
    padding-bottom: 1.4814%;
    margin-left: -7.037%;
    background: #a9abae;

    -webkit-border-bottom-left-radius:  7.0370% 50%;
    -moz-border-radius-bottomleft:  7.0370% 50%;
    border-bottom-left-radius:  7.0370% 50%;

    -webkit-border-bottom-right-radius: 7.0370% 50%;
    -moz-border-radius-bottomtight: 7.0370% 50%;
    border-bottom-right-radius: 7.0370% 50%;
}

/* Macbook bottom */
.css-mb .mb-bottom-cover {
    width: 100%;
    height: 0;
    padding-bottom: 0.7407%;
    background: #a9abae;

    -webkit-border-bottom-left-radius:  12% 600%;
    -moz-border-radius-bottomleft:  12% 600%;
    border-bottom-left-radius:  12% 600%;

    -webkit-border-bottom-right-radius: 12% 600%;
    -moz-border-radius-bottomtight: 12% 600%;
    border-bottom-right-radius: 12% 600%;
}
