@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@300;400;500;600&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --Green500: hsl(171, 66%, 44%);
    --Green-button: hsl(170, 69%, 37%);
    --Blue100: hsl(233, 100%, 69%);
    --Blue-button: hsl(232, 65%, 58%);
    --Gray700: hsl(210, 10%, 33%);
    --Gray500: hsl(201, 11%, 66%);
    --Gray-footer: hsl(220, 18%, 97%);
}

body {
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    background-image: url(images/bg-header-desktop.png);
    background-repeat: no-repeat;
    background-size: contain;
}

/* images */
img {
    display: block;
    max-width: 100%;
}

.c-logo {
    margin-top: 4rem;
}

.computer {
    position: relative;
    left: -4rem;
}

.footer-logo {
    width: 5rem;
}

.socials-icon:hover {
    filter: brightness(0) saturate(100%) invert(59%) sepia(57%) saturate(519%) hue-rotate(121deg) brightness(93%) contrast(90%);
}

/* text */
h1 {
    font-size: 2.7rem;
    font-weight: 500;
    color: var(--Gray700);
}

.title-desc, .track-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

h2 {
    color: var(--Gray700);
    font-weight: 500;
    font-size: 2.3rem;
}

p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--Gray500);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.description {
    width: 43rem;
    text-align: center;
}

.keep-desc {
    text-align: center;
    width: 45rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--Gray700);
    font-weight: 500;
}

.item-desc {
    font-size: 1rem;
    width: 21.8rem;
}

.access-title {
    text-align: center;
    margin-bottom: 1rem;
}

.access-desc {
    text-align: center;
    width: 44rem;
}

.supercharge-title {
    margin-bottom: 1rem;
}

.supercharge-text {
    text-align: center;
}

.keep-desc, .access-desc, .supercharge-desc, .clipboard-desc {
    font-size: 1.1rem;
}

.create-title, .plain-title, .sneak-title, .clipboard-title, .clipboard-desc {
    text-align: center;
}

.create-desc, .plain-desc, .sneak-desc {
    font-size: 1rem;
    text-align: center;
}

.create-desc {
    width: 22rem;
}

.plain-desc {
    width: 22rem;
    padding-bottom: 1.5rem;
}

.sneak-desc {
    width: 22rem;
    padding-bottom: 1.5rem;
}

.clipboard-title {
    margin-bottom: 1.5rem;
}

.clipboard-desc {
    width: 41rem;
}

ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

li {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--Gray700);
    cursor: pointer;
    width: 7.5rem;
}

li:hover {
    color: var(--Green500);
}

/* buttons - icons */
button {
    padding: 0.95rem 3rem;
    border-radius: 2rem;
    border-style: none;
    color: white;
    font-family: 'Bai Jamjuree';
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

button:hover {
    opacity: 0.8;
}

.ios {
    background: var(--Green500);
    box-shadow: 0 3px var(--Green-button);
}

.mac {
    background: var(--Blue100);
    box-shadow: 0 3px var(--Blue-button);
}

/* layout */
.history {
    display: grid;
    grid-template-rows: 300px;
    align-items: center;
    justify-items: center;
}

.keep-track-section {
    padding: 9rem 2rem 4rem 0;
}

.screen-list {
    display: grid;
    grid-template-columns: 1fr 600px;
}

.list {
    padding: 4rem 0;
}

.devices-section {
    display: grid;
    grid-template-rows: 1fr;
    justify-content: center;
    justify-items: center;
    gap: 3.5rem;
    padding: 4rem;
}

.supercharge-section {
    display: grid;
}

.supercharge-icons {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    justify-content: center;
    padding-bottom: 4rem;
}

.create, .plain, .sneak {
    display: grid;
    justify-items: center;
    gap: 2.5rem;
}

.create-text, .plain-text, .sneak-text {
    display: grid;
    gap: 1rem;
}

.companies-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    padding: 2rem;
}

.clipboard-section {
    display: grid;
    justify-content: center;
    justify-items: center;
    padding-top: 7rem;
    padding-bottom: 9rem;
}

.footer-section {
    background-color: var(--Gray-footer);
    color: var(--Gray500);
    padding-top: 3rem;
    display: flex;
    gap: 3rem;
}

.col-icon{
    padding: 0 6rem;
}

.column-lists {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    padding-right: 10rem;
}

.col-socials {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding-left: 5rem;
}

.socials-attribution {
    display: flex;
    flex-direction: column;
    justify-items: center;
    gap: 2rem;
}

.attribution {
    color: var(--Gray700);
    font-size: 0.85rem;
    text-align: center;
    padding-right: 6rem;
}

.attribution:hover {
    color: var(--Green500);
}

a:hover {
    color: var(--Green500);
}

/* Media queries */
@media (max-width: 1330px) {
    .column-lists {
        padding: 0;
    }
}

@media (max-width: 1200px) {   
    .devices{
        width: 45rem;
    }
    .supercharge-section {
        transform: scale(0.85);
        justify-content: center;
    }
    .column-lists {
        gap: 2.5rem;
        padding-right: 0;
    }
}

@media (max-width: 1000px) {
    .title{
        font-size: 2rem;
        text-align: center;
        width: 21.2rem;
    }
    .description {
        font-size: 1rem;
        text-align: center;
        width: 19rem;
    }   
    button {
        padding: 0.95rem 5rem;
    }
    .btns {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .keep-title{
        width: 23rem;
        text-align: center;
    }
    .keep-desc {
        font-size: 1rem;
        width: 19.3rem;
        text-align: center;
    }
    .screen-list {
        grid-template-columns: 398px;
        justify-content: center;
        justify-items: center;
    }
    .computer {
        position: relative;
        left: 0;
    }
    .list-item, .item-desc{
        text-align: center;
    }
    .devices-section {
         padding: 0;
    }
    .access-title{
        width: 23rem;
        text-align: center;
    }
    .access-desc{
        font-size: 1rem;
        width: 19rem;
        margin-left: 2rem;
    }
    .devices{
        width: 25rem;
    }
    .supercharge-icons{
        grid-template-columns: 1fr;
        padding-top: 3rem;
        padding-bottom: 0;
    }
    .companies-icons{
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .clipboard-title{
        width: 21.5rem;
    }
    .clipboard-desc{
        font-size: 1rem;
        width: 18.8rem;
        margin-left: 2rem;
    }
    .footer-logo{
        width: 4rem;
    }
    .footer-section, .column-lists{
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }
    .col-socials{
        justify-content: center;
        padding: 0;
    }
    .attribution {
        padding: 0;
    }
}