::selection {
    background-color: #4169E1;
    color: black;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #4169E1;
}

body {
    background-image: url("/images/dotgridpaper.jpg");
    background-color: black;
    color: white;
    font-family: Hack, monospace;
}

.main {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    flex-wrap: wrap;
}

.window {
    border-inline: 1px solid #808080;
    border-bottom: 1px solid #808080;
    border-radius: 5px;
    background-color: #1C1C1C;
    margin-top: 1%;
    margin-bottom: 1%;
}

.window header {
    border-top: 1px solid #808080;
    border-bottom: 1px solid #808080;
    border-radius: 5px 5px 0 0;
    background-color: black;
}

.tiling  {
    font-size: 12pt;
    margin: 0;
    padding: 7px;
    line-height: 1; 
}

.tiling span {
    float: right;
}

.content {
    margin: 1.5%;
}

.content img {
    display: block;
    margin: auto;
    width: 100%;
}

/* Linha de códigos para o terminal */

.content input {
    background-color: #1C1C1C;
    color: white;
    border: none;
}

textarea:focus, input:focus, select:focus {
    box-shadow: 0 0 0 0;
    border: 0 none;
    outline: 0;
} 

/* Tamanhos e ajustes das Janelas */

.small {
    width: 35%;
    height: 300px;
}

.large {
    width: 95%;
    height: fit-content;
}

.image {
    width: 60%;
    height: fit-content;
}

.avatar {
    width: 20%;
    height: fit-content;
    object-fit: cover;
}

/* Fim */

.grid {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr ;
    grid-gap: 10px;
    margin: 1%;
}

.grid-content {
    position: relative;
    overflow: hidden;
}

.grid img {
    width: 100%;
    height: 100%;
    transition: all 0.2s ease-out;
    object-fit: cover;
}

.grid img:hover {
    transform: scale(1.2);
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.modal-content {
    width: fit-content;
    height:fit-content;
    transform: scale(0.7);
    transition: transform 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content.show {
    transform: scale(1);
}


@media (max-width: 767px) { 
    .main {
        justify-content: space-evenly;
        flex-direction: column;
    }

    .small {
        width: 100%;
        height: fit-content;
    }

    .large {
        width: 100%;
        height: fit-content;
    }

    .avatar {
        display: none;
    }

    .image {
        width: 90%;
    }

    .grid {
        display: block;
    }

    .grid-content {
        margin-bottom: 1%;
    }

    .grid img {
        transition: none;
    }

    .grid img:hover {
        transform: none;
        cursor: none;
    }

    .modal-content {
        width: 80%;
        height: 80%;
    }
}

