/* 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 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 95vh;
    font-family: 'Tinos';
    font-size: 1.3rem;
}

/* Work Disambiguation Squares */

#workDisambiguation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100vw;
    height: 65vh;
}

#workDisambiguation a {
    color: rgb(255, 255, 255, 1);
    font-weight: normal;
}

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

    position: relative;
    text-align: center;

    border: 1px 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;

    background-color: black;
}

.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: 700px) {

    main {
        font-size: 1.1rem;
    }

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