/* overall style */
body{
    margin: 0px;
    padding: 0px;
    background-color:#473c2e;
    overflow: hidden;
    width: 100%;
    height: 100%;
}
#brain{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 70px;
    object-fit: cover;
    background-position: center;
    transition: all 0.5s ease-out;
}
#brain:hover{
    filter: opacity(0.7) brightness(1.5);
    transform: scale(1.05);
}
#title, #title2{
    bottom:10px;
    position:relative;
    text-align: center;
    font-size: 6.4vw;
    color:#4f6834;
    animation: titleGrade 5s ease infinite;
    text-shadow: 5px 5px 8px #000000a2;
}
#title2{
    display: none;
}
#sec1{
    position: relative;
    width: 100vw;
    height: 100vh;
}
#subTitle{
    position: relative;
    color: #4f6834;
    font-size: 2.6vw;
    margin-top: -20px;
    margin-bottom: -10px;
    text-shadow: 5px 5px 8px #000000a7;
}
/* flexbox align */
.flexBar{
    position: relative;
    width: 100%;
    height: 80%;
    top: 0px;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
#boxTilAlign{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: fit-content;
    max-width: 33%;
    max-height: 100%;
    margin: 0px;
    padding: 0px;
    height: fit-content;
}
#titleAlign{
    background-image: linear-gradient(to bottom, #868761, #473c2e);
    opacity: 0.64;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0px;
    height: 20%;
    width: 100%;
}
#coverAlign{
    width: 100%;
    height: 65%;
}
#songInfoAlign{
    height: 10%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0px;
    font-size: 1.4rem;
    text-align:center;
    color: #2f281e;
}
#playBtnAlign{
    height: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0px;
    padding: 0px;
    margin: 0px;
    width: 100%;
    position: relative;
    bottom: 0px;
}
#progressAlign{
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
}
#progressAlign button{
    width: 20px;
    height: 18px;
    background-color: #4d5d31;
    border: none;
    color: #949d83;
    font-weight: bold;
    font-size: 12px;
}
#progressAlign button:hover{
    background-color: #5a6b3d;
}
#progressAlign button:active{
    background-color: #7b8d5d;
}

/* media boxoes */

#imgBox, #audBox, #vidBox{
    /*bottom: 2vh;*/
    overflow-y: scroll;
    width: 29.5vw;
    height: 64vh;
    padding: 6px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: rgba(79,104,52,0.34);
    scrollbar-color: #4f6834 rgba(79,104,52,0.4);
    box-shadow: 15px 10px 20px #000000a2;
    border: outset 10px rgba(79,104,52,0.2);
    position: relative;
}
#imgBox{
    display: grid;
    grid-template-columns: repeat(3, minmax(9vw, 1fr));
    gap: 0.4rem;
    grid-auto-rows: 9vw;
    grid-auto-flow: dense;
}
#audBox{
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}
#vidBox{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}
#cover{
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    aspect-ratio: 1/1;
    max-width: 65%;
    max-height: 90%;
    border: outset 10px #473C2E;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 5px 5px 10px #000000a7;
}
#coverImg{
    object-fit: cover; 
    width:100%; 
    height:100%;
}
.audBtn{
    box-sizing: border-box;
    aspect-ratio: 1/1;
    max-width: 90px;
    height: auto;
    font-size: 34px;
    cursor: pointer;
    border: outset 7px #473c2e;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4f4b33;
    color: #2f281e;
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
    box-shadow: 5px 5px 10px #000000a7;
}
.audBtn:hover{
    background-color: #524e38;
}
.audBtn:active{
    border: inset 7px #473c2e;
    background-color: #403d29;
    box-shadow: 0px 0px 5px #000000a2;
}

#songBar{
    width: 100%;
    appearance: none;
    height: 18px;
    background:  rgba(79,104,52,0.4);
}
#songBar::-moz-range-thumb{
    appearance: none;
    background-color: #4f6834;
    border: none;
    width: 14%;
    height: 100%;
    border-radius: 0px;
}
#songBar::-moz-range-thumb:hover{
    background-color: #6f8a53;
}
#songBar::-moz-range-thumb:active{
    background-color: #b1c997;
}
/* for other browsers other than firefox */
#songBar::-webkit-slider-thumb{
    -moz-appearance : none;
    -webkit-appearance : none;
    background-color: #4f6834;
    border: none;
    width: 40px;
    height: 18px;
    border-radius: 0;
}
#songBar::-webkit-slider-thumb:hover{
    background-color: #6f8a53;
}
#songBar::-webkit-slider-thumb:active{
    background-color: #b1c997;
}
#mediaVid{
    margin: 8px 4px 3px 0px;
    border: outset 7px #473C2E;
    max-width: 94%;
    border-radius: 5px;
    box-shadow: 5px 5px 15px #000000a7;
}
#mediaImg{
    border-radius: 5px;
    overflow:hidden;
    opacity: 0.7;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 5px 5px 15px #000000a2;
}
#mediaImg:hover{
    opacity: 1;
    transform: scale(1.044);
}
#mediaImg:active{
    z-index: 0;
    transform: scale(1);
}
#mediaImg img{
    object-fit: cover; 
    width:100%; 
    height:100%;
}
.logoBox{
    display:flex;
    justify-content:center;
    align-items:center;
    width:80vw;
    height:100%;
    background-position:center;
}
.logo-wide{
    position:relative;
    top:5px;
    width: auto;
    height: 100%;
    object-fit: cover;
}
#version{
    position:absolute;
    right: 5px;
    bottom: 1px;
    color: rgb(255, 255, 255);
    z-index: 1;
    margin: 0px;
    padding: 0px;
    text-decoration: none;
}
/* Popup Image */
#popUpBack{
    z-index: 20;
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#popUpMedia{
    position: relative;
    border-radius: 5px;
    left:50%;
    transform:translate(-50%, 0px);
    border: outset 10px #473C2E;
    max-height: 50vh; max-width: 60vw;
    box-shadow: 10px 10px 8px rgba(0, 0, 0, 0.5);
}
.popAlign{
    width:fit-content;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.glass{
    background: linear-gradient(180deg, rgba(52, 57, 37, 0.6), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#popUpDetails{
    position: relative;
    max-height: 50vh; max-width: 60vw;
    min-width: 300px; 
}
#popUpDetails p{
    font-size: 1.4em;
    color: #857c71;
    text-shadow: 5px 5px 4px rgba(0, 0, 0, 0.5);
}
#popUpDetails b{
    color: #565c43;
}
#popContainer{
    width:fit-content;
    height:fit-content;
}
#waveContainer{
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    bottom: 0px;
    left: 0px;
}
#waveCanvas{
    width: 100%;
    height: 100%;
}

/* footer style */
#version{
    position:relative;
    right: 5px;
    bottom: 1px;
    color: rgb(255, 255, 255);
    z-index: 1;
    margin: 0px;
    padding: 0px;
    text-decoration: none;
}
#fBox{
    width: 100%;
    position: absolute;
    bottom: 0px;
    height: fit-content;
    padding-top: 2px;
    padding-bottom: 0px;
    background-color:rgb(56, 49, 41);
    display: flex;
    justify-content:space-evenly;
    align-items: center;
}
#fContainer{
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#fContainer p, a{
    color:rgb(201, 201, 201);
    font-size: 14px;
    text-decoration: none;
}
.progAlign{
    display:flex;
    justify-content:center;
    align-items:center;
}
.progAlign p{
    font-family:courier, arial;
    font-weight:900;
    position:relative;
}
@media(max-width:1400px){
    #imgBox{
        display: grid;
        grid-template-columns: repeat(2, minmax(50%, 1fr));
        gap: 0.3rem;
        grid-auto-rows: 50%;
        grid-auto-flow: dense;
    }
    body, html{
        overflow-x:hidden;
    }
}
@media(max-width:1200px){
    #fBox{
        position: relative;
    }
    .logo-wide{
        display:none;
    }
    .logo-tall{
        display: block !important;
        object-fit:cover;
        width:100%;
        height:auto;
    }
    .logoBox{
        width:90vw;
        height:100%;
    }
    #boxTilAlign{
        max-width: 100%;
    }
    #titleAlign{

        height: 50vh;
    }
    #imgBox{
        display: grid;
        grid-template-columns: repeat(6, minmax(30vw, 1fr));
        gap: 0.8rem;
        grid-auto-rows: 30vw;
        grid-auto-flow: dense;
        overflow-x:scroll;
    }

    #imgBox, #audBox, #vidBox{
        position: relative;
        width: 70vw;
        height: 80vh;
        padding: 6px;
    }
    body{
        overflow-y: scroll;
        height: fit-content;
    }
    .flexBar{
        position: relative;
        width: 100%;
        height: 350vh;
        display: flex;
        align-items: center !important;
        justify-content: space-evenly;
        flex-direction: column;
    }
    #subTitle{
    position: relative;
    color: #4f6834;
    font-size: 8vw;
    margin-top: -20px;
    text-shadow: 5px 5px 8px #000000a7;
    }
}
@media(max-width:980px){
    #imgBox, #audBox, #vidBox{
        position: relative;
        width: 70vw;
        height: 60vh;
        padding: 6px;
        margin:10px;
        border: outset 10px rgba(79,104,52,0.2);
    }
    #cover{
        max-width: 75%;
    }
    .audBtn{
        top:3px;
        box-sizing: border-box;
        aspect-ratio: 1/1;
        width: 55px;
        max-width:20%;
        font-size: 24px;
        cursor: pointer;
        border: outset 7px #473c2e;
        border-radius: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #4f4b33;
        color: #2f281e;
        margin-left: 4px;
        margin-right: 4px;
        position: relative;
        box-shadow: 5px 5px 10px #000000a7;
    }
    #songInfoAlign{
        font-size: .94rem;
    }
}