button {
    min-width: fit-content;
    width: 22%;
    font-size: 18px;
    margin-top: 2%;
    margin-bottom: 2%;
    border: none;
    border-radius: .5rem;
    background-color: #FF0033;
    padding: .32rem;
    color: #F4F3F2;
    cursor: pointer;
}

input[type = "text"]{
    margin-bottom: 2%;
    font-size: 18px;
}

label {
    font-size: 18px;
}

#searchResultsContainer{
    border: #441122;
    border-width: 2px;
    border-style: solid;
    height: 68vh;
    margin: 0px;
    padding: 0px;
    gap: 0px;
    display: none;
}

#videoListContainer{
    border-width: 1em;
    width: 66%;
    overflow-y:scroll;
}

.videoCard{
    display: grid;
    grid-template: 4em 40px / 160px auto 24px;
    grid-template-areas: "thumbnail videoTitle videoTitle" "thumbnail channelTitle index";
    border: #F8FAFF;
    border-width: 2px;
    border-style: solid;
    padding: 10px;
    margin: 0px;
    opacity: 90%;
    cursor: pointer;
}

.videoCard:hover{
    opacity: 100%;
    background-color: #F8FAFF;
}


.videoCard > img{
    align-self: center;
    justify-self: center;
    transform: translateY(-4%);
    grid-area: thumbnail;
}

.videoTitleContainer{
    grid-area: videoTitle;
    line-height: 1.2em;
    height: 3.95em;
    overflow: hidden;

    text-align: start;
}

.videoTitleContainer > h3{
    padding:0px;
    margin:0px;
}

.videoCard > h4{
    align-self: center;
    grid-area: channelTitle;
    overflow: hidden;
    height: 2.4em;
    line-height: 1.2em;
}

.videoCard > h5{
    grid-area: index;
}

#youtubeEmbedContainer{
    position: relative;
    width: 34%;
    overflow-y: auto;
}

.embedCard{
    display: flex;
    flex-direction: column;
    position: absolute;
    justify-self: center;
    align-self: center;
    align-content: center;
    
    top: 5%;
    left: 6%;
    width: 88% !important;
    overflow: wrap;
    overflow-wrap: break-word;
    opacity: 0;
    visibility: hidden;
}

#player{
    align-self: center;
    border: none;
    min-width: 200px;
    min-height: 200px;
    width: 100%;
}

#searchBarTextContainer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


#checkboxContainer{
    display: inline-block;
    flex-direction: column;
    justify-items: left;
    padding-bottom: 4%;
}

.checkboxLine > *{
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: #FF0033;
}

.infoScreen,
.loadingScreen,
.errorScreen{
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
}

.infobox,
.errorBox{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    padding: 2%;
    border-radius: 1rem;
    background-color: #F4F3F2;
}

.closeButton{
    float: right;
    text-align: center;
    cursor: pointer;
    width: 1.5rem;
    line-height: 1.5rem;
    border-radius: 1rem;
    background-color: #FF0033;
    color: #F4F3F2;
}

.infobox > h3{
    text-align: center;
}

.loadingIcon {
    margin: 20% auto;
    border: 16px solid #F4F3F2;
    border-top: 16px solid #FF0033; 
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.show{
    opacity: 1;
    visibility: visible;
}


@media (max-width: 560px){
    #searchResultsContainer{
        flex-direction: column-reverse;
        height: 86vh !important;
        width: 94vw;
    }
    #videoListContainer{
        flex: 1 1 54vh;
        width: 100%;
    }
    #youtubeEmbedContainer{
        flex: 1 1 32vh;
        width: 98% !important;
    }
    .embedCard{
        flex-direction: row;
    }
}