:root {
    --c1: #000000;
    --c2: hsl(0, 0%, 13%);
    --c3: hsl(0, 0%, 18%);
    --c4: hsl(0, 0%, 60%);
    --c5: hsl(0, 0%, 75%);

    --collapse-duration: 350ms;
    --collapse-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Fira Code', 'Consolas', monospace;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 10px;
    background: var(--c2);
    color: var(--c5);
    line-height: 1.2;
}

.sem-boxes {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.title-extender {
    border: 4px dashed hsl(0, 99%, 55%);
    border-image-source: url(./assets/niceborder.png);
    border-image-repeat: round;
    border-image-slice: 16;
    padding-top: 4%;
    padding-bottom: 4%;
    padding-left: 8%;
    padding-right: 8%;
}

.title-extender p {
    padding: 0;
}
/* This below is adjacent sibling elector. We can make it so the next one has no top border. */
.title-extender + .title-extender {
    border-top: none;
}

.title {
    color: hsl(0, 0%, 80%);
    /* border: 2px dashed var(--c5); */
    /* border-radius: 0px; */
    /* background-color: hsl(0, 0%, 41%); */
    
    transition: border-bottom-color 0.2s ease-in-out,
                background-color 0.2s ease-in-out;
    padding: 20px;
    margin: 10px;
    font-size: xx-large;
    font-weight: bold;
    cursor: pointer;
    user-select: none; 
    -webkit-tap-highlight-color: transparent;
    border-bottom: 2px solid transparent;
    height: auto;
    line-height: 1.5;
    padding-bottom: 20px;
}

.title.title-is-open {
    border-bottom-color: var(--c4);
    /* padding-bottom: 24px; */
}

.title-main {
    color: hsl(0, 0%, 80%);
    border-bottom: 2px solid var(--c5);
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: xx-large;
    font-weight: bold;
}




/* The grid-template-row changing from 0 to 1 and back to 0 allows smoothly changing height or something */
.collapsible-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--collapse-duration) var(--collapse-ease);

    /* Uncomment below if you want it to always be visible */
    /* grid-template-rows: 1fr; */
}

.collapsible-wrapper .collapsible-midway {
    overflow: hidden;
}

.collapsible-wrapper.is-open {
    grid-template-rows: 1fr;
    padding-bottom: 20px;
}

.collapsible-inner {
    overflow: hidden;
}

.linkSet {
    padding: 12px;
    /* max-width: 800px; */
    margin: 0 auto;
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    gap: 15px;
}

.link {
    border: 2px solid hsl(0, 0%, 40%);
    border-radius: 10px;
    background-color: var(--c3);
    padding: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
    overflow: hidden;
    box-shadow: -8px 8px 0px var(--c1);
    transition: transform 0.3s ease;
}

.link:hover {
    transform: translateY(-3px);
}

.card {
    border: 2px solid hsl(0, 0%, 40%);
    border-radius: 10px;
    background-color: var(--c3);
    padding: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
    overflow: hidden;
    box-shadow: -8px 8px 0px var(--c1);
}

a {
    text-decoration: none;
    color: greenyellow;
}

.cardName {
    font-size: x-large;
    margin-top: 0px;
    margin-bottom: 0px;
    color: var(--c5);
    font-weight: bold;
}

.cardDesc {
    margin-top: 10px;
    margin-bottom: 0px;
    color: var(--c5);
    line-height: 25px;
}


.chevron {
    display: inline-block;
    transition: transform 0.35s;
    transform: rotate(0deg);
    height: 0.9em;
    image-rendering: crisp-edges; 
    vertical-align: -0.10em;
    opacity: 80%;
}

.chevron.active {
    transform: rotate(90deg);
}