/* Reset styles */
ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  text-decoration: none;
  display: inline-block;
}

button {
  border: none;
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

address {
  font-style: normal;
}

input,
textarea {
  display: block;
}
input,
textarea:focus-visible{
  outline: none;
  border: none;
}
textarea{
  resize:none;
}
select{
    outline: none;
    border: none;
}
option:hover{
  background-color: none;
}

/* Gallery */

:root{
    --main-color:#FFF;
    --background-color: #4338ca;
    --logo-color: rgb(79, 70, 229);
    --link-color: rgb(55, 65, 81);
        --linear-gradient-color: rgb(162, 162, 249);
            --gradient-color: rgb(255, 127, 255);
}
body{
        background-image: linear-gradient(-45deg, var(--gradient-color), var(--linear-gradient-color));
            background-position: center;
            background-size: cover;
    font-family: Arial, sans-serif;

    margin: 0;
    padding: 20px;
}

#projects-gallery{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#projects-gallery a {
    text-decoration: none;
    color: #000;
    background: #000;
}
#projects-gallery button{
    padding: 0.5rem 1.5rem;
        background-color: var(--logo-color);
        border-radius: 0.5rem;
        color: var(--main-color);
        font-size: 100%;
        font-weight: inherit;
        line-height: inherit;
        transition-property: background-color;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
}
#projects-gallery button:is(:hover,:focus) {
    background-color: var(--background-color);
}
#projects-gallery p {
    color: var(--link-color);
        font-weight: 500;
        font-size: 0.875rem;
        line-height: 1.25rem;
        padding: 0.5rem 0.75rem;
}

.header-logo {
    position: absolute;
    top: 10px;
    left: 20px;
    color: var(--main-color);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.5rem;
    background: rgba(64, 50, 115, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1280px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.editor-btn {
    font-weight: bold;
    text-align: center;
    background-color: var(--button-color);
    width: 90px;
    height: 20%;
    color: var(--main-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.editor-link {
    color: var(--main-color);
    font-weight: 600;
    text-decoration: underline;
    font-size: 1.2rem;
    top: 60px;
    position: absolute;
    left: 20px;
    background: #311e48;
    padding: 5px 10px;
    border-radius: 5px;
}