@import url("../../styles/style.css");

body {
    margin: 56px 30px;
}

#header {
    display: flex;
    flex-direction: column;
    gap: 10px;

    #back {
        position: relative;
        width: min-content;
        margin-bottom: 50px;

        p {
            font-size: 18px;
        }

        img {
            position: absolute;
            top: 9px;
            left: 10px;
            transition: all 300ms;
        }

        &:hover {
            img {
                left: -30px;
            }
        }
    }

    h1 {
        color: var(--text-menu-color);
        font-size: 36px;
        font-weight: 600;
        line-height: 44px;
    }

    a {
        text-decoration: underline;
        font-size: 24px;
        line-height: 20px;
    }
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px !important;

    #switcher {
        display: flex;
        gap: 14px;

        a, p {
            font-size: 24px;
            text-decoration: none;
        }

        a:hover {
            transform: scale(1.2);
        }

        a:last-child img {
            transform: rotate(180deg);
        }
    }

    #img-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;

        a {
            width: auto;
            max-width: calc(65% - 30px);

            img {
                width: 100% !important;
            }
        }

        > img {
            width: 15%;
            transition: all var(--transition-button__hover) ease-out;
            cursor: pointer;

            &:hover {
                transform: scale(1.1);
            }
        }
    }

    #description {
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        text-align:justify;
    }

    #another-planes {
        color: var(--text-table-color);
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        align-self: flex-start;

        a {
            display: block;
        }
    }
}

/* Adaptability */
@media screen and (max-width: 1300px) {
    body {
        padding: 0 0 20px;
    }

    #header {
        align-items: center;

        h1 {
            font-size: 28px;
        }

        a {
            font-size: 18px;
        }
    }

    main {
        #switcher {
            a, p {
                font-size: 18px;
            }
        }
    }
}

@media screen and (max-width: 600px) {
    main #img-container {

        a {
            max-width: unset;
        }

        > img {
            display: none;
        }
    }
}