*
{
    margin: 0;
    padding: 0;
}
body{
    background-image: url(71.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    scroll-behavior: auto;
}
/* Add to design.css */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.close {
  position: absolute;
  top: 30px; right: 50px;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}
/* filepath: c:\Users\pc\Desktop\Arwen\TR art portfolio\design.css */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: rgba(100,200,255,0.3);
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.1s;
}
#bg1 { left: 10vw; top: 10vh; width: 10px; height: 10px;}
#bg6 { left: 10vw; top: -100vh; width: 10px; height: 10px; }
#bg2 { left: 70vw; top: 30vh; background: rgba(161, 210, 255, 0.3); }
#bg7 { left: 20vw; top: -30vh; background: rgba(161, 210, 255, 0.3); }
#bg3 { left: 20vw; top: 70vh; background: rgba(100, 141, 255, 0.3); }
#bg4 { left: 80vw; top: 80vh; background: rgba(150, 200, 255, 0.3); width: 40px; height: 40px; } 
#bg5 { left: 80vw; top: -27vh; background: rgba(200, 220, 255, 0.3); width: 40px; height: 40px; }
#bg8 { left: 90vw; top: -110vh; background: rgba(200, 180, 255, 0.3); width: 10px; height: 10px; }
.header{
    background-color: #383034;
    display: block;
}
.name{
        margin: 30px;
        font-size: 30px;
        font-family: "Grandstander", "cursive";
        font-optical-sizing: auto;
        font-weight: 5;
        font-style: normal;
        color: rgba(247, 188, 239, 0.76); /* Fallback color */
        background: linear-gradient(40deg, rgb(255, 190, 190), rgb(134, 41, 97));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: 1px black;

}
@keyframes fade-left {
    0% {
        transform: translateX(-10%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.title{
    font-size: 20px;
    font-family: "Aboreto", system-ui;
    font-weight: 0;
    text-align: center;
    font-style: normal;      
    color: rgba(0, 0, 0, 0.76); /* Fallback color */
    transition: transform 0.2s;
    animation: fade-left 1s ease-in-out;
}
.desc{
    font-size: 11px;
    text-align: left;
    font-family: "Averia Sans Libre", "sans-serif";
    font-weight: 300;
    font-style: normal;     
    color: rgba(226, 108, 210, 0.76); /* Fallback color */
    background: linear-gradient(40deg, rgb(182, 133, 144), rgb(80, 37, 62));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 30px;
}
.portfolio {
    font-size: px;
    font-family: "Aboreto", system-ui;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    margin-bottom: 0%;
    padding: 0;
    flex-direction: column;
}
.copyright{
    font-size: 12px;
    font-family: "Averia Sans Libre", system-ui;
    font-weight: 0;
    font-style: normal; 
    color: rgba(2, 2, 2, 0.76); /* Fallback color */
    transition: transform 0.2s;
    animation: fade-left 1s ease-in-out;
    text-align: center;
    margin-bottom: 0%;
}
.copyright :hover
{
    color: rgba(255, 0, 0, 0.76);
}
hr{
    width: 70%;
    align-items: center;
    margin: 20px auto;
    margin-bottom: 0;
}
.label{
    margin: 60px;
    font-size: 20px;
    font-family: "Aboreto", system-ui;
    font-weight: 0;
    font-style: normal; 
    color: rgba(0, 0, 0, 0.76); /* Fallback color */
    transition: transform 0.2s;
    animation: fade-left 1s ease-in-out;
    text-align: center;
    margin-bottom: 0%;
}
.artwork-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items horizontally */
    align-items: center;     /* Center items vertically */
    gap: 20px;
    padding: 20px;
}

.artwork-item {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Center content inside the item */
    justify-content: center;
    margin: 20px;
    width: 500px;             /* Set a reasonable width */
    background-color: rgba(255, 255, 255, 0.7); /* Add background color */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.336);
    padding: 20px;
}
.artwork-item img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    margin: 20px;
}
.artwork-item :hover{
    background-color: rgba(255, 255, 255, 0.5);
    color: rgb(255, 255, 255);
    transition: transform 0.3s;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.scroll-hidden{
    opacity: 0;
    transform: translateX(20%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-visible{
    opacity: 1;
    transform: translateX(0);
}
.scroll-out{
    opacity: 0;
    transform: translateX(-10%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.button-container{
    display: flex;
    left: 50%;
    margin-left: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0);
    color: rgb(252, 170, 170);
    border: 5px solid #4e333c;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 50px;
    cursor: pointer;
    border-radius: 12px;
}
a{
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    font-family: "averia Sans libre", "sans-serif";
}
.button-container:hover{
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(255, 255, 255);
    border: 2px solid #413539;
    transition: background-color 0.3s ease transform 0.3s ease;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.footer{
    background-color: #383034;
    width: 60%;
    margin-top: 50px;
    padding: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.76); /* Fallback color */
    font-family: "Aboreto", system-ui;
    font-weight: 0;
    font-style: normal; 
}
.footer a{
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: inherit;
    font-family: "averia Sans libre", "sans-serif";
}
@media (max-width: 600px) {
  .artwork-grid {
    flex-direction: column;
    gap: 10px;
    padding: 5px;
  }
  .artwork-item {
    width: 90vw;
    height: auto;
    margin: 10px auto;
    padding: 10px;
  }
  .artwork-item img {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .label, .title, .name, .desc {
    font-size: 16px;
    margin: 10px;
    text-align: center;
  }
  .button-container {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
}
