html {
    font-size: 62.5%;
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* Ajusta el tamaño base según el diseño */
    line-height: 1.6;
    background-color: #000102;
}

/* body {
    background-color: #000102;
} */
img {
    max-width: 100%;
}

header,
footer{
    /* justify-content: space-between; */
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
    background-color: rgba(53, 48, 48, 0.511);
    /* padding: 1rem 0 3rem 0; */
    height: 13rem;
}

header h4 {
    color: #ffffff; 
    margin-top: 2.5rem;
    text-align: center; 
    font-size: 2.5rem; 
    font-weight: 300; 
    letter-spacing: 0.1em; 
    padding: 0.5rem;
    border-radius: 8px; 
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease; 
}

header h4:hover {
    transform: translateY(-2px);
    color: #e0e0e0; 
}


header img{
    width: 15rem;
}

.picture{
    display: flex;
}
.container {
    
    margin-bottom: 2rem;
}

h1 {
    color: white;
    text-align: left;
    font-weight: 700;
    font-size: 50px;
    margin-bottom: 50px;
    margin-top: 80px;
}
h1::after {
    content: '';
    width: 100px;
    height:6px;
    background-color: #66a2fe;
    display: block;
}

.one-half {
    perspective: 1000px; 
}

.bigCoint {
    width: 38rem;
    height: 100%;
    transition: transform 0.6s ease, opacity 0.6s ease;
    transform-style: preserve-3d; 
    position: relative;
    margin-top: 4rem;
}

.bigCoint {
    content: url('/img/logobitcoin.png');
}

.one-half:hover .bigCoint {
    animation: rotateCoin 2s ease forwards;
}


@keyframes rotateCoin {
    0% {
        transform: rotateY(0deg);
    }
    25% {
        transform: rotateY(90deg);
        content: url('/img/bitCoinRound.png'); /* Cambia la imagen en mitad del giro */
    }
    50% {
        transform: rotateY(180deg);
        content: url('/img/bitCoinDown.png'); /* Cambia la imagen al estar a la mitad del giro */
    }
    75% {
        transform: rotateY(270deg);
        content: url('/img/bitCoinRound.png');
    }
    100% {
        transform: rotateY(360deg);
        content: url('/img/logobitcoin.png'); /* Vuelve a la imagen original */
    }
}

.one-half:hover .bigCoint {
    transform: rotateX(360deg) scale(1.2); /* Gira la imagen y aumenta el tamaño */
}

.bigCoint:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Añade una sombra al hacer hover */
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}


.criptomoneda-container {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden; /* Asegura que el contenido no se desborde */
}

.criptomoneda-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(171, 136, 136, 0.6); 
    opacity: 0.6; 
    z-index: -1; 
}


label {
    text-align: center;
    color: white;
    /* text-transform: uppercase; */
    font-weight: bold;
    font-size: 20px;
    margin-top: 2rem;
}
/* input[type="submit"]{
    margin-top: 20px;
    font-weight: bold;
    font-size: 20px;
    padding: 10px;
    height: auto;
} */
.error {
    border-radius: 3%;
    background-color: #742c28;
    padding: 1rem;
    color: white;
    font-size: 18px;
    /* text-transform: uppercase; */
    font-weight: bold;
    text-align: center;
}
.resultado {
    /* background-color: black; */
    padding: 3rem;
    border-radius: 5%;
    color: white;

}
.resultado h2 {
    font-weight: bold;
    color: white;
}


.resultado p {
    /* text-align: center; */
    margin: 1rem;
    /* padding: 0.5rem; */
    /* border-radius: 10%; */
    /* background-color: rgb(8, 6, 6); */
    font-size: 13px!important;
}
/* .resultado p span {
    font-weight: bold;
} */
p.precio{
    font-size: 30px!important;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); 
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto; 
    padding: 20px;
    border-radius: 10px;
    width: 100%; 
    max-width: 900px;
    color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
}

.chart-container {
    max-width: 100%;
    height: 400px;
    margin: auto;
}

#cryptoChart {
    width: 100%;
    height: 400px;
}

.portfolio-label {
    font-size: 1.1rem; 
    color: #ffffff;
    background: rgba(26, 12, 12, 0.8); 
    padding: 15px 20px; 
    border-radius: 8px; 
    text-align: center; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease; 
}

.portfolio-label a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold; 
    transition: color 0.3s ease; 
}

.portfolio-label a:hover {
    color: #050329; 
}

.portfolio-label:hover {
    background: #8d0424; 
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5); 
}

.portfolio-label img.logoTommy {
    width: 15rem; 
    /* margin-left: 10px;
    vertical-align: middle;  */
}


@media (min-width:260px) {

    header, footer{   
        text-align: center;
        display: block;
        height: 13rem;
    }
    header h4, footer h4{
        font-size: 1.4rem;
    }

    form {
        margin-top: 2rem;
    }
}

@media (min-width:480px) {

    header, footer{
        text-align: center;
        display: block;
        height: 15rem;
    }
    header h4, footer h4{
        padding: 1rem;
    }
    header h4, footer h4{
        font-size: 2rem;
    }


    form {
        margin-top: 150px;
    }
}

@media (min-width:768px) {

    header, footer{
        height: 13rem;
        display: grid;
        grid-template-columns: 2fr 1fr;
    }

    header h4, footer h4{
        padding: 2rem;
    }

    form {
        margin-top: 150px;
    }
}

@media (min-width:900px) {

    header, footer{
        height: 13rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    header h4, footer h4{
        padding: 3rem;
    }

    header img, footer img{
        padding: 1rem;
    }

    form {
        margin-top: 150px;
    }
}

.spinner {
    margin: 100px auto 0;
    width: 70px;
    text-align: center;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: white;

    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% { 
        -webkit-transform: scale(0);
        transform: scale(0);
    } 40% { 
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

.cotizacion{
    background-color: aliceblue;
}

/* .sk-cube-grid {
    width: 40px;
    height: 40px;
    margin: 100px auto;
  }
  
  .sk-cube-grid .sk-cube {
    width: 33%;
    height: 33%;
    background-color: #333;
    float: left;
    -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
            animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out; 
  }
  .sk-cube-grid .sk-cube1 {
    -webkit-animation-delay: 0.2s;
            animation-delay: 0.2s; }
  .sk-cube-grid .sk-cube2 {
    -webkit-animation-delay: 0.3s;
            animation-delay: 0.3s; }
  .sk-cube-grid .sk-cube3 {
    -webkit-animation-delay: 0.4s;
            animation-delay: 0.4s; }
  .sk-cube-grid .sk-cube4 {
    -webkit-animation-delay: 0.1s;
            animation-delay: 0.1s; }
  .sk-cube-grid .sk-cube5 {
    -webkit-animation-delay: 0.2s;
            animation-delay: 0.2s; }
  .sk-cube-grid .sk-cube6 {
    -webkit-animation-delay: 0.3s;
            animation-delay: 0.3s; }
  .sk-cube-grid .sk-cube7 {
    -webkit-animation-delay: 0s;
            animation-delay: 0s; }
  .sk-cube-grid .sk-cube8 {
    -webkit-animation-delay: 0.1s;
            animation-delay: 0.1s; }
  .sk-cube-grid .sk-cube9 {
    -webkit-animation-delay: 0.2s;
            animation-delay: 0.2s; }
  
  @-webkit-keyframes sk-cubeGridScaleDelay {
    0%, 70%, 100% {
      -webkit-transform: scale3D(1, 1, 1);
              transform: scale3D(1, 1, 1);
    } 35% {
      -webkit-transform: scale3D(0, 0, 1);
              transform: scale3D(0, 0, 1); 
    }
  }
  
  @keyframes sk-cubeGridScaleDelay {
    0%, 70%, 100% {
      -webkit-transform: scale3D(1, 1, 1);
              transform: scale3D(1, 1, 1);
    } 35% {
      -webkit-transform: scale3D(0, 0, 1);
              transform: scale3D(0, 0, 1);
    } 
  } */