@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Russo+One&display=swap');

:root {
    --preto: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);
    --cor-do-fundo: hsl(266, 16%, 92%);
    --cor-escura-1: hsl(256, 12%, 12%);
    --cor-escura-2: hsl(256, 10%, 10%);
    --cor-escura-3: hsl(257, 11%, 16%);
    --cor-escura-4: hsl(270, 2%, 25%);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Russo One", sans-serif;
    user-select: none;
}

.container {
    display: flex;
    flex-direction: row;
    height: 105px;
}

.tela {
    display: none;
}

.tela.active {
    display: block;
}

body {
    background-color: var(--cor-do-fundo);
    color: var(--preto);
    height: 100vh;
}

a {
    text-decoration: none;
}

button {
    all: unset;
}

/*---------HEADER---------*/

header {
    width: 100%;
    height: 110px;
    position: fixed;
    background: var(--cor-escura-1);
    align-items: center;
}

header img {
    margin-left: 20px;
    margin-right: 20px;
    transform: scale(1.2);
}

header h1 {
    font-size: 50px;
    color: var(--cor-do-fundo);
    font-family: "Russo One", sans-serif;
}

/*---------MENU---------*/

#menu {
    display: flex;
    flex-direction: column;
    margin-top: 105px;
    width: 60px;
    height: 100vh;
    background-color: var(--cor-escura-4);
    overflow: hidden;
    position: fixed;
    left: 0;
    transition: width 0.3s;
}

#menu:hover {
    width: 200px;
}

#menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    padding: 15px 5px 15px 10px;
    transition: background 0.3s;
}

#menu a:hover {
    background-color: var(--cor-escura-3);
}

#menu a:active {
    background-color: var(--cor-escura-2);
}

#menu a p {
    padding-left: 0.3rem;
    font-size: 20px;
}

#menu button {
    display: flex;
    align-items: center;
    /* ícone e texto alinhados à esquerda */
    color: var(--white);
    text-decoration: none;
    padding: 15px 5px 15px 10px;
    transition: background 0.3s;
}

#menu div button {
    width: 100%;
    padding-right: 100px;
}

#menu button:hover {
    background-color: var(--cor-escura-3);
    cursor: pointer;
}

#menu button:active {
    background-color: var(--cor-escura-2);
}

#menu button p {
    padding-left: 0.3rem;
    font-size: 20px;
}

.option_name {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0;
    transition: width 0.3s, margin-left 0.3s;
}

#menu:hover .option_name {
    width: 120px;
    margin-left: 10px;
}

/*---------MAIN---------*/

main {
    position: fixed;
    left: 65px;
    top: 110px;
    bottom: 20px;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 50px;
}

#caixa_esquerda {
    border: 2px solid rgba(0, 0, 0, 0.272);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.8);

    height: 700px;
    width: 900px;
    margin: 50px;

    background-color: #4d5a78;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#caixa_direita {
    border: 2px solid black;
    border-radius: 8px;

    background: #252d3e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    color: var(--cor-do-fundo);

    height: 750px;
    width: 420px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#caixa_direita div {
    width: 100%;

    border-bottom: 1px #7b808a solid;
    padding-bottom: 5px;
    margin-bottom: 10px;

    text-align: center;
}

.opcao_direita {
    all: unset;
    width: 370px;
    height: 50px;
    margin: 2px;

    background: #4d5a78;
    padding: 3px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px rgba(100, 104, 114, 0.531) solid;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);

    transition: all 0.3s ease;
}

.opcao_direita p {
    font-size: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.opcao_direita:hover {
    transform: translateX(19px);
    background: #617cba;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.opcao_direita:hover p{
    transform: translateX(10px);
    font-size: 25px;
}

.opcao_direita:active {
    transform: translateX(5px);
    background: #3557a7c2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.8);
}

/*---------FOOTER---------*/

footer {
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 20px;
    background-color: var(--cor-escura-2);
    bottom: 0;
}

footer p {
    text-align: center;
    color: var(--cor-do-fundo);
    font-size: 11px;
}

/* Responsividade geral */
@media (max-width: 900px) {
    main {
        flex-direction: column;
        margin: 10px;
        left: 0;
        top: 120px;
        right: 0;
        position: static;
    }
    #caixa_esquerda, #caixa_direita {
        width: 95vw;
        height: auto;
        margin: 10px 0;
    }
    #menu {
        width: 100vw;
        height: 60px;
        flex-direction: row;
        position: static;
        margin-top: 0;
    }
    #menu:hover {
        width: 100vw;
    }
    .option_name {
        width: auto;
        margin-left: 10px;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 30px;
    }
    #caixa_esquerda, #caixa_direita {
        width: 98vw;
        padding: 5px;
        font-size: 16px;
    }
    .opcao_direita {
        width: 90vw;
        font-size: 16px;
    }
    footer p {
        font-size: 9px;
    }
}