@charset "UTF-8";

#indexLink {
    color: var(--default-yellow) !important;
}

#indexLink ~ .underline {
    background-color: var(--default-yellow) !important;
}

main {
    background-image: url(../img/Titas-0162-2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}

#profileExtender {
    width: 100%;
    height: 60px;
    background-color: var(--default-bg-color);
    border-right: 1px solid var(--tertiary-color);
    border-left: 1px solid var(--tertiary-color);
}

/*<section> starts here*/

#introParentContainer {
    display: grid;
    height: 700px; /*property height was 800px*/
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 0;
    background-color: var(--default-bg-color);
}

.introChild {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/*carousel start*/
#imgChildContainer {
    grid-area: 1 / 1 / 5 / 4;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

#carouselTrack {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    animation: slideCarousel 24s infinite;
}

.imgCarouselItem {
    flex: 0 0 100%;
    height: 100%;
}

.imgCarouselItem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slideCarousel {
    0%, 16.67%   { transform: translateX(0%); }
    20%, 33.33%  { transform: translateX(-100%); }
    36.67%, 50%  { transform: translateX(-200%); }
    53.33%, 66.67% { transform: translateX(-300%); }
    70%, 83.33%  { transform: translateX(-400%); }
    86.67%, 95% { transform: translateX(-500%); }
    100%      { transform: translateX(0%); }
}

#imgChildTextBox {
    flex-direction: column;
    position: absolute;
    bottom: 0;
    /* left: 0;
    right: 0; */    /*uncomment if container should be at full width*/
    padding: 5px 20px;
    background-color: var(--primary-color);
    text-align: center;
    border-radius: 10px;
}
/*carousel end*/

#textChildContainer {
    grid-area: 5 / 1 / 6 / 6;
    background-color: var(--default-bg-color);
    border-right: 1px solid var(--tertiary-color);
    border-left: 1px solid var(--tertiary-color);
}

#textChildContainer p {
    text-align: center;
    padding: 30px;
    margin: 0;
}

#openingTimesChildContainer {
    grid-area: 1 / 4 / 5 / 6;
    background-color: var(--default-bg-color);
    border-right: 1px solid var(--tertiary-color);
}

#openingTimesStatusBox {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
    height: auto;
}

#openingTimesStatusBox div {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}
#openingTimesStatusBox p {
    font-size: 1rem;
}

.openingTimesTable {
    width: 90%;
    margin-top: 10px;
    border-collapse: collapse;
}

.openingTimesTable td {
    padding: 25px;
    font-size: 1.25rem;
    color: var(--default-dark-color);
}

.openingTimesTable tr:first-child td {
    border-bottom: 1px solid var(--tertiary-color);
}

.openingTimesTable td:first-child {
    font-weight: bold;
    color: var(--primary-color);
}

/* .openingTimesTable td:first-child {
    text-align: right;
} */

@media (max-width: 1400px) {
    
    main {
        width: 100%;
        border: none;
    }
    #profileExtender {
        -webkit-box-shadow: inset 0px 40px 20px -30px rgba(0,0,0,0.5); 
        box-shadow: inset 0px 40px 20px -30px rgba(0,0,0,0.5);
    }

    #imgChildContainer {
        height: 450px;
    }
}

@media (max-width: 768px) {

    main {
        width: 100%;
    }
    

    #introParentContainer {
        height: 1100px;
    }

    #imgChildContainer { 
        grid-area:  1 / 1 / 3 / 6; 
        height: 400px;
        border: none;
        border-radius: 0;
    }  
    #openingTimesChildContainer { 
        grid-area: 4 / 1 / 6 / 6; 
        border: none; 
    }
    #textChildContainer { 
        grid-area: 3 / 1 / 4 / 6; 
        border: none; 
    }

    #textChildContainer p {
        padding: 10px;
    }
}

/*<section> ends here*/

/*<section> starts here*/

#friesParentContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    background: transparent;
}

/*<section> ends here*/

/*<section> starts here*/

    #informationParentContainer {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding-top: 50px;
        width: 100%;
        height: 100%;
        background-color: var(--default-bg-color);
    }

    #informationCardWrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: fit-content;
        margin: 50px;
        padding: 2.5px 5px;
        /* border: 3px solid var(--primary-color); */
    }
    #informationCardWrapper summary {
        display: block;
        position: relative;
        padding: 1rem;
        padding-left: 2.2rem;
        background-color: var(--default-body-color);
        border: 1px solid var(--tertiary-color);
        outline: none;
        cursor: pointer;
    }
    #informationCardWrapper summary:focus {
        color: var(--default-light-color);
        background-color: var(--primary-color);
    }
    #informationCardWrapper details {
        width: 100%;
        box-sizing: border-box;
        margin: 5px 0;
        background: var(--default-bg-color);
        cursor: pointer;
    }
    #informationCardWrapper details summary::-webkit-details-marker {
        display: none;
    }
    #informationCardWrapper details[open] > summary:before {
        transform: rotate(90deg);
    }
    #informationCardWrapper details summary:before {
        content: "";
        border-width: 0.7rem;
        border-style: solid;
        border-color: transparent transparent transparent var(--default-light-color);
        position: absolute;
        top: 1.2rem;
        left: 1rem;
        transform: rotate(0);
        transform-origin: 0.2rem 50%;
        transition: 0.25s transform ease;
    }
    .infocontentchild {
        border-top: none;
        padding: 10px;
        border: 2px solid var(--tertiary-color);
        border-top: none;
    }
    .infocontentchild p {
        line-height: 35px;
        margin: 0;
        padding-bottom: 10px;
        &:last-child {
            padding: 0;
        }
    }

/*<section> ends here*/