@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --text-color: #030303;
    --first-letter-color: #de3030;
    --background-color: #ffffffa0;
    --error-text-color: #b60e0e;
}

body {
    min-height: 100vh;
}

.text-button {
    padding: 15px;
    opacity: 0.5;
    cursor: pointer;
    user-select: none;
}

.text-button:hover {
    opacity: 0.8;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.background-image {
    z-index: -150;
}

.background-image img {
    height: 100vh;
    width: 100%;
}

.background-filter {
    background: var(--background-color);
    z-index: -100;
    backdrop-filter: blur(10px);
}

header {
    background: white;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10000;

    font-size: 30px;
    font-weight: bold;
    color: var(--text-color);

    padding: 15px 25%;
    box-sizing: border-box;
    border-bottom: 2px solid black;
    margin-bottom: 30px;
}

header span {
    white-space: nowrap;
}

header img {
    height: 50px;
    animation: 2s linear lgbt infinite;
}

header img:last-of-type {
    transform: rotateY(180deg);
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    justify-items: center;
    grid-row-gap: 30px;
}

main > section {
    width: 100%;
    padding: 0 10%;
    box-sizing: border-box;
}

section h2 {
    margin-bottom: 25px;
}

section h2::first-letter {
    color: var(--first-letter-color)
}

.viewport > div {
    position: relative;
}

.viewport-measure {
    margin: 3px 0 0 3px;
    position: absolute;
    font-weight: bold;
    top: 250px;
    left: 250px;
    user-select: none;
    padding: 2px;
    color: white;
    mix-blend-mode: difference;
}

.viewport-measure[top] {
    top: 50px;
}

.viewport-measure[half-top] {
    top: 150px;
}

.viewport-measure[half-bottom] {
    top: 350px;
}

.viewport-measure[bottom] {
    top: 450px;
}

.viewport-measure[left] {
    left: 50px;
}

.viewport-measure[half-left] {
    left: 150px;
}

.viewport-measure[half-right] {
    left: 350px;
}

.viewport-measure[right] {
    left: 450px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input {
    padding: 0 5px;
    margin: 0 2px;
}

input[type="submit"] {
    height: 30px;
    margin: 0 10%;
    width: 80%;
}

input[type="button"],
input[type="submit"] {
    background: white;
    border: none;
    border-radius: 3px;
    box-shadow: black 0 0 3px;
    cursor: pointer;
    transition: 0.05s linear all;
}

input[type="button"]:hover,
input[type="submit"]:hover {
    box-shadow: black 0 0 7px;
}

.error-message {
    color: var(--error-text-color);
}

.table {
    display: flex;
    flex-direction: column;
}

.row {
    white-space: nowrap;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(3, 50px) 110px 170px 190px;
    gap: 3px;
}

.row:not(:first-child) span:last-child {
    font-size: 0.8em;
}

.legend {
    font-weight: bold;
}

.legend:last-child {
    visibility: hidden;
}

.legend:last-child::after {
    margin-top: -52px;
    font-weight: normal;
    visibility: visible;
    content: "Тут пока пусто(";
}

.row > span {
    padding: 10px;
}

.row:not(.legend):hover {
    font-weight: 500;
}

.i-love-php {
    position: fixed;
    left: -70px;
    bottom: 30px;
    height: 200px;
    width: 200px;
    z-index: 1000;
    transform: rotateZ(2deg);
    transition: 0.3s ease-out all;
}

.i-love-php .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
}

.php {
    transform: translateX(40px) translateY(30px);
    transition: 0.3s ease-out all;
}

.trash-can {
    transition: 0.3s ease-out all;
}

.i-love-php:hover {
    transform: rotateZ(15deg);
}

.i-love-php:hover .trash-can {
    transform: translateX(-20px) translateY(-20px) rotateZ(-20deg);
}

.i-love-php:hover .php {
    transform: translateX(60px) translateY(10px) rotateZ(-10deg);
}

.illuminati {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    transform: rotateZ(-10deg);
    transition: 0.5s ease-in-out all;
    animation: 10s linear lgbt infinite;
    opacity: 0.5;
}

.illuminati:hover {
    transform: rotateZ(700deg) scale(2);
    opacity: 1;
}

.illuminati img {
    height: 200px;
    width: 200px;
}

@keyframes lgbt {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}

@media screen and (max-width: 1800px) {
    main {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 1300px) {
    main {
        grid-template-columns: 1fr;
    }

    header span {
        font-size: 25px;
    }

    input[type="submit"] {
        width: 300px;
    }
}

/*# sourceMappingURL=https://se.ifmo.ru/~s368849/lab1/WebLab-1.94ac36c4.css.map */