/* Fonts */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* General CSS attributes for the page */

a {
    text-decoration: none;
    transition: ease-in 0.2s;
}

a:hover {
    color: rgba(190, 87, 41, 0.5);
    transition: ease-in 0.2s;
}

body {
    background-image: url("resources/IMG_3011.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: 100% 100%;
    background-repeat: no-repeat;
}

main a {
    color: rgb(184, 121, 92);
    font-weight: bold;
}

/* Header nav bar for all pages */

header {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100.1vw;
    background-color: rgba(0, 0, 0, 0.5);
    margin-left: -9px;
    font-family: 'Tinos';
}

header a {
    color:rgba(190, 87, 41, 1);
}

/* Actual content of the page */

/* "Works" page title */

main {
    color: rgba(190, 87, 41, 1);
    display: grid;
    place-items: center;
}

h1 {
    margin-top: 80px;
}

/* Work Squares */

#workList {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100vw;
    font-family: 'Tinos';
    font-size: 1.2rem;
    margin-top: 20px;
}

#workList a {
    text-decoration: none;
    color: rgb(255, 255, 255, 1);
    font-family: "Playfair Display";
    font-weight: normal;
}

.workSquare {
    width: 350px;
    height: 350px;

    position: relative;
    text-align: center;

    border: 2.5px solid rgba(255, 255, 255, 1); /* unhovered solid border */

    display: grid;
    place-items: center; /* Make inside text centered */

    opacity: 0.65;

    transition: ease-in 0.2s;
}

.workSquare:hover::after {
    content: "";
    position: absolute;
    top: -2.5px; /* These dimensions need to be the negative of the border size */
    left: -2.5px;
    right: -2.5px;
    bottom: -2.5px;
    border: 2.5px solid rgba(255, 255, 255, 0.5); /* Beggining rgba */
    z-index: 2;
    animation: pulse-brightness 0.5s infinite ease-in-out; /* How fast the pulses are */
}

@keyframes pulse-brightness {
    0%, 100% {
      border-color: rgba(255, 255, 255, 1); /* Beggining rgba */
    }
    50% {
      border-color: rgba(0, 72, 0, 1); /* End rgba */
    }
  }

.workSquare:hover {
    opacity: 1;
    transition: ease-in 0.2s;
}

@media (max-width: 750px) {

    .workSquare {
        width: 170px;
        height: 170px;
    }

    #workList {
        font-size: 0.8rem;
    }

}

/* Define pictures for each work square */

.workSquare.square13 {
    background-image: url(resources/LSTBThroat.jpg);
    background-position: 65%;
    background-size: cover;
}

.workSquare.square12 {
    background-image: url(resources/thebanshee.jpg);
    background-position: -100%;
    background-size: cover;
}

.workSquare.square11 {
    background-image: url();
    background-color: black;
    background-position: -100%;
    background-size: cover;
}

.workSquare.square10 {
    background-image: url(resources/mariokart1000000.png);
    background-position: 60%;
    background-size: cover;
}

.workSquare.square9 {
    background-image: url(resources/theotherday.jpg);
    background-position: -71.5% 35%;
    background-size: 500%;
}

.workSquare.square8 {
    background-image: url(resources/latentspacebodylimbs1.jpg);
    background-position: 60%;
    background-size: cover;
}

.workSquare.square7 {
    background-image: url(resources/Dimitris.png);
    background-position: 40%;
    background-size: cover;
}

.workSquare.square6 {
    background-image: url(resources/canwefeeltouch.jpg);
    background-position: 50%;
    background-size: cover;
}

.workSquare.square5 {
    background-image: url(resources/beingwithyouinunity.png);
    background-position: 80%;
    background-size: cover;
}

.workSquare.square4 {
    background-image: url(/resources/oschaparroscresceneasazinheirasmingam.jpg);
    background-size: cover;
}

.workSquare.square3 {
    background-image: url(/resources/peoplearenotnumbersmemorial.png);
    background-color: black;
    background-position: 0% 90%;
    background-size: contain;
    background-repeat: no-repeat;
}

.workSquare.square2 {
    background-image: url(resources/twitchplaysmax.png);
    background-position: 80%;
    background-size: cover;
}

.workSquare.square1 {
    background-image: url();
    background-color: black;
    background-position: -100%;
    background-size: cover;
}