:root {
    --primary: #BF6068;
    --secondary: #011826;
    --cyan-gray: #849A9F;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    appearance: none;
    margin: 0;
    padding: 0;
	font-family: Futura, Trebuchet MS, Arial, sans-serif;
    background: url('./assets/bg.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center; 
    background-size: cover;
    background-color: var(--secondary);
    color: white;
    overflow: hidden;
    filter: blur(0px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1;
    margin-top: -5.25rem;
}

h1, h2, h3 {
    margin: 0 0 .5rem 0;
}

h4 {
    margin: 0;
}

section {
    scroll-margin-top: 6.25rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 6rem;
    margin: 0 auto;
}

hr {
    width: 50%;
    margin: 1rem 0;
    border-color: rgba(150, 150, 150, .4);
    border-width: 1px;
}

li {
    padding: .25rem 0;
}

li::marker {
    color: var(--primary);
}

.nav-container {
    display: flex;
    position: relative;
    place-content: center;
    height: 5.25rem;
    width: 100%;
    background-color: var(--secondary);
}

.nav-list {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    margin: 0;
    list-style-type: none;
}

.nav-list li {
    float: left;
    padding: 0 1rem;
}

.mobile-menu-container {
    display: none;
}

.mobile-icon {
    font-size: 2rem;
    color: var(--primary);
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 1;
}

.mobile-menu {
    height: 2.75rem;
    width: 1.75rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.nav-container .mobile-menu-list-container {
  display: flex;
  height: 100vh;
  width: 0;
  padding-top: 5.25rem;
  background-color: var(--secondary);
  opacity: .9;
  transition: width 500ms ease-in-out;
  text-align: center;
}

.nav-container .mobile-menu-list-container li {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.mobile-menu-list {
    width: 100%;
    padding: 0;
    margin: auto 0;
    overflow: hidden;
    list-style-type: none;
}

.nav-container input[type='checkbox']:checked ~ .mobile-menu-list-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 5.25rem);
    margin-top: 5.25rem;
    padding: 0 2rem;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.main-section {
    margin: 0;
    padding: 0;
}

.fade-up {
    opacity: 0;
    animation: fadeUp ease-in 1;
    animation-fill-mode: forwards;
    animation-duration: 1s;
}

.main-section-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
}

.primary-text {
    color: var(--primary);
}

.secondary-text {
    color: var(--cyan-gray);
}

.w-40c {
    width: 40ch;
}

.text-4xl {
    font-size: 4rem;
}

.text-3xl {
    font-size: 3rem;
}

.text-lg {
    font-size: 1.5rem;
}

.text-sm {
    font-size: .75rem;
}

.text-center {
    text-align: center;
}


.link {
	color: var(--primary);
    opacity: 1;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 400ms;
}

.link:hover {
    border-bottom-color: var(--primary);
}

.section-header {
    font-size: 1.5rem; 
    margin: 0;
}

.content {
    font-size: 1.25rem; 
    width: 65ch;
}

ul.list {
    display: grid;
    column-gap: 1rem;
    font-size: 1rem;
    grid-template-columns: repeat(2, minmax(0, 10rem));
}

.list.grid-col-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media screen and (-webkit-min-device-pixel-ratio:0) { 
    header {
        top: unset;
    } 
}

@media screen and (max-width: 340px) { 
    .text-4xl {     
        font-size: 2rem;
    }

    .text-3xl {
        font-size: 1.25rem;
    }

    .w-40c {
        width: 20ch;
    }

    .content {
        width: 30ch;
        font-size: 1rem;
    }
}

@media screen and (max-width: 540px) { 
    nav {
        display: block;
    }

    .nav-list {
        display: none;
    }

    .mobile-menu-container {
        display: block;
        width: 100%;
    }
}

@media screen and (min-width: 341px) and (max-width: 767px) {
    .text-4xl {     
        font-size: 2.5rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .w-40c {
        width: 20ch;
    }

    .main-section {
        margin: 0 auto;
    }

    .content {
        width: 35ch;
        font-size: 1rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px)  { 
    .w-40c {
        width: 25ch;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1279px)  { 
    .w-40c {
        width: 25ch;
    }
}

@keyframes fadeUp{ 
    from{
        opacity: 0;
        transform: translate3d(0, 30%, 0);
    }
    to{
        opacity: 1;
        transform: none;
    }
}