/* root colors */
:root {
    --primary: #800;
    --adjacent1: #820;
    --adjacent2: #802;
    --complimentary: #088;
    --triad1: #080;
    --triad2: #008;
    --light: #F00;
    --dark: #600;
    --neutral: #41414142; 

}

/* main page background, updates upon submit */
body {
    background-color: var(--dark);
    transition: all 1s;
}

/* h1, p controls the color of the main page title and the hexcode labels */
h1, p {
    color: white;
}


circle {
    fill: var(--primary);
}

path {
    fill: var(--complimentary);
}

/* adjust background of form for visibility of displayed color swatches */

.form-control {
    background-color: var(--neutral);
    color: white;
    border-color: var(--complimentary);
    box-shadow: inset 10px 10px 30px 0px rgba(0,0,0,0.47);
}

.form-control button {
    background-color: var(--primary);
    box-shadow: inset 10px 10px 30px 0px rgba(0,0,0,0.47);
}

/* color of hexcode format placeholder for visibilty */
.form-control input::placeholder {
    color: white;
}


/* logo background circle color, updates upon submit */
circle {
    fill: var(--primary);

}

/* center polygon shape in logo, updates upon submit */
path {
    fill: var(--complimentary);
}

/* svg logo color change on hover */
path:hover {
    fill: var(--adjacent1)
}

/* adjusting background for visibility of displayed swatches, also sets size within modal */

.swatches {
    background-color: var(--neutral);
    border-color: var(--complimentary);
    border: solid 1px var(--complimentary);
    border-radius: 30px;
    margin: 1em 0;
    padding-bottom: 1em;
    visibility: visible;
}

/* positions hexcode numbers on circles and changes font. */
.hexcode {
    position: relative;
    top: 50px;
    left: -5px;
    font-family: 'Courier New', Courier, monospace;
}

/* labels what type of color is being displayed primary, adj1, adj2, complimentary, tri1, tri2, light, dark. */
.colorType {
    position: relative;
    top: -65px;
    left: -20px;
    font-size: 15px;
}

/* displayed favorites on main page */
#favorites-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* adding styling to swatches to increase visibility */
.circle {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    box-shadow: 6px 7px 14px 0px rgba(0,0,0,0.77);
}


.card-body {
    padding: 0 2em;
    padding-bottom: 2em;
}

.flex-container {
    display: flex;
    justify-content: space-around;
}

/* setting each swatch circle color */
.primary {
    background-color: var(--primary);
}

.adjacent-1 {
    background-color: var(--adjacent1);
}

.adjacent-2 {
    background-color: var(--adjacent2);
}

.complimentary {
    background-color: var(--complimentary);
}

.triad-1 {
    background-color: var(--triad1);
}

.triad-2 {
    background-color: var(--triad2);
}

.light {
    background-color: var(--light);
}

.dark {
    background-color: var(--dark);
}

.modal-content, h5, .modal-body {
    background-color: var(--primary);
    color: white;
    border-color: var(--complimentary)
}

.square {
    width: 50px;
    height: 50px;
    background-color: var(--complimentary);
    margin: 1px;
}

.hexcode-fav {
    position: relative;
    top: 19px;
    left: 3px;
    font-size: x-small;
    font-family: 'Courier New', Courier, monospace;
}

.card {
    width: 387px;
    margin: 1em auto;
    padding-top: 1em;
    background-color: var(--neutral);
    flex-shrink: 0;
    flex-grow: 0;
}

#favorites-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#no-favorites {
    display: flex;
    justify-content: center;
    font-size: 40;
    margin-top: 20px;
}

/* creating responsiveness from a mobile-first perspective. starting at 768px */
@media only screen and (min-width: 768px) {
    .circle {
        height: 100px;
        width: 100px;
    }

    .hexcode {
        top: 35px;
        left: 17px;
    }

    header {
        height: 40vh;
        margin-bottom: 10%;
    }

    h1 {
        font-size: 75px;
    }

    .card {
        width: 600px;
        min-height: 300px;
    }

    .hexcode-fav {
        font-size: large;
        top: 38px;
        left: 9px;
    }
}

/* creating responsiveness from a mobile-first perspective. starting at 992px */
@media only screen and (min-width: 992px) {
    .circle {
        height: 100px;
        width: 100px;
    }

    .hexcode {
        top: 38px;
        left: 17px;
    }

    header {
        height: 40vh;
    }

    h1 {
        font-size: 100px;
    }
 
    .hexcode-fav {
        font-size: large;
    }

    .card {
        flex-basis: 600px;
    }
}

/* creating responsiveness from a mobile-first perspective. starting at 2200px */
@media only screen and (min-width: 2200px) {
    .circle {
        height: 100px;
        width: 100px;
    }

    .hexcode {
        top: 38px;
        left: 17px;
    }

    header {
        margin: 1em;
        height: 40vh;
        margin-bottom: 5%;
    }

    h1 {
        font-size: 100px;
    }

    .hexcode-fav {
        font-size: large;
    }
}

/* displayed text when no favorites are in localStorage */
#no-favorites {
    display: flex;
    justify-content: center;
    font-size: 40;
    margin-top: 20px;
}