@import url('base.css');

/* validation error styles */
.validation-error {
    border-left: 4px solid #f56565;
    padding: 1rem 1rem 1rem 1.5rem;
    margin: 1rem 0;
    color: #c53030;
    background-color: transparent;
    animation: slideIn 0.3s ease-out;
}

.error-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-content strong {
    font-weight: 600;
}

.error-content ul {
    margin: 0;
    padding-left: 1.2rem;
}

.error-content li {
    margin: 0.2rem 0;
}

/* shake animation */
.shake-error {
    animation: shake 0.6s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.container-fluid {
    min-height: 100vh;
    min-height: 100svh;
}

.leftside,
.rightside {
    height: 100%;
}

.leftside {
    padding-left: 4em;
    padding-right: 2em;
    padding-top: 2em;
    padding-bottom: 1em;
}

.left-container {
    height: 100%;
    width: 100%;
}

.news-title h1 {
    font-size: 2.7em;
    font-weight: 100;
}

.news-msg {
    margin-top: 1em;
    font-size: 16px;
}

.rightside {
    padding-left: 2em;
    padding-right: 4em;
    padding-top: 2em;
}

.right-container {
    width: 100%;
    height: 100%;
}

.searchtitle h1 {
    font-weight: 100;
    margin-bottom: 0.5em;
}

.searchbar {
    display: flex;
    align-items: center;
}

.searchbar input[type="text"] {
    height: 45px;
}

.searchbar input:focus,
.searchbar input:hover {
    outline: 1px solid gray;
}

.searchbar label {
    position: absolute;
    width: 300px;
    padding-left: 15px;
    pointer-events: none;
    transition: top 1s;
    color: #202020;
    font-size: 15px;
}

.searchbar input:focus+label,
.searchbar input:hover+label {
    transform: translateY(-32px);
    color: black;
    font-size: 0.9em;
    font-weight: 490;
}

.searchbar input:not(:placeholder-shown)+label {
    color: black;
    font-size: 0.9em;
    font-weight: 490;
    transform: translateY(-32px);
}

.taxon-block {
    margin-top: 2em;
    width: 100%;
    height: 35%;
    background-color: #F5F5F5;
    border-radius: 5px;
    box-sizing: border-box;
    padding-bottom: 0.5em;
}

.taxon-block p {
    display: flex;
    justify-content: flex-start;
    position: relative;
    margin-left: 1em;
    transform: translateY(10px);
    margin-right: 1em;
}

.searchdrop {
    display: flex;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 1em;
}

.searchdrop select {
    width: 100%;
    height: 45px;
    border-radius: 5px;
    font-size: 16px;
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.searchdrop select:hover {
    cursor: pointer;
}

.taxonSearchbar {
    display: flex;
    padding-left: 1em;
    padding-right: 1em;
}

.taxon-msg {
    display: flex;
    align-items: center;
    margin-top: .5em;
    width: 100%;
    margin-bottom: 0;
}

.taxon-msg p {
    font-size: 15px;
    transform: translateY(-4px);
    margin-right: 1em;
    margin-left: 0.5em;
    margin-bottom: 0.2em;
}

.hostSearchdrop {
    display: flex;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-top: 1.5em;
}

.culture-box {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    width: 100%;
    height: 100%;
}

.culture-search {
    transform: translateY(-5px);
}

.culture-notif {
    height: 16px;
    position: relative;
    transform: translateY(-5px);
    margin-bottom: 1em;
}

.culture-msg {
    display: flex;
    position: relative;
    margin-top: 1em;
}

.culture-msg p {
    transform: translateY(-8.5px);
    font-size: 16px;
}

.resultsByTitle {
    display: flex;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.radio-group input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #c64727;
    position: relative;
    cursor: pointer;
}

.radio-group label {
    cursor: pointer;
}

.radio-group input[type="radio"]:checked {
    background-color: #c64727;
    border-color: #c64727;
    box-shadow: inset 0 0 0 3px white;
}


.submit-button {
    display: flex;
    margin-top: 1em;
    margin-bottom: 1em;
}

.submit-button button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--fera-blue);
    border-radius: 40px;
    padding: 18px 42px;
    color: var(--fera-white);
    border-style: none;
    transition: 0.4s;
}

.submit-button button:hover {
    background-color: white;
    color: var(--fera-blue);
    border-color: var(--fera-blue);
    border-style: solid;
}

.btn-text {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 450px) {
    .leftside {
        padding-left: 1.5em;
        padding-right: 1.5em;
        padding-top: 2em;
    }

    .news-title {
        font-size: 1.5em;
    }

    .rightside {
        padding-left: 1em;
        padding-right: 1em;
        padding-top: 1em;
    }

    .searchtitle {
        font-size: 2em;
        margin-bottom: 0.5em;
    }

    .culture-box {
        margin-bottom: 2em;
    }

    .submit-button {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .submit-button button {
        border-radius: 120px;
        padding: 18px 90px;
    }

    .resultsByTitle {
        margin-top: 2em;
    }

    #cookie-popup {
        max-width: 80%;
    }

    
}