/*styling for articles that contain tabs to related subject matter*/

.tab-container {
    width: 70%;
    margin: 0 auto;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #57514a;
}

/* moved to media screen at the bottom for screen size responsiveness
.tab-link {
    color: #222222;
    font-weight: bold;
    background-color: #635c54;
    border: 1px solid #57514a;
    outline: none;
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color .3s;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}*/

.tab-link:hover {
    background-color: #9b948c;
}

.tab-link.active {
    color: #000000;
    background-color: #807970;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #57514a;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tab-content.active {
    display: block;
}

/*=======================TTS styles======================*/
.disk-drive-container {
    display: block;
    width: 35%;
    background: radial-gradient(circle, #9b948c, #807970);
    box-shadow: 10px 10px 10px #000000;
    border: 1px solid #000000;
    border-radius: 10px;
}

.tts-logo {
    display: flex;
    margin-top: 3%;
    width: 100%;
    padding-left: 4%;
    align-items: center;
    font-size: .75em;
    opacity: 0.6;
    gap: 0.4em;
}

#leading {
    color: silver;
}

#edge {
    color: #ffffff;
}

/* .disk-drive {
    display: block;
    margin: auto;
    margin-top: 2%;
    margin-bottom: 2%;
    justify-content: center;
    width: 85%;
    border: solid 1px #635c54;
    background-color: #000000;
    height: 20px;
    border-radius: 10px;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7);
} */

/* Fake floppy disk element */
.floppy-disk {
    width: 92%;
    height: 10px;
    background: linear-gradient(to bottom, #3a3939, #383232);
    background: linear-gradient(to right, #3a3939 15%, #d3caca 15%, #d3caca 85%, #3a3939 85%);
    border: 2px solid #333;
    border-radius: 3px;
    margin: 0 auto;
    position: relative;
    top: -50px;
    /* Start ABOVE the drive */
    transition: top 0.5s ease-in-out;
    box-shadow: 2px 2px 4px #000000aa;
    opacity: 0;
}

/* When playing, slide disk INTO the drive */
.disk-insert {
    top: 0px;
    opacity: 1;
}

/* When reset, slide disk OUT */
.disk-reset {
    top: -50px;
    opacity: 0;
}

.drive-doodads {
    display: flex;
    /* margin: auto; */
    justify-content: space-between;
    padding-left: 10%;
    padding-right: 10%;

}

/* LED indicator (off by default) */
.disk-drive-led {
    width: 6%;
    height: 10px;
    background-color: #2a2a2a;
    /* dark plastic when off */
    border-radius: 2px;
    margin-bottom: 1%;
    border: 2px solid #000000;
    box-shadow: inset 2px 2px 4px #000000aa;
    transition: background-color 0.2s, box-shadow 0.2s;
}

/* LED ON + blinking animation */
.disk-drive-led-active {
    background-color: #d1931e;
    box-shadow:
        0 0 6px #d1931e,
        0 0 12px #d1931e,
        inset 0 0 4px #ff9a9a;
    animation: ledBlink 0.6s infinite alternate;
}

@keyframes ledBlink {
    from {
        opacity: 0.4;
        box-shadow:
            0 0 4px #d1931e,
            inset 0 0 3px #ffb3b3;
    }

    to {
        opacity: 1;
        box-shadow:
            0 0 10px #d1931e,
            0 0 18px #d1931e,
            inset 0 0 6px #ff9a9a;
    }
}


.disk-drive-ejector {
    justify-content: right;
    border: solid 1px #000000;
    width: 12%;
    height: 15px;
    border-radius: 5px;
    margin-bottom: 2%;
    box-shadow: 4px 4px 8px #000000;
}

.tts-buttons-container {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    padding: 1%;
    border-radius: 10px;
}

.tts-buttons {
    font-size: 2em;
    margin: 1%;
    padding: .15% 8% .15% 8%;
    border: 1px solid #000000;
    border-radius: 9999px;
    background-color: #635c54;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 7px 7px 10px #000000;
}

.tts-buttons:hover {
    background-color: #9b948c;
    transform: scale(1.1);
}

.tts-buttons.reading {
    pointer-events: none;
    background-color: #9b948c;
    color: #424242;
    cursor: default;
    box-shadow: 7px 7px 10px #000000;
}

.tts-tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tts-buttons:hover .tts-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/*small tablet styles*/
@media screen and (min-width: 300px) {
    .tabs {
        flex-wrap: wrap-reverse;
    }

    .tab-link {
        color: #222222;
        font-size: 8px;
        font-weight: bold;
        background-color: #635c54;
        border: 1px solid #57514a;
        outline: none;
        padding: 14px 16px;
        cursor: pointer;
        transition: background-color .3s;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .tts-logo img {
        width: 16px;
    }

    .disk-drive {
        display: block;
        margin: auto;
        margin-top: 2%;
        margin-bottom: 2%;
        justify-content: center;
        width: 85%;
        border: solid 1px #635c54;
        background-color: #000000;
        height: 10px;
        border-radius: 10px;
        box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2),
            inset -4px -4px 8px rgba(255, 255, 255, 0.7);
    }

}

/* large teablest and laptop styles*/
@media screen and (min-width: 860px) {

    .tab-link {
        color: #222222;
        font-size: 13px;
        font-weight: bold;
        background-color: #635c54;
        border: 1px solid #57514a;
        outline: none;
        padding: 14px 16px;
        cursor: pointer;
        transition: background-color .3s;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .tts-logo img {
        width: 24px;
    }

}

/*desktop styles */
@media screen and (min-width: 1400px) {

    .tab-link {
        color: #222222;
        font-size: 18px;
        font-weight: bold;
        background-color: #635c54;
        border: 1px solid #57514a;
        outline: none;
        padding: 14px 16px;
        cursor: pointer;
        transition: background-color .3s;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .tts-logo img {
        width: 32px;
    }

    .disk-drive {
        display: block;
        margin: auto;
        margin-top: 2%;
        margin-bottom: 2%;
        justify-content: center;
        width: 85%;
        border: solid 1px #635c54;
        background-color: #000000;
        height: 20px;
        border-radius: 10px;
        box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2),
            inset -4px -4px 8px rgba(255, 255, 255, 0.7);
    }

}