#example1 {
    h1 {
        color: red;
    }

    h1 {
        color: blue;
    }
}

#example2 {
    .main-heading {
        color: red;
    }

    h1 {
        color: blue;
    }
}

#example3 {
    color: blue;

    span {
        color: black;
    }
}

#example4 {
    .main {
        color: rebeccapurple;
        border: 2px solid #ccc;
        padding: 1em;
    }

    .special {
        color: black;
        font-weight: bold;
    }
}

#example5 {
    color: green;

    /* a {
        color: red;
    } */

    .my-class-1 a {
        color: inherit;
    }

    .my-class-2 a {
        color: initial;
    }

    .my-class-3 a {
        color: unset;
    }
}

#example6 {
    blockquote {
        background-color: orange;
        border: 2px solid blue;
    }

    .fix-this {
        all: unset;
    }
}

#example7 {
    h2 {
        font-size: 2em;
        color: #000;
        font-family: Georgia, "Times New Roman", Times, serif;
    }

    .small {
        font-size: 1em;
    }

    .bright {
        color: rebeccapurple;
    }
}

#example8 {

    /* 1. specificity: 1-0-1 */
    #outer a {
        background-color: red;
    }

    /* 2. specificity: 2-0-1 */
    #outer #inner a {
        background-color: blue;
    }

    /* 3. specificity: 1-0-4 */
    #outer div ul li a {
        color: yellow;
    }

    /* 4. specificity: 1-1-3 */
    #outer div ul .nav a {
        color: white;
    }

    /* 5. specificity: 0-2-4 */
    div div li:nth-child(2) a:hover {
        border: 10px solid black;
    }

    /* 6. specificity: 0-2-3 */
    div li:nth-child(2) a:hover {
        border: 10px dashed black;
    }

    /* 7. specificity: 0-3-3 */
    div div .nav:nth-child(2) a:hover {
        border: 10px double black;
    }

    a {
        display: inline-block;
        line-height: 40px;
        font-size: 20px;
        text-decoration: none;
        text-align: center;
        width: 200px;
        margin-bottom: 10px;
    }

    ul {
        padding: 0;
    }

    li {
        list-style-type: none;
    }
}

#example9 {
    #winning {
        background-color: red;
        border: 1px solid black;
    }

    .better {
        background-color: gray;
        border: none !important;
    }

    p {
        background-color: blue;
        color: white;
        padding: 5px;
    }
}