@import url("menu.css");

body {
    font-family: sans-serif;
    margin: auto;
    width: 95vw;
    background-color: #848898;
}

h1 {
    /* border: thin solid green; */
    font-size: 60px;
    margin-top: 15px;
    margin-bottom: 15px;
}

h2 {
    /* border: thin solid blue; */
    font-size: 40px;
    margin-top: 15px;
    margin-bottom: 15px;
}

h3 {
    /* border: thin solid red; */
    font-size: 25px;
    margin-top: 15px;
    margin-bottom: 15px;
}

h4 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

#eines {
    box-sizing: border-box;
    height: 64px;

    display: flex;
    justify-content: left;
    align-items: center;

    margin-bottom: 32px;
    border: thin solid red;
}

#eines div {
    margin: 32px;
}

.opcions {
    box-sizing: border-box;
    background-color: #CCCCCC;
    padding: 16px;
    margin: 0 auto;
    margin-bottom: 48px;
    width: 1024px;

}

#benvinguda {
    background-image: url(/img/bufon_saludo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    height: 80vh;
}

#benvinguda h1{
    border: 8px solid;
    border-right: none;
    border-image: linear-gradient(to right, #212226 30%, transparent 60%) 1;
    background: linear-gradient(to right, #620101 30%, transparent 60%, transparent 100%); 
    color: #EEE;
    padding-left: 32px;
    font-size: 4vh;
    
}

#benvinguda h2{
    border-bottom: 8px solid;
    border-top: 8px solid;
    border-image: linear-gradient(to right, #212226 25%, transparent 50%, transparent 100%);
    background: linear-gradient(to right, #620101 25%, transparent 50%, transparent 100%); 
    color: #EEE;
    padding-left: 32px;
    font-size: 2.5vh;
}

#benvinguda a{
    display: block;
    background-color: #888;
    margin-left: 2vw;
    /* padding-left: 1.5vw; */
    padding-top: 1.5vh;
    padding-bottom: 1.5vh;
    border: 5px solid #212226;
    border-radius: 16px;
    border-bottom-left-radius: 0px;
    max-width: fit-content;
    margin-bottom: 16px;
}

#benvinguda img {
    max-width: 25vw;
}






.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
}

.modal-botones {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-botones button {
    padding: 10px;
    cursor: pointer;
}

#filtres {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.caixaFiltre {
    border: thin solid black;
}

.caixaFiltre div:first-of-type {
    color: red;
    width: min-content;
    margin-left: auto;
    font-size: small;
    cursor: pointer;
    margin-right: 2px;
}

.caixaFiltre div:not(:first-of-type) {
    text-align: center;
    margin-right: 16px;
    width: 100%;
    font-weight: bold;
}

#taulabbdd {
    margin: 0 auto;
}

#taulabbdd tr:nth-child(even) {
    background-color: #DDDDDD;
}

#taulabbdd tr:nth-child(odd) {
    background-color: #BBBBBB;
}

#taulabbdd th {
    border: thin solid black;
    background-color: #620101;
    color: #EEEEEE;
    padding: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: medium;
}

#taulabbdd .tdAutor {
    text-align: left;
    max-width: 20vw;
    height: 1px;

    font-weight: bold;
    font-size: medium;
}

#taulabbdd .tdAutor div {
    display: flex;
    align-items: center;
}

#taulabbdd .tdAutor a {
    text-align: center;
    display: inline;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #222222;
    height: 100%;
    box-sizing: border-box;

    /* padding-right: 8px; */
}

#taulabbdd .tdAutor a img:hover {
    background-color: #efe9a7;
    transform: scale(1.5);
}

#taulabbdd .tdAutor a img {
    max-width: 24px;
    max-height: 24px;
    margin-right: 4px;
}

#taulabbdd .tdAutor a:first-of-type {
    margin-left: 12px;
}

#taulabbdd .tdAutor div span {
    margin-top: 5px;
    margin-right: 8px;
}

#taulabbdd .tdText {
    max-width: 20vw;
}

#taulabbdd .tdText textarea {
    resize: none;
    width: 20vw;
    min-height: 48px;
}

#taulabbdd .tdImatges {
    padding: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 10vw;
}

#taulabbdd .tdImatges span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    width: 12px;
    height: 12px;
    border: 2px solid #988c01;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    background-color: #bcb77d;
}

#taulabbdd .tdImatges span:hover {
    background-color: #efe9a7;
}

#taulabbdd .tdData {
    padding: 8px;
    max-width: 10vw;
}

.diaData {
    font-size: small;
    display: block;
    text-align: center;
    font-weight: bold;
}

.horaData {
    font-size: smaller;
    display: block;
    text-align: center;
}

#taulabbdd .tdOpcions {
    padding: 8px;
    cursor: pointer;
}

#taulabbdd .tdOpcions img {
    max-width: 24px;
    max-height: 24px;
}

#taulabbdd .tdOpcions img:hover {
    background-color: #efe9a7;
}

/*#modalImatge{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    cursor: pointer;
}


*/
#modalImatge img {
    max-width: 75vw;
    max-height: 75vh;
    cursor: default;
}

#modalTuit .resultat_amb_fons {
    transform: scale(0.75);
    /*transform-origin: top left;*/
}

#modalTuit .resultat_sense_fons {
    transform: scale(0.75);
    /*transform-origin: top left;*/
}

#pagines {
    margin: auto;
    margin-top: 32px;
    margin-bottom: 32px;
    border-collapse: separate;
    border-spacing: 16px;
}

#pagines td {
    text-align: center;

    width: 32px;
    height: 32px;
    border-radius: 8px;

}

#pagines td:not(:has(a)) {
    background-color: #a6bfa7;
}

#pagines a {
    display: flex;
    justify-content: center;
    align-items: center;

    /*box-sizing: border-box;*/
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #222222;
    font-weight: bold;
    background-color: #efe9a7;
    border-radius: 8px;
}

#pagines a:hover {
    background-color: #bcb77d !important;
}



.taulaverbena {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fill, 256px);
    gap: 10px;
    justify-content: center;
    align-items: center;
    clear: both;
}

#taulaportades {
    min-height: 316px;
}

.taulaverbena img {
    width: 100%;
}

.taulaverbena .card {
    position: relative;
    border: 2px solid #ccc;
    padding: 5px;
}

#taulaverbena .flotantPre {
    display: flex;
    box-sizing: border-box;
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-size: small;
    text-align: center;
    /*border: thin solid red;*/
    width: 90%;
    height: 20%;
    /*    justify-content: right;
        align-items:end;*/
}

#taulaverbena .flotantPost {
    display: flex;
    box-sizing: border-box;
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-size: small;
    text-align: center;
    /*border: thin solid red;*/
    width: 90%;
    /*height: 20%;*/
    justify-content: right;
    /*align-items:end;*/
}

#taulaportades .flotant {
    box-sizing: border-box;
    display: flex;
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-size: small;
    text-align: center;
    /*border: thin solid red;*/
    width: 90%;
    justify-content: right;
    align-items: end;
}

#taulaverbena .flotantPre .boto {
    display: flex;
    margin: 0 auto;
    box-sizing: border-box;
    cursor: pointer;
    padding: 8px;
    border-radius: 16px;
    /*width: 100%;*/
    width: 48%;
    float: left;
    justify-content: center;
    align-items: center;
}

#taulaverbena .flotantPost .boto {
    box-sizing: border-box;
    cursor: pointer;
    padding: 8px;
    border-radius: 16px;
    /*width: 100%;*/
    min-width: 15%;
    max-width: 20%;
    margin-left: 8px;
    float: left;
    /*margin: 0 auto;*/
}

#taulaportades .flotant .boto {
    box-sizing: border-box;
    cursor: pointer;
    padding: 8px;
    border-radius: 16px;
    /*width: 100%;*/
    min-width: 15%;
    max-width: 20%;
    margin-left: 8px;
    float: left;
    margin: 0 auto;
}

.taulaverbena .flotant .portadeable,
.flotantSuperior .portadeable {
    border: thin solid yellow;
    background-color: rgba(255, 255, 0, 0.4);
}

.taulaverbena .flotant .portadeable:hover,
.flotantSuperior .portadeable:hover {
    background-color: rgba(255, 255, 0, 0.7);
}

.taulaverbena .flotant .portada {
    background-color: rgba(255, 255, 0, 0.8);
    font-weight: bold;
    border: medium solid yellow;
}

.taulaverbena .flotant .seleccionable {
    border: thin solid green;
    background-color: rgba(0, 255, 0, 0.4);
    /*margin-bottom: 4px;*/
}

.taulaverbena .flotant .seleccionable:hover {
    background-color: rgba(0, 255, 0, 0.7);
}

.taulaverbena .flotant .seleccio {
    background-color: rgba(0, 255, 0, 0.8);
    font-weight: bold;
    border: medium solid green;
}

.taulaverbena .flotant .posteable {
    border: thin solid blue;
    background-color: rgba(100, 100, 255, 0.4);
    /*margin-bottom: 4px;*/
}

.taulaverbena .flotant .posteable:hover {
    background-color: rgba(100, 100, 255, 0.7);
    /*margin-bottom: 4px;*/
}

.taulaverbena .flotant .posteado {
    background-color: rgba(100, 100, 255, 0.8);
    font-weight: bold;
    border: medium solid blue;
}

.apartat {
    margin-bottom: 32px;
    padding: 16px;
}

.apartat:nth-child(even) {
    background-color: #DDDDDD;
}

.apartat:nth-child(odd) {
    background-color: #EEEEEE;
}

.apartat h2 {
    text-align: center;
}

#filtreverbena {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 64px;
    /*border: thin solid red;*/
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

#filtreverbena div {
    box-sizing: border-box;
    display: flex;
    width: 50%;
    float: left;
    justify-content: center;
    align-items: center;
    font-size: 150%;
}

#filtreverbena input {
    margin: 8px;
    height: 24px;
    width: 24px;
}

#filtreverbena #filtreesquerra {
    box-sizing: border-box;
    display: flex;
    justify-content: right;
    border-right: thin solid black;
    /*padding-right: 16px;*/
    height: 100%;

}

#filtreverbena #filtredreta {
    box-sizing: border-box;
    display: flex;
    justify-content: left;
    border-left: thin solid black;
    /*padding-left: 16px;*/
    height: 100%;
}

.flotantSuperior {
    /*border: thin solid red;*/
    position: absolute;
    text-align: center;
    right: 3%;
    top: 3%;
    width: 95%;
}

.flotantSuperior .boto {
    display: flex;
    /*box-sizing: border-box;*/
    float: right;
    cursor: pointer;
    padding: 8px;
    border-radius: 16px;
    margin-right: 4px;
    width: 40%;
    height: 16px;

    justify-content: center;
    align-items: center;


}

.botoTreure {
    padding: 8px;

    background-color: rgba(255, 0, 0, 0.4);
    border: thin solid red;
    border-radius: 16px;
    cursor: pointer;
    width: 16px;
    height: 16px;

    float: right;

}

.botoTreure:hover {
    background-color: rgba(255, 0, 0, 0.7);
}

.fiVerbena {
    text-align: center;
    margin-top: 16px;
    padding: 32px;
    background-color: #FFCCCC;
    border: medium solid red;
}

.fiVerbena button {
    width: 30vw;
    height: 10vh;
    font-size: 250%;
    margin-bottom: 16px;
}

#admin {
    box-sizing: border-box;
    background-color: #FFCCCC;
    margin-bottom: 16px;
}

#admin h2 {
    margin: 0;
    background-color: #FF8888;
    padding: 8px;
    border: medium solid #FF5555;
}

#admin h3 {
    margin-top: 0;
}

#admin div {
    padding: 16px;
}


#consola {
    background: #1e1e1e;
    color: #f1f1f1;
    font-family: monospace;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    border-radius: 5px;
    font-size: large;
}

#consola .linea {
    margin-bottom: 8px;
    line-height: 1.4;
}

#consola .info {
    color: #888;
}

#consola .status {
    color: #e5c07b;
}

#consola .success {
    color: #98c379;
}

#consola .error {
    color: #f44747;
    font-weight: bold;
}

#consola .finish {
    color: #4fc1ff;
    font-weight: bold;
    border-top: 1px dashed #444;
    padding-top: 5px;
}

#nouPost #llistaImatges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 90vw;
    margin: auto;
    /* border: thin solid red; */
    padding-bottom: 250px;
}

#nouPost #llistaImatges .imatge {
    position: relative;
    box-sizing: border-box;
    float: left;
    width: fit-content;
    width: 20vw;
    max-width: 400px;
    /* border: thin solid blue; */
    margin: 0.75vw;
    container-type: inline-size;
}

#nouPost #llistaImatges .imatge.seleccionada {
    filter: brightness(0.3);
}

#nouPost #llistaImatges .imatge img {
    width: 20vw;
    cursor: pointer;
    border-radius: 32px;
    border-bottom-left-radius: 0px;
    ;
    border: thin solid #444;
}

#nouPost #llistaImatges .botoOcultar {
    position: absolute;
    display: flex;
    bottom: 8px;
    right: 5px;
    background-color: rgba(255, 150, 150, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
    font-size: 3cqw;
}

#nouPost #llistaImatges .botoOcultar:hover {
    transform: scale(1.25);
    background-color: rgba(255, 100, 100, 0.9);
    font-weight: bolder;
    ;
}


/* ESTAT TANCAT -------------------------------------------------------------------------------------------------------- */
#nouPost .post #contingutPost {
    position: fixed;
    bottom: 0;
    left: 5vw;

    background-color: #AAA;

    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    height: 20vh;
    width: 90vw;
    border: thin solid #444;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;

    padding-left: 1vw;
    padding-right: 1vw;

    transition: height 0.25s ease-in-out;
}

#noupost .post #contingutPost #missatgePost {
    display: flex;
    width: 100%;
    height: 100%;
    /* border: thin solid red; */
    justify-content: center;
    align-items: center;
}

#nouPost .post #contingutPost #llistaImatgesPost {
    background-color: #999;
    border: thin solid #444;
    position: relative;
    display: none;
    align-items: center;
    width: 87.5vw;
    height: auto;
    margin: auto;
    margin-top: 16px;
    margin-bottom: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 16px;
    border-bottom-left-radius: 0px;
    /* transition: top 0.25s ease-in-out; */
}

#nouPost .post #contingutPost #llistaImatgesPost .imatge {
    margin-top: 8px;
    margin-bottom: 8px;
}

#nouPost .post #contingutPost #llistaImatgesPost .imatge img {
    height: 15vh;
    width: calc(15vh * 0.75);
    max-height: 200px;
    margin-left: 0.5vw;
    margin-right: 0.5vw;
    transition: width 0.25s ease-in-out, height 0.25s ease-in-out;
}


/* ESTAT OBERT --------------------------------------------------------------------------------------------------------- */
#noupost .post.obert #contingutPost {
    height: 95vh;
    padding-top: 32px;
}

#nouPost .post.obert #contingutPost #llistaImatgesPost {
    min-height: 30vh;
    height: auto;
}

#nouPost .post.obert #contingutPost #llistaImatgesPost .imatge {
    margin-top: 32px;
    margin-bottom: 32px;

}

#nouPost .post.obert #contingutPost #llistaImatgesPost .imatge img {
    margin-top: 32px;
    margin-bottom: 32px;
    max-height: none;
    object-fit: cover;
    min-height: 30vh;
    min-width: calc(30vh/1.25);

}

#nouPost .post #titolPostImatges {
    display: none;
}

#nouPost .post.obert #titolPostImatges {
    display: block;
}

#nouPost .post #titolPostCaption {
    display: none;
}

#nouPost .post.obert #titolPostCaption {
    display: block;
}

#nouPost .post.obert h2 {
    display: block;
    background-color: #620101;
    color: #EEE;
    font-weight: lighter;
    /* width: 100%; */
    margin: auto;
    margin-left: 0;
    margin-right: 0;
    font-size: 2.5vh;
    padding-left: 32px;
    padding-right: 32px;
    line-height: 3.5vh;
    border-radius: 32px;
}

#nouPost .post #llistaImatgesPost #divPlegar {
    position: sticky;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    /* border: medium solid blue; */
    border-left: thin solid #444;
    background-color: #448844;
    font-size: 8vh;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    height: 100%;
}

#nouPost .post #llistaImatgesPost #divPlegar:hover {
    background-color: #88AA88;
}

#nouPost .post #formCaption {
    border: thin solid red;
    width: 87.5vw;
    margin: auto;
    margin-top: 16px;

    display: flex;
    gap: 1vw;
    display: none;
}

#nouPost .post.obert #formCaption {
    display: flex;
}

#nouPost .post #formCaption #botonsPost {
    display: flex;
    gap: 1vh;
    flex-direction: column;
    /* border: thin solid blue; */
    justify-content: center;
}

#nouPost .post #formCaption #botonsPost button {
    text-align: left;
    height: 4vh;
    background-color: #620101;
    color: #EEE;
    border-radius: 8px;
}

#nouPost .post #formCaption #botonsPost button:hover {
    background-color: #905151;
    cursor: pointer;
}

#nouPost .post #formCaption textarea {
    font-size: 2vh;
}

#nouPost .post #formCaption #dolphin3 {
    max-height: 15vh;
    margin-left: auto;
}

#nouPost .post #postBottom {
    display: flex;
    flex-direction: row;
    margin-top: 16px;
    margin-bottom: 8px;
    /* border: thin solid blue; */
    min-height: 0;
    flex-grow: 1;
    display: none;
    gap: 1vw;
}

#nouPost .post.obert #postBottom {
    display: flex;
}

#nouPost .post #postBottom #postConsola {
    display: flex;
    flex-direction: column;
}

#nouPost .post #postBottom #postConsola #consola {
    width: 50vw;
    max-width: 50vw;
    margin-top: 8px;
}

#nouPost .post #postBottom #postSend {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#nouPost .post #postBottom #postSend #botoSend {
    flex-grow: 1;
    margin: 32px;
    background-color: #448844;
    cursor: pointer;
    font-size: 10vh;
}

#nouPost .post #postBottom #postSend #botoSend:hover {
    background-color: #88AA88;
}

#nouPost #popupOculta {
    border: 20px solid red;
    background-color: #FCC;
    border-radius: 32px;
    padding-bottom: 8px;
    text-align: center;
}

#nouPost #popupOculta form {
    text-align: center;

}

#nouPost #popupOculta form button {
    height: 5vh;
    width: 5vw;
    margin-top: 16px;
}

#nouPost #popupOculta::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

#nouPost #popupCarrega {
    border: 16px solid #620101;
    background-color: #AAA;
    text-align: center;
    border-radius: 32px;
    border-bottom-left-radius: 0px;
}

#nouPost #popupCarrega img {
    max-width: 20vw;
}

#nouPost #popupCarrega::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}