/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1.2;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
}

.intro_txt p, .work_txt p, .intro_txt h1{
    background: linear-gradient(
        90deg,
        #4a4a4a 0%,
        #8a8a8a 15%,
        #c0c0c0 30%,
        #e0e0e0 40%,
        #ffffff 50%,
        #e0e0e0 60%,
        #c0c0c0 70%,
        #8a8a8a 85%,
        #4a4a4a 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chromeWave 8s linear infinite;
}

.intro_txt h1 {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
}

i, em {
    font-style: italic;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    background: none !important;
    -webkit-text-fill-color: black !important;
    color: black !important;
    animation: none !important;
}



button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/*GENERAL*/

body{
    margin: 0%;
    background-color: rgb(124, 124, 124);
    background-color: rgb(114, 119, 126);
}

/*IMAGES*/

.imgs_container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    z-index: 1;
}

.images{
    width: 50%;
    grid-row: 2;
    border-radius: 5px;
    z-index: 10;
    transition: opacity 1s ease-in-out;
}

.images.fade {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.intro_txt{
    padding: 1%;
    width: 100%;
    position: relative;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.intro_txt.fade {
    opacity: 0.1;
}

.exhibition_txt{
    padding: 1%;
    width: 100%;
    position: relative;
    z-index: -2;
    opacity: 0.1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.exhibition_txt.show {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.read_text_btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-size: inherit;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.read_text_btn:hover {
    background: none !important;
    -webkit-text-fill-color: black !important;
    color: black !important;
    animation: none !important;
}

.hide_text_btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-size: inherit;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: none; /* Hidden by default, shown when text is visible */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: inherit;
}

.exhibition_txt.show .hide_text_btn {
    display: inline-block;
}

@media (min-width: 1025px) {
    .hide_text_btn:hover {
        background: none !important;
        -webkit-text-fill-color: white !important;
        color: white !important;
        animation: none !important;
    }
}

@media (max-width: 1024px) {
    .hide_text_btn:hover {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
        animation: none !important;
    }
}


@keyframes chromeWave {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.work_txt{
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2%;
    text-align: center;
    transition: opacity 0.5s ease;
}

.work_txt.fade {
    opacity: 0;
    pointer-events: none;
}

/* Mobile and tablet styles */
@media (max-width: 1024px) {
    body {
        font-size: 12px;
        overflow-x: hidden;
    }
    
    .imgs_container {
        grid-template-rows: 0.8fr auto 1.2fr;
    }
    
    .images {
        width: 96%;
        padding: 2%;
        border-radius: 15px;
    }
    
    /* Position work_txt below image on mobile */
    .work_txt {
        align-items: flex-start;
        margin-top: 20px;
    }
    
    /* Add extra space below hide button on mobile */
    .hide_text_btn {
        margin-bottom: 60px;
    }
}