body, html {
   margin: 0;
   padding: 0;
   overflow: hidden;
   height: 100%;
}

.background {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: url('./assets/LACourt.png');
   background-size: cover;
   background-position: center center;
   background-repeat: no-repeat;
   z-index: -1;
}

.main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 200px;
    align-items: center;
    height: 100%;
}

.center h2, .center h3{
    text-align: center;
    font-size: 30px;
    color: white;
    text-shadow: 
        -3px -3px 0 #000,  
         3px -3px 0 #000,  
        -3px  3px 0 #000,  
         3px  3px 0 #000;  
    font-family: monospace;
}

.center h3 {
    margin-bottom: 90px;
}

.shop {
    margin-bottom: 50px;
    text-align: center;
}

.shop h2 {
    font-size: 30px;
    color: white;
    text-shadow: 
        -3px -3px 0 #000,  
        3px -3px 0 #000,  
        -3px  3px 0 #000,  
        3px  3px 0 #000;  
    font-family: monospace;
}

.shop-item {
    background-color: #552583; 
    outline-style: solid;
    outline-width: 3px;
    outline-color: black;
    color: white;
    
    font-family: monospace;
    font-size: 20px;
    padding: 10px;
    width: 300px;
    margin: 10px;
    border-radius: 3px;
    cursor: pointer;
}

.shop-item:hover {
    filter:brightness(90%);
    cursor: pointer;
}

.lebron-image {
    width: 300px;
    animation: moveUpDown 2s infinite ease-in-out;
}

.lebron-image:hover {
    filter: brightness(80%);
    cursor: pointer;
}

.lebron-image:active {
    filter: brightness(50%);
}

@keyframes moveUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-50px);
    }
}

@keyframes dropOutScreen {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0);
        opacity: 0;
    }
    25% {
        transform: translateY(-50px) translateX(var(--randomX)) rotate(var(--firstRotation));
    }
    50% {
        transform: translateY(-100px) translateX(calc(var(--randomX) * 1.4)) rotate(var(--secondRotation));
        opacity: 1;
    }
    100% {
        transform: translateY(200px) translateX(calc(var(--randomX) * 1.8)) rotate(var(--thirdRotation)); 
        opacity: 0;
    }
}

.drop-lebron {
    animation: dropOutScreen 0.5s forwards ease-in;
}

.sunshine {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 20px;
    z-index: 2;
}

.sunshine img {
    width: 400px;
    animation: zoomIn 0.3s ease-in-out;
}

.hidden {
    display: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    } to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}


.sunshine:hover {
    filter: brightness(80%);
    cursor: pointer;
}

.sunshine:active {
    filter: brightness(50%);
}

button.open-pack {
    background-color: #FDB927; 
    outline-style: solid;
    outline-width: 3px;
    outline-color: black;
    color: white;
    
    font-family: monospace;
    font-size: 25px;
    padding: 10px;
    width: 200px;
    height: 100px;
    border-radius: 3px;
    cursor: pointer;
    border: none;

    position: absolute;
    top: 11.5%;
    left: 102%;
}

button.open-pack:hover {
    filter: brightness(80%);
}
