/* ================================================================================================================
General Styling
================================================================================================================ */

button.search-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 4px;
    left: 4px;
    fill: var(--primary);
    border: none;
    background-color: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    border-radius: 50%;
    outline: 0;
}

.search-icon:hover {
    background-color: #eeebf1;
}

input.form-control {
    border: none;
    border-radius: 0;
    padding: 5px 15px 5px 40px;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(94, 32, 125, 0.3);
}

input.form-control:focus {
    outline: 0;
    box-shadow: none;
    background-color: rgba(94, 32, 125, 0.2);
}

main {
    margin-top: calc(56px * 2 + 2rem);
}

.row {
    flex-direction: column;
}

/* ================================================================================================================
Homepage Content Structure
================================================================================================================ */

/* ---------------------------------------------------
Documentation Selector
--------------------------------------------------- */

.documentation-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    margin-bottom: 2rem;
}

.documentation-cell {
    padding: 1rem;
}

.documentation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    background-color: #ffffff;
    height: 100%;
    cursor: pointer;
    align-content: space-between;
    box-shadow: 0px 0px 8px -5px rgb(0 0 0 / 70%);
    transition: all 400ms ease-out;
    margin: 0 1rem;
}

.documentation:after {
    width: 100%;
    content: "";
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: var(--primary);
}

.documentation:hover {
    box-shadow: 0px 0px 11px -3px rgb(0 0 0 / 70%);
    transform: translateY(-5%);
}

.documentation-link {
    color: rgb(33, 37, 41);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    height: 100%;
    padding: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.documentation:hover .documentation-link {
    color: rgb(33, 37, 41);
    text-decoration: none;
}

.documentation-location {
    justify-self: flex-start;
    margin-bottom: 0;
}

.documentation-title {
    font-size: 1.5rem;
    justify-self: flex-start;
    margin-bottom: 0;
    overflow-wrap: break-word;
}

.documentation-text {
    width: inherit;
    justify-self: center;
    min-height: 120px;
    margin-bottom: 0;
}

.document-button {
    text-transform: uppercase;
    animation: button-gradien-out 600ms ease-in-out;
    animation-fill-mode: both;
    border: none;
    background: linear-gradient( 41deg, rgba(94,32,125, 1) 0%, rgba(94,32,125, 1) 65%, rgba(173, 103, 180, 1) 100%);
    background-size: 150%;
    background-position: 0;
    color: #fff;
    padding: .375rem .75rem;
    text-align: center;
    border-radius: .25rem;
}

.document-button.in {
    animation: button-gradien-in 600ms ease-in-out;
    animation-fill-mode: both;
}

.document-button.out {
    animation: button-gradien-out 600ms ease-in-out;
    animation-fill-mode: both;
}

/* ================================================================================================================
Animations
================================================================================================================ */

@keyframes button-gradien-in {
    
    0% {
        background-position: 0%;
    }
    
    50% {
        background-position: 50%;
    }
    
    100% {
        background-position: 77%;
    }
  
}

@keyframes button-gradien-out {
    
    0% {
        background-position: 77%;
    }
    
    50% {
        background-position: 50%;
    }
    
    100% {
        background-position: 0%;
    }
  
}

@keyframes switchTabs {
    
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
    
}