/*

=====================================

            Selectors Demo

=====================================

*/

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: powderblue;
}

.headerContainer {
    width: 60%; height: auto;
    margin: 0 auto;
    background-color: powderblue;
}

.headerContainer h1 {
    text-align: center;
    margin: 8px;
    background-image: linear-gradient(249deg, #60aef8, #f46692, #f3a562, #f46692, #60aef8, #f46692, #f3a562);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    animation: gradientAnimation 16s linear infinite;
    background-size: 300% 100%;
    background-clip: text;
    font-size: 44px;
}

@keyframes gradientAnimation{
    0% {
        background-position: 0;
    }
    to {
        background-position: 100%;
    }
}

.navMenuContainer {
    width: 100%;
    margin: 20px auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 2px solid black;;
}

.navMenuContainer > ul {
    list-style: none;
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
}

.navMenuItem {
    position: relative;
}

.navMenuItem > a {
    margin: 0;
    padding: 10px 20px;
    border: 2px solid black;
    border-radius: 8px;
    color: black;
    font-weight: bold;
    text-decoration: none;
    background-color: #f0f0f0;
    cursor: pointer;
    text-align: center;
    transition: background-color 150ms ease-in-out;
    font-size: 16px;
}

.navMenuItem > a:hover {
    background-color: #d4e157;
}

.navMenuItem:hover .navDropdown {
    display: block;
}

.navDropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 8px;
    border: 1px solid black;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    width: max-content;
    min-width: 100%;
}

.navDropdown ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.navDropdown ul li a {
    display: block;
    text-align: center;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 150ms ease-in-out;
}

.navDropdown ul li a:hover {
    background-color: #0056b3;
}

.demoContainer {
    width: 60%; height: auto;
    margin: 0 auto;
}

.demoContainer > div.selectorContainer:nth-of-type(odd) {
    background-color: #2c3e50;
}

.demoContainer > div.selectorContainer:nth-of-type(even) {
    background-color: #28496e;
}

.selectorCategory:not(:first-child) {
    margin: 96px 0;
}

.selectorCategory {
    width: 100%; height: auto;
}

.selectorCategory h1 {
    font-size: 50px;
    color: white;
    padding: 24px 12px;
    text-align: center;
    background-color: #60aef8;
}

.selectorContainer {
    width: 100%; height: 100%;
    padding: 16px;
    margin: 24px 0px 16px 0px;
}

.selectorContainer[id$="Selector"] {
    box-shadow: 0px 0px 16px transparent;
    transition: box-shadow 150ms ease-in-out;
}

.selectorContainer[id$="Selector"]:target {
    box-shadow: 0px 0px 16px yellow;
}

.exampleHeader {
    color: white;
}

.exampleHeader h2 {
    font-size: 32px;
}

.exampleHeader a {
    text-decoration: none;
    color: white;
}

.exampleHeader a:hover {
    cursor: pointer;
    text-decoration: underline;
}

.exampleHeader ~ div {
    margin-left: 16px;
}

.exampleDescription {
    margin: 16px 0 0 8px;
    padding: 8px;
    background-color: #3a5269;
    box-shadow: 1px 2px 8px black;
    color: white;
}

.exampleDescription p {
    margin: 4px 0 8px 8px;
    font-size: 20px;
}

.exampleDescription h3 {
    font-size: 24px;
}