/*=======INPUT INTERACTION==========
This effect is design by myself based on the tutorial
from https://css-tricks.com/float-labels-css/
*/
.text-input {
    position: relative;
    margin-top: 30px;
    margin-right: 5px;
    margin-bottom: 20px;
}


.text-input label {
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 5px;
    transition: 0.6s;
    opacity: .6;
    font-style: italic;
}

.text-input input {
    width: 100%;
    height: 30px;
    margin-bottom: 0;
    border: none;
    outline: none;
    background-color: transparent;
    border-bottom: 1px solid black;
}

.text-input input:hover {
    /* transform: scale(1.1);*/
    opacity: 1;
}

.text-input input:focus {
    /* transform: scale(1.1);*/
    opacity: 1;
}


.text-input input:hover + label {
    transform: scale(1.2);
}

.text-input input:focus + label,
.text-input input:valid + label {
    top: -15px;
    left: -5px;
    transform: scale(0.9);
    opacity: .6;
}



/* =======IMAGE LINK ELEMENTS===========
  Based on tutorial from https://www.w3schools.com/howto/howto_css_zoom_hover.asp
*/

.img-frame {
    width: 230px;
    height: 230px;
    overflow: hidden;
}

.img-link img {
    width: 100%;
    height: 100%;

}

.img-link img {
    transition: .7s ease;
}

.img-link img:hover {
    transform: scale(1.2);
}

@media (max-width: 800px) {
    .img-frame {
        width: 180px;
        height: 180px;
        overflow: hidden;
    }
}

/* Styling for radio-input button*/
.radio-input {
    width: 23px;
    height: 23px;
    appearance: none;
    position: relative;
    vertical-align: middle;
    top: -5px;
}

.radio-input:hover {
    transform: scale(1.1);
}

.radio-input:checked:before {
    content: '';
    width: 20px;
    height: 20px;
    border: 1px solid black;
    background: #9c644c;
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
}

.radio-input:checked:after {
    content: '✔';
    color: white;
    text-align: center;
    display: block;
    position: absolute;
    top: 1px;
    left: 5px;
}



/* Styling for the in-text button */

.in-text-link {
    position: relative;
    top: 10px;
    padding: 0.5rem;
    color: black;
    background-color: transparent;
    text-decoration: none;
    transition: .4s ease;
    opacity: .5;
    border-bottom: 2px solid transparent;
    z-index: 98;
}


.in-text-link:hover {
    opacity: 1;
    background-color: var(--black);
    color: white;
    opacity: 1;

}


/*Navigation link styling*/
.nav-link {
    position: relative;
    text-decoration: none;
    opacity: .5;
    padding: 20px;
    font-size: 1.3rem;
    color: var(--black);;
    text-align: center;
    padding-bottom: 6px;
    padding-top: 6px;
    transition: .3s ease;
    border-bottom: 3px solid transparent;
}

/****Original style*****
.nav-link:hover {
    opacity: 1;
    border-bottom: 3px solid #9c644c;
    color: #9c644c;
}
*/
.nav-link:before {
    content: "";
    background-color: var(--pink);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.nav-link:hover:before {
    visibility: visible;
    width: 100%;
}


/*submit reset button style*/
.submit-reset {
    border: none;
    background-color: var(--black);
    color: white;
    width: 90px;
    height: 40px;
    font-size: 18px;
    margin-right: 1.2rem;
    transition: .5s ease;
    cursor: pointer;
}

.submit-reset:hover {
    background-color: var(--green);
}

/*navigation for style guide*/
.nav-guide {
    margin-bottom: 60px;
    display: flex;
    flex: 1 1 20%;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-guide a {
    border: none;
}

.nav-guide a:hover {
    border: none;
}
