* {
    color: #fafafa;
    /* background: hsl(0, 0%, 22%); */
    font-family: sans-serif;
}

body {
    background: #242424;
}

.container {
    width: 80%;
    margin: 0 auto;
    font-family: sans-serif;
    background: #242424;
}

header {
    background-color: #161616;
    height: 4rem;
}

nav {
    padding: 2rem 1.2rem;
    border-radius: 15px 15px 15px 15px;
    display: flex;
    color: #fafafa;
    flex-direction: row;
    justify-content: space-between;
    background: inherit;
}

nav h2 {
    font-size: 2rem;
}

nav a {
    color: #fafafa;
    font-size: 1.2rem;
    text-underline-offset: 0.3rem;
    transition: 0.03s ease-in-out;
}

nav a:hover {
    color: #ff9797;
    text-underline-offset: 0.5rem;
    transition: 0.03s ease-in-out;
}

.active {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    transition: 0.03s ease-in-out;
    color: #ff5555;
}

.active:hover {
    text-decoration: underline;
    text-underline-offset: 0.6rem;
    transition: 0.03s ease-in-out;
    color: #ff5555;
}


.red-text {
    color: #ff5555;

}

nav>div>ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 2rem;

}

nav>div {
    display: flex;
    justify-content:end;
}



main {
    text-align: center;

}

.Welcome {
    margin-top: 15rem;
}

.Welcome h1 {
    font-size: 3rem;
}

.Welcome p {
    margin-top: 2rem;
    font-size: 1.2rem;
}

.About-thinkpads {
    margin-top: 15rem;
    background-color: #0f0f0f;
    padding: 2rem 1.2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.About-thinkpads h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.About-thinkpads p {
    font-size: 1.1rem;
    line-height: 1.8rem;
}


img {
    max-width: 600px;
    max-height: auto;
}

.I-own {
    margin-top: 10rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.I-own h2 {
    font-size: 2rem;
}

.Thinkpad-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.Thinkpad-grid>div {
    margin: 0 auto;
    width: 85%;
    padding: 1rem;
    border-radius: 10px;
}

.Thinkpad-grid>div:first-child {
    background: #575757;
}

.Thinkpad-grid>div:last-child {
    background: #644f4f;
}

.Thinkpad-grid h3 {
    margin-top: 1rem;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 0.6rem;
}


@media screen and (max-width: 1572px) {  
    .Thinkpad-grid {
        grid-template-columns: 1fr;
    }
    .Thinkpad-grid>div:last-child {
        margin-top: 2rem;
    }
    img {
        width: 90%;
        height: auto;
    }
}



@media screen and (max-width: 740px) { 
    .container {
        width: 100%;
    }
    img {
        width: 60%;
        height: auto;
    }
    nav {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .items-nav {
        margin-top: 1rem;
        width:100%;
        display: flex;
        justify-content: center;
    }
    .Welcome p {
        padding: 0 2rem;
    }
}
