*{
    font-family: 'Raleway', sans-serif;
    box-sizing: border-box; 
}

html{
    width:100%; 
}

main{
    display:grid; 
    grid-template-rows: 15vh 1fr 60vh; 
}




body{
    width:100%; 
    margin: 0; 
}

header#title{
    font-size: 30px; 
    margin-left: 40px; 

}

/*DETAILS HEADERS*/ 

#songDetails{
    grid-row: 2; 
}
#eventDetails{
    grid-row: 3; 
}

/*SECTIONS*/ 

#search{
    height: 15vh; 
    width: 100%; 
    margin-left: 80px; 
}

#songs{ 
    padding: 2vw; 
    display:grid; 
    grid-template-columns: repeat(3,30vw); 
    gap: 3vw; 
    grid-template-rows: repeat(3,1fr);  
    width: 100%; 
}

#events{
    padding: 2vw; 
    display:grid; 
    grid-template-columns: repeat(3,30vw); 
    gap: 3vw;  
    grid-template-rows: repeat(4,1fr);  
    width: 100%; 
}

#songsByArtistName>h1, #eventsByArtistName>h1{
    margin-left: 40px; 
    font-size: 40px; 
}
h1#eventDetails{
    margin-left: 40px; 
    font-size: 40px; 
}



/* SONG ICON STYLES */

.songIcon{

    width:100px; 
    height:100px; 
    border: 3px solid black; 
    border-radius: 5px; 
    box-shadow: 1px 3px 3px 2px rgb(0, 0, 0, .2); 
    display:flex; 
    justify-content:center; 
    align-items:center; 
    margin-bottom: 10px; 
}

h2{
    font-size: 20px; 
}

.songIcon i.notPlaying{
    visibility:hidden; 
}
.songIcon:hover i.notPlaying{
    visibility:visible; 
    
}
.songIcon:hover{
    box-shadow: 4px 7px 4px 3px rgb(0, 0, 0, .3); 
    filter: brightness(70%)
}

.songIcon i{
    display: block; 
    font-size: 50px; 
    color: white; 
    cursor:pointer; 
}

.songwrap>*{
    padding: 10px; 
}

.date{
    font-size: 20px; 
    font-weight: bold; 
    margin-bottom: 5px; 
}
.songwrap{
    display:flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 30px; 
    text-align: center; 
    box-shadow: 0px 5px 3px 2px rgb(0, 0, 0, .2); 
    border-radius: 10px; 
    max-height: 60vh; 

}
/*EVENT WRAPPERS*/
.eventwrap{
    display:flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 30px; 
    text-align: center; 
    box-shadow: 0px 5px 3px 2px rgb(0, 0, 0, .2); 
    border-radius: 10px; 
    max-height: 70vh; 

}

.eventwrap>h3{
    text-transform: uppercase;
}

.eventIcon{
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

/* EVENT IMAGE STYLES*/
#events img{
    width: 15vw; 
    border-radius: 10px; 
}

a:hover>img{
    box-shadow: 1px 3px 3px 3px rgb(0, 0, 0, .3);
    filter: brightness(90%); 
}

a>img{
    box-shadow: none; 
}

/*COLORING FOR SONG WRAPPERS*/

.songwrap:nth-child(n){
    background-color: rgb(149, 150, 209); 
}

 .songwrap:nth-child(n+4){
    background-color: rgb(179, 228, 236); 
}
.songwrap:nth-child(n+7){
    background-color: rgb(220, 127, 167); 
}

/*COLORING FOR EVENT ICONS*/

.cancelled{
    background-color: gray;
}
.offsale{
    background-color: rgb(220, 186, 229);
}
.postponed{
    background-color: rgb(156, 174, 224);
}
.onsale{
    background-color: rgb(150, 221, 179);
}
.rescheduled{
    background-color: rgb(234, 226, 167);
}


audio::-webkit-media-controls-play-button{
    display:none; 
}
.hidden{
    display:none; 
}

p{
    padding:0; 
    margin:0; 
}


summary h1:empty{
    display:none; 
}


/*from stack overflow  https://stackoverflow.com/questions/56758098/how-to-position-detail-marker-to-come-after-summary */

details>summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none
}

summary h1::after {
    content: ' ►';
}

details[open] summary h1:after {
    content: " ▼";
}
summary:hover{
    cursor:pointer; 
}


/*SEARCH RESULTS STYLES*/ 

#selectResults{
    display:flex; 
    align-items:center;
    justify-content: center;  
    flex-wrap: wrap; 
    width: 100%; 
}

#searchResultsWrapper{
    padding: 20px;

}
#searchResultsWrapper header{
    font-size: 30px; 
    margin-bottom: 40px; 
}

.searchResult{
    padding:10px; 
    margin:10px;  
    display:flex; 
    align-items:center; 
    justify-content:center; 
    flex-direction: column;
    height: fit-content; 
    background-color: rgb(222, 175, 175); 
    width: fit-content; 
    min-width: 5%; 
    border-radius: 10px; 
}
.searchResult:hover{
    background-color: rgb(135, 99, 99); 
}


@media only screen and (max-width: 900px){
    #songs, #events{
        display:flex; 
        flex-direction: column; 
        align-items: center; 
    }
    .songwrap,.eventwrap{
        max-height: none; 
        height: fit-content; 
        max-width: none; 
        width: 90%; 
        margin-bottom: 30px; 
    }
    #search{
        margin:0;
        display:flex; 
        justify-content: center;  
        height: fit-content; 
    }
    #searchForm{
        display:flex; 
        flex-direction: column; 
        font-size: 20px; 
        width: 80vw; 
        margin-bottom: 50px; 
    }
    #searchForm *{
        margin-bottom: 20px; 
    }

    #searchFrom h2{
        text-align:center; 
    }

    main{
        grid-template-rows: 30vh 1fr 60vh; 
    }
    #searchResultsWrapper header{
        text-align: center; 
    }

    h1{
         
        text-align: center; 
        margin: 0;
        margin-bottom: 40px; 
        margin-top: 40px; 
    }
    #songsByArtistName>h1, h1#eventDetails{
        margin: 0;
        margin-bottom: 80px; 
        margin-top: 80px; 
    }
    
    header#title{
        margin-left:0; 
    }

}
