@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif&display=swap');

#map {
    height: 100%;
}

.piece {
    border: 1px grey solid;
    width: 300px;
    float: left;
    margin: 15px;
    background-color: #eeeeee;
}

body {
    margin: 0px;
    padding: 0px;
    font-family: 'IBM Plex Serif', serif;
}

main {
    padding: 5px;
}

/*styling forms*/
form {
    max-width: 900px;
    display: grid;
    grid-template-columns: 200px 200px auto auto;
    grid-row-gap: 5px;

}

label {
    text-align: right;
    margin-right: 10px;
    grid-column-start: 1;
}

input {
    grid-column-start: 2;
}

input[type=submit] {
    font-size: 20pt;
    margin-top: 20px;
    grid-column: 2;

}


/*Google Maps API UI*/
#map {
    height: 400px;
    width: 100%;
    grid-column-start: 2;
    grid-column-end: 10;
}


#search-container {
    align-items: center;
    margin-bottom: 10px;
    grid-column: 2/6;
}

/*nav bar*/
nav {
    padding: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 90px;
    background-color: #333300;
    position: sticky;
    top: 0px;
    z-index: 10;
}

nav a {
    font-size: 1.6em;
    color: white;

}

nav:last-child() {

    text-align: left;
}

/*artists using flex box*/
#artist-container,
#piece-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-right: 9%;
    /*To allow for add + icon*/
}

#artist,
#piece {
    margin: 5px;
    height: 280px;
    width: 200px;
    font-family: verdana;
    background-image: linear-gradient(to top, white 10%, 333300 100%);
    border-radius: 2%;
    transition: 0.5s;
    border: solid 1px #bbbbbb;
}

#artist:hover,
#piece:hover {
    transform: scale(1.1);
}

#artist > img,
#piece > img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: 25% 25%;
}

section > a {
    text-align: right;
}

section {
    position: relative;
    top: -90px;
}

#artist h2,
#piece h2 {
    height: 60px;
    vertical-align: baseline;
    font-size: 1.2em;
    color: white;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

#artist a,
#piece a {
    color: #333300;
}

#artist_id,
#piece_id {
    display: block;
    color: grey;
    clear: both;
    font-size: small;
}

#detail {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 3fr;
    gap: 20px;

}


#detail > #piece-container {
    justify-content: flex-start;
}

figure {
    padding: 0px;
    margin: 5px;
}

figure > img {
    height: 500px;
}

#sub-nav {
    position: fixed;
    top: 150px;
    right: 2%;
}

#sub-nav > a {
    background-color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration-line: none;
    color: #333300;
    border-top: solid 4px grey;
    border-bottom: solid 2px grey;

}

#sub-nav > a > span:nth-child(1) {
    font-size: 6em;
    line-height: 0.7em;
    transition: 0.5s;

}

#sub-nav > a > span:nth-child(1):hover {
    transform: scale(1.2);
    line-height: 1em;


}

#sub-nav > a > span:nth-child(2) {
    font-size: 1.5em;
    font-variant-position: super;
}




@media screen and (max-width: 900px) {




    nav {
        display: inline-flex;
        padding: 3px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: bottom;
        width: 100%
    }

    nav a {
        font-size: 1em;
    }

    nav > div {
        order: -1;
        flex: 0 0 100%;
        width: 50%;
        text-align: center;
    }

    nav > div > img {
        margin-top: -20px;

    }

    /*
    section {
        position: relative;
        top: 0px;
    }

    #artist h2,
    #piece h2 {
        height: 20px;
        vertical-align: middle;
        font-size: 1.2em;
        color: black;
    }
*/

    #artist,
    #piece {
        margin: 4px;
        width: 90%;
        font-family: verdana;
        border-radius: 2%;
        transition: 0.5s;
    }

    #artist > img,
    #piece > img {
        width: 100%;
        /*        height: 20%;*/
        /*        object-fit: cover;*/
        object-position: 20% 30%;
    }

    #detail {
        display: grid;
        grid-template-rows: auto auto auto auto;
        grid-template-columns: none;
        gap: 20px;

    }


    form {
        max-width: 600px;
        display: grid;
        grid-template-columns: 100px 200px auto auto;
        grid-row-gap: 2px;

    }

    #map {
        height: 400px;
        width: 100%;
        grid-column-start: 1;
        grid-column-end: 10;
    }

    label {

        margin-right: 1px;
        grid-column-start: 1;
    }

    input[type=submit] {
        font-size: 20pt;
        margin-top: 20px;
        grid-column: 1/3;

    }


    #sub-nav {
        top: auto;
        bottom: 20px;
    }

}



/*pieces using grid*/
/*
#piece-container {
    display: grid;
    grid-template-columns: repeat(3, auto);
}

#piece {
    margin: 10px;
    width: 400px;
    text-align: center;
    font-family: verdana;
    border-radius: 2%;
    transition: 0.5s;
    border: solid 1px #330867;
}

#piece:hover {
    transform: scale(1.2);
}

.piece > img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    object-position: 25% 25%;
    transition: 0.5s;

}

.piece > img:hover {
    width: 500px;
    height: 400px;
    object-fit: cover;
    object-position: 25% 25%;

}

#piece h2 {
    margin-bottom: 0px;
    color: white;
    background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);

}

#piece_id {
    display: block;
    color: grey;
    clear: both;
    font-size: small;
}

#piece > footer {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}*/
