:root {
    --purple: #3621B9;
    --mint: #00FFA3;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

/* ##################################### body ##################################### */
body {
    display: flex;
    flex-direction: column;
    align-items: space-between;
    margin: auto;
    background-image: url("../images/zebra.png");
    letter-spacing: 1.2px;
}

h1 {
    font-size: 5rem;
    color: var(--mint);
    font-weight: 800;
    margin: 0;
}

h2, h3 {
    color: white;
    font-weight: 100;
    font-size: 1.5em;
    font-weight: 300;
}

a {
    color: var(--mint);
}

/* ##################################### header ##################################### */
header {
    background-color: var(--purple);
    padding: 3em;
}


/* ##################################### gallery/main ##################################### */

#col2 {
    padding: 3%;
    color: white;
}

/* ##################################### instructions paragraph ##################################### */
.instructions h3 {
    padding: 20px 12%;
    margin: 20px auto;
}


/* ##################################### cards container ##################################### */
.container {
    text-align: center;
}

#gallery .btn {
    color: white !important;
}

#gallery .btn:hover {
    text-decoration: underline;
}


#gallery {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--purple);
    border-radius: 30px;
}

.card {
    background-color: white;
    border: 7px solid black;
    border-radius: 14px;
}


/* ##################################### mascot bubble speech ##################################### */
p.bubble {
    position: relative;
    float: right;
    max-width: 90%;
    float: right;
    text-align: center;
    line-height: 1.4em;
    background-color: white;
    border: 8px solid black;
    border-radius: 30px;
    padding: 20px 10px;

}

p.bubble:before,
p.bubble:after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
}

p.speech:before {
    left: 190px;
    bottom: -50px;
    border: 25px solid;
    border-color: black transparent transparent black;
}

p.speech:after {
    left: 200px;
    bottom: -29px;
    border: 15px solid;
    border-color: white transparent transparent white;
}


/* ##################################### mascot img ##################################### */
#mascot {
    max-width: 500px;
    margin: 20px auto;
}

#mascot-image {
    max-width: 400px;
}

#more-facts {
    background-color: var(--mint);
    color: black;
    font-weight: bold;
    border: none;
    padding: 15px 20px;
}

/* ##################################### footer ##################################### */
footer {
    text-align: center;
    background-color: var(--purple);
    padding: 1rem;
    color: white;
}

.copywrite {
    text-align: center;
    width: 100%;
}

/*Media query for smaller screens -----------------*/
@media only screen and (max-width: 991px) {
    header {
        padding: 1em;
    }

    h1 {
        font-size: 3em;
    }

    #mascot-image {
        max-height: 200px;
    }

    footer {
        font-size: 12px;
    }
}

/* Modals --------------------- */
.modal-content {
    border: 7px solid black;
    border-radius: 14px;
}

#animal-name, .modal-title {
    text-align: center;
    color: var(--purple);
    font-weight: bold;
    padding-top: 0.5em;
}

#clear-button, #start-button {
    color: white;
    background-color: black;
    border: none;
}

#animal-facts-modal {
    text-align: center;
    color: var(--purple);
    font-weight:normal;
}

#modal-content-body ul {
    padding: 0;
    list-style-type: none;
}

#imageChoice {
    display: flex;
    justify-content: center;
}

#facts-list li {
    padding-left: 2em;
    padding-right: 2em;
}

#instructions-modal {
    background-color: var(--purple);
}
