:root {
  --main-color: #73489a; /* blue-violet */
  --background-color: whitesmoke;
}

body{
    /*background-image: linear-gradient(180deg, rgb(0, 55, 87) 0%, rgb(0, 82, 72) 80%, rgb(0, 55, 87) 100%);
    color: white;*/
    background-color: var(--background-color);
    color: var(--main-color);
    height: 100vh;

    font-family: "Reddit Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}
#header{
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 2px solid var(--main-color);
    border-radius: 50px;
}
#menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

#menu a {
    padding: 5%;
    margin: 5px;
    border: solid 2px var(--main-color);
    border-radius: 50px;
    cursor: pointer;
    color: var(--main-color);
    text-decoration: none;
    font-size: 100%;
    min-width: max-content;
    min-height: fit-content;
}



section.scrollMenu {
    display: flex;
    overflow: auto;
    white-space: nowrap;
    align-items: center;
    height: 70px;

}
#tagsCaption {
    font-weight: bold;
}
#tags div {
    /*display: inline-block;*/
    text-align: center;
    width: min-content;

    padding: 5px 15px 5px 15px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
}
.selected {
    display: flex;
    align-items: center;
    
    background-color: rgba(255, 255, 255, 0.9);
    
}


div.painting, #tags div, .paintingImage{

    /*backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 1px 1px 10px rgba(255, 255, 255, 0.7);*/
    /* From https://css.glass */
    
    border-radius: 16px;
    box-shadow: 0 4px 30px rgb(138 43 226 / 0.1);
    border: 2px solid rgba(115,130,154, 0.5); /*rgba(138,43,226, 0.5);*/
}

div.painting:hover,  #tags div:hover, #menu a:hover, #see_more_button:hover{
    background: white; /*rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(12.6px);
    -webkit-backdrop-filter: blur(12.6px);*/
    box-shadow: 0 4px 30px rgb(115 130 154 / 0.3); /*rgb(138 43 226 / 0.3);*/
}

.paintingTitle {
    font-size: large;
    font-weight: bold;
    margin: 0;
}

h1{
    font-size: xx-large;
    margin: 0;
}

#paintings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /*grid-template-columns: repeat(auto-fill,
              minmax(200px, 1fr));
    grid-auto-rows: minmax(100px, auto); 
    grid-gap: 0px;*/
}

@media screen and (max-width: 480px) {
    #paintings {
        grid-template-columns: repeat(1, 1fr);
    }
    #header{
        flex-direction: column;
    }
    h1{
        font-size: 100%;
    }
}



div.painting {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;

    padding: 10px 0px 10px 0px;
    border-radius: 7px;
    margin: 15px;
    /*height: 700px;*/

    /* Animation d'apparition : */
    animation: show 600ms 100ms cubic-bezier(0.38, 0.97, 0.56, 0.76) forwards;
    opacity: 0;
    transform: rotateX(-90deg);
    transform-origin: top center;
}

@keyframes show {
    100% {
        opacity: 1;
        transform: none;
    }
}

.paintingImage {
    /*min-width: 100%;
    min-height: 100%;
    width: auto;*/
    height: 60vh;
    /*max-height: 600px;*/
    object-fit: contain;
    border-radius: 25px;
    margin: 20px;

    /* Animation d'apparition : */
    animation: show 600ms 100ms cubic-bezier(0.38, 0.97, 0.56, 0.76) forwards;
    opacity: 0;
    transform: rotateX(-90deg);
    transform-origin: top center;
}


div.details {
    width: 80%;
    margin: 10px;
}

.dimensions{
    font-size: medium;
}

#noResults{
    font-size: 200%;
    padding-top: 200px;
}

#imageViewerCard{
    z-index: 100;
    position: fixed;
    background-color: white;
    width: 90%;
    height: 90%;
    left: 5vw;
    top: 5vh;
    border-radius: 20px;
}
#imageViewerBackground{
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    left:0;
    top:0;
    width: 100%;
    height: 100%;
}

/* Zoom : */
* {box-sizing: border-box;}

.img-zoom-container {
    position: relative;
    display: flex;
    left: 15%;    
    top: 10%;
    align-items: flex-end;
}

.img-zoom-lens {
  position: absolute;
  border: 1px solid #d4d4d4;
  /*set the size of the lens:*/
  width: 120px;
  height: 120px;
}

.img-zoom-result {
  border: 1px solid #d4d4d4;
  /*set the size of the result div:*/
  width: 300px;
  height: 300px;
}
#myimage{
    height: 80vh;
}
#dimensionsViewerCard {
    color: black;
    position: absolute;
    top: 20%;
    width: 50%;
    left: 50%;
}

#loading_icon {
    font-size: 300%;
}

#see_more_button {
    padding: 10px;
    margin: 20px;
    width: 200px;
    font-size: xx-large;
    border: solid 5px var(--main-color);
    color: var(--main-color);
    background-color: transparent;
    border-radius: 30px;
}

/* MANAGE */

#cardAppend {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    width: 80%;
    background-color: #212121;
    border-radius: 7px;
    padding: 10px;
    border: solid 3px red;
}

#cardAppend input[type="text"], input[type="file"] {
    font-size: large;
    width: 600px;
    background-color: white;
    border-radius: 7px;
    border: 2px white solid;
    margin: 5px;
}
#cardAppend textarea {
    height: 250px;
}
#cardAppend button {
    background-color: white;
    border-radius: 7px;
    padding: 10px;

}
#paintingSelector {
    margin: 10px;
}

/* Page À propos */
h2{
    font-size: xx-large;
}
#description p {
    text-indent: 2em; /* Définit la taille de l'alinéa  */
    font-size: larger;
    margin: 0;
}
#description {
    margin-left: 30px;
}
#description h2{
    padding: 0px;
    margin: 0;
}