body {
    background: var(--colour-2);
    height: 100%;
    width: 100%;
}

#content-layer {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    width: 100%;
}

aside {
    align-content: center;
    height: 100vh;
}

#hero {
    margin: auto;
    display: flex;
    align-items: center;
    gap: 1em;
    scale: 1.5;
    padding: 1em;
    margin-bottom: 4em;
    width: fit-content;
  
    background: var(--colour-4);
    border-radius: 1em;
    box-shadow: 1px 1px 5px black;
    
    h1 {
        font-size: 1.5em;
    }
}

.login-area, .signup-area {
    margin: auto;
    margin-top: -1em;
    width: 18em;
    max-width: 90%;
    font-size: 12pt;

    form {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        align-items: center;
    }

    input {
        background: var(--colour-4);
        color: var(--colour-3);
        width: 100%;
        box-sizing: border-box;
        border: 2px solid var(--colour-1);
        border-radius: 1em;
        padding: 0.5em;
    }

    button {
        padding: 0.5em;
    }

    .form-error {
        width: 100%;
        margin: 0;
        color: red;
        text-align: center;
        overflow-wrap: break-word;
    }
    
    .goto-signup, .goto-login {
        font-style: italic;
        text-decoration: underline;
        cursor: pointer;
    }
}

.login-area.hidden,
.signup-area.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;  /* stop hidden form taking up space */
}

main {
    display: flex;
    gap: 2em;
    padding: 2em;
    padding-right: 5em;
    align-content: center;
    justify-content: center;
    
    hr {
        display: none;
    }
    
    .tag-lines {
        display: flex;
        flex-direction: column;
        gap: 2em;
        text-align: center;
        align-items: center;
        width: 80%;

        h2 {
            font-size: 2em;
        }
    }
    
    #notes-row-flex {
        display: flex;
        flex-direction: column;
        gap: 2em;
    }

    .highlight-box {
        padding: 1em;
        background: var(--colour-4);
        border-radius: 1em;
        box-shadow: 1px 1px 5px black;
        display: flex;
        flex-direction: column;
        gap: 1em;
        
        h1, h2 {
            width: 100%;
            text-align: center;
            padding: 0.5em;
        }
    }
    
    .highlight-boxes {
        display: grid;
        grid-template-columns: 1fr 0.1fr 1fr 0.1fr 1fr;
        width: 100%;
        align-items: center;
        
        span {
            font-size: 30pt;
        }
        
        >div {
            border: 2px solid var(--colour-1);
            border-radius: 0.5em;
            padding: 0.5em;
            display: flex;
            align-items: center;
            gap: 0.5em;
            height: 5em;
        }
    }
    
    .hb2 {
        grid-template-columns: 1fr 1fr;
        gap: 2em;
    }
}

@media (max-width: 1140px) {
    
    #content-layer {
        display: flex;
        gap: 0em;
        margin-top: 4em;
        height: fit-content;
    }
    
    aside {
        height: fit-content;
    }
    

    main {
        padding: 2em;

        hr {
            display: block;
            width: 100%;
            height: 2px;
            border-radius: 2px;
            border: none;
            background: var(--colour-1);
        }
    
       
        .highlight-boxes {
            width: fit-content;
            display: flex;
            flex-direction: column;
            width: 100%;
            gap: 1em;
            align-items: center;
            justify-items: center;
            
            >span {
                transform: rotate(90deg);
                margin-top: -0.5em;
                margin-bottom: -0.5em;
            }
        }
    }
}