﻿/* Style the tab */
.tab {
    overflow: hidden;
    border-bottom: solid 1px #ddd;
}

    /* Style the buttons that are used to open the tab content */
    .tab button {
        background-color: #ddd;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 10px 16px;
        transition: 0.3s;
        color: black;
        width: auto;
        line-height: normal;
        font-size: 1rem;
        margin: 0;
        border-right: solid 2px #ccc;
        border-top: solid 1px #ccc;
    }

        .tab button:first-of-type {
            border-left: solid 1px #ccc;
        }

        /* Change background color of buttons on hover */
        .tab button:hover {
            background-color: #eee;
        }

        /* Create an active/current tablink class */
        .tab button.active {
            background-color: #f1f1f1;
        }

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 15px 12px 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #f1f1f1;
}

.tabcontent {
    animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}