



#infobox {
    position:fixed;
    width:100%;
    height:calc(100% - 50px);
    margin-top: 50px;
    xborder:1px solid lime;
    xbackground-color:rgba(0,0,0,0.5);

    transition:transform 0.2s;
    display:flex;
    align-items: end;
    justify-content: end;
    xpadding:5px;
    z-index:1;
}

#infobox.hidden {
    transform: translateX(-100vw);
}

#infobox > .box {
    xborder:1px solid grey;
    border-radius:5px;
    background-color:#171b25;
    width:100%;
    height:100%;
    padding:0px 10px 10px 10px;

    display:flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    box-shadow:0px 0px 5px 0px rgba(0, 0, 0, 0.5);
  
}

#infobox > .box > .top {
    xborder:1px solid grey;
    display:flex;
    align-items: center;
    justify-content: space-between;
    width:100%;
    height:50px;
}

#infobox > .box > .top > .icon-button {
    xborder:1px solid grey;
    height:100%;
    aspect-ratio: 1/1;
    padding:5px;
    display:flex;
    align-items: center;
    justify-content: center;
    font-size:1.5em;
    cursor:pointer;
}

#infobox > .box > .top > .icon-button:active {
    color:grey;
    background-color:rgba(0,0,0,0.5);
}

#infobox > .box > .top > .icon-button > i {
    pointer-events:none;
}

#infobox > .box > .title {
    xborder:1px solid grey;
    width:100%;
    display:flex;
    align-items: center;
    justify-content: start;

    font-size:1.5em;
    padding:5px 10px;
}

#infobox > .box > .basic-info {
    xborder:1px solid grey;
    padding:5px 10px;
    color:grey;
    display:flex;
    align-items: center;
    justify-content: start;
    margin-bottom:5px;
}

#infobox > .box > .basic-info > div {
    margin-right:5px;
}

#infobox > .box > .buttons {
    xborder:1px solid grey;
    width:100%;
    height:50%;
    display:flex;
    align-items: center;
    justify-content: center;

    
}

#infobox > .box > .buttons.hidden {
    display:none;
}

#infobox > .box > .buttons > .button {
    xborder:1px solid grey;
    border-radius:5px;
    width:80%;
    height:50%;
    display:flex;
    align-items: center;
    justify-content: center;
    font-size:1.5em;
    cursor:pointer;

    background-color: rgb(37, 51, 71);
    border-bottom: 5px solid rgb(0, 0, 0);
    border-top: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.9)
}

#infobox > .box > .buttons > .button:active {
    background-color: rgb(30, 30, 30);
    border-bottom: 5px solid rgba(0, 0, 0, 0);
    transform:translateY(3px);
}

#infobox > .box > .buttons > .button > i {
    pointer-events:none;
    margin-right:5px;
}

#infobox > .box > .main-info {
    xborder:1px solid grey;
    display:flex;
    align-items: start;
    justify-content: start;
    xmargin-bottom:10px;
}

#infobox > .box >  .main-info > .image-cont {
    xborder:1px solid grey;
    display:flex;
    align-items: center;
    justify-content: center;
    padding:5px;
    width:40%;
    aspect-ratio:2/3;
}

#infobox > .box >  .main-info > .image-cont > img.image{
    width:100%;
    height:100%;
    border-radius:5px;
    xbox-shadow:5px 5px 0px rgba(0, 0, 0, 0.5);
}

#infobox > .box >  .main-info > .right {
    width:60%;
    padding:5px;
}

#infobox > .box >  .main-info > .right > .plot {
    xpadding:5px;
}

#infobox > .box > .genres {
    xborder:1px solid grey;
    display:flex;
    align-items: center;
    justify-content: start;
    flex-wrap:wrap;
    padding: 10px 5px 10px 5px;
}

#infobox > .box > .genres > .genre {
    border:0.5px solid grey;
    border-radius: 50px;
    margin:2.5px;
    padding:10px;
}

#infobox > .box > .info {
    xborder:1px solid grey;
    padding:5px;
 
}

#infobox > .box > .info > .label {
    font-weight:bold;
    margin-right:5px;
 
}


#infobox > .box > .ratings {
    xborder:1px solid grey;
    display:flex;
    align-items: center;
    justify-content: space-evenly;
    width:100%;
    padding:5px 5px 10px 5px;
}

#infobox > .box > .ratings > .rating {
    xborder:1px solid grey;
    border-radius:5px;
    background-color:rgba(0, 0, 0, 0.5);
    width:30%;
    height:100%;
    padding:5px;

    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

#infobox > .box > .ratings > .rating > .icon {
    xborder:1px solid grey;
    width:30px;
    aspect-ratio: 1/1;
    font-size:1.5em;
    display:flex;
    align-items: center;
    justify-content: center;
}

#infobox > .box > .ratings > .rating.imdb > .icon > i {
    color:#f5c518;
    color:black;
    background-color:#f5c518;
    font-size:1em;
    xborder:5px solid black;
}

#infobox > .box > .ratings > .rating.rt > .icon {
    color:#fa320a;
    transform: rotate(-5deg);
}

#infobox > .box > .ratings > .rating.mc > .icon {
    border:3px solid #ffbd3f;
    border-radius: 100%;
    background-color:black;
    xpadding:3px;
    transform: rotate(-35deg);
    font-size:1em;
}

#infobox > .box > .ratings > .rating > .label {
    display:flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color:grey;
}

#infobox > .box > .ratings > .rating > .value {
    display:flex;
    align-items: center;
    justify-content: center;
    xcolor:lime;
    font-weight:bold;
}

#infobox > .box > .trailer-cont {
    padding: 20px 0px 0px 10px;
}


/* Infobox styles on desktop */
@media all and (min-width:769px) {
	#infobox {
        width:50%;
        height:90%;
        margin-top: 0px;
        display:flex;
        align-items: center;
        justify-content: start;
        xposition:relative;
        margin:auto;
        transform: translateX(25vw);
	}

    #infobox > .box >  .main-info > .image-cont {
        xborder:1px solid grey;
        display:flex;
        align-items: center;
        justify-content: center;
        padding:5px;
        width:20%;
        aspect-ratio:2/3;
    }
}