:root {
    --bg-color: rgba(124, 0, 0, 0.85);
    --clickable-color: rgb(225, 4, 4);
    --color: rgb(234, 234, 234);
    --content-bg-color: rgb(20, 20, 20);
    --content-secondary-bg-color: rgb(64, 64, 46);
    --content-tertiary-bg-color: rgba(40, 40, 35, 1);
    --content-title-color: rgba(255, 255, 255, 0.85);
    --content-color: rgba(255, 255, 255, 0.6);
    --navbar-content-color: rgb(195, 195, 195);
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--color);
    margin: 0;
    padding: 0;
    font-family: -apple-system-ui-rounded, ui-rounded, -apple-system,
        BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}

.movable {
    transition-timing-function: ease-out;
    transition-duration: 0.1s;
    transition-property: transform;
}
.movable:hover {
    opacity: 1;
    transform: translate(0.25rem, -0.25rem);
}

.asereno-site:hover {
    transform: translate(0.25rem, 0rem);
}

.ironiq-site:hover {
    transform: translate(0rem, 0.25rem);
}

header nav ul {
    position: relative;
    display: block;
    border-bottom: 1px solid var(--color);
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
header nav ul li {
    width: 49%;
    display: inline-block;
    padding: 20px 0;
    margin: 0;
    font-size: 1em;
    text-transform: uppercase;
    text-align: left;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

header nav ul li + li {
    text-align: right;
}
header nav ul li a {
    text-decoration: none;
    text-align: right;
    color: var(--navbar-content-color);
}
header nav ul li a:hover {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hoverZoomLink {
    width: 100px;
    height: 100px;
    border-radius: 22%;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 0;
    left: 0;
}

.hoverZoomLink:before {
    position: absolute;
    box-sizing: border-box;
    content: " ";
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-radius: 50%;
    background-color: var(--bg-color);
    /* border: 1px solid var(--color); */
    box-shadow: 0 0 0 1px var(--color);
}

.hoverZoomLink:after {
    position: absolute;
    box-sizing: border-box;
    content: " ";
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-radius: 50%;
    background-color: var(--bg-color);
    /*border: 1px solid var(--color);*/
    box-shadow: 0 0 0 1px var(--color);
}

.logo {
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    margin: auto;
    width: 100%;
    justify-content: left;
}

/* Media query for viewports less than or equal to 600px wide */
@media (max-width: 600px) {
    .logo,
    .content {
        flex-direction: column; /* Stacks elements vertically on smaller screens */
        justify-content: center; /* Center content in narrow viewports */
        flex-wrap: wrap; /* Allows items to wrap if necessary */
    }

    .iPhone {
        align-self: center; /* Centers the iPhone image */
        /* Reset margins if previously set to ensure center alignment */
        margin: 0 auto;
    }

    .iPhone.left,
    .iPhone.right {
        order: 1 !important;
    }

    .watch {
        align-self: center; /* Centers the iPhone image */
        /* Reset margins if previously set to ensure center alignment */
        margin: 0 auto;
    }

    .content ol {
        order: 0;
        width: 100%; /* Ensure list takes full width and doesn't interfere with centering */
    }

    .main.store > div {
        flex-direction: column; /* Stacks elements vertically on smaller screens */
        justify-content: center; /* Center content in narrow viewports */
        flex-wrap: wrap; /* Allows items to wrap if necessary */
    }

    header > h1 {
        margin: 0 0 0 0;
    }
}

header > div,
header > nav,
.main > div {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    position: relative;
    max-width: 800px;
    margin: 0 0 0 0;
}

header > nav {
    margin: 0 auto 0 auto;
}
header > div {
    margin: 0 auto 0 auto;
}

.main > div {
    margin: 0 auto 20px auto;
}

header h1 {
    margin: 0 0 0 0.5em;
    padding: 0;
    line-height: 0.85;
    padding: 0;
    font-size: 5em;
    font-weight: 700;
    line-height: 1;
    font-family: ui-serif, -apple-system-ui-serif, Charter, serif;
}

header p {
    padding: 0;
    margin: 0 0 0 0;
    line-height: 1.2;
    opacity: 0.66;
}

header hr {
    padding: 0;
    margin: 1em 0;
    height: 1px;
    background: var(--color);
    border: none;
}

header span.nav {
    opacity: 0.8;
    font-size: 1em;
}
header a.nav {
    font-size: 1em;
    position: relative;
    display: inline-block;
    padding: 0 0 1.4em 1em;
    color: var(--color);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

header a.nav:hover:before {
    opacity: 1;
}

.main {
    padding: 0.1em 0em;
    background-color: var(--content-bg-color);
    color: var(--content-color);
}

.main.about > div {
    /*	background-color: var(--content-tertiary-bg-color);
	border: 1px solid rgba(255,255,255,0.05);
	box-shadow: 0 0 20px rgba(0,0,0,0.2);
	padding: 10px 20px;
	border-radius: 10px;*/
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main hr {
    padding: 0;
    margin: 6vh 0 0 0;
    height: 3px;
    background: var(--bg-color);
    border: none;
}

.main.store {
    background-color: var(--content-bg-color);
    height: auto;
    margin-top: 2em;
    margin-bottom: 0;
    border: 1px solid transparent;
    padding: 1em 0;
}

.main.store div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1em;
    margin-bottom: 0;
}

.main.store a.download {
    display: inline-block;
    padding-left: 0.9em;
    color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    height: 40px;
    opacity: 0.95;
    border-radius: 7px;
    box-shadow: 0 0 2px black;
    z-index: 1;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.3s;
}

.ios {
    display: inline-block;
    padding-left: 0.9em;
    color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../assets/ios.svg);
    width: 120px;
    height: 40px;
    opacity: 0.95;
    border-radius: 7px;
    box-shadow: 0 0 2px black;
    z-index: 1;
}

.applehealth {
    display: inline-block;
    vertical-align: bottom;
    margin-left: 0.4em;
    color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../assets/applehealth.svg);
    width: 122.7px;
    height: 34px;
    opacity: 0.95;
    border-radius: 7px;
    box-shadow: 0 0 2px black;
    z-index: 1;
}

.main h2 {
    line-height: 1.3;
    font-size: 1.3em;
    color: var(--content-title-color);
    padding-top: 3em;
}
.description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.description > h2 {
    padding-bottom: 1em;
}

.content {
    padding-top: 4em;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    width: 100%;
}

.iPhone {
    display: inline-block;
    width: 100%;
    max-width: 263px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 2px 0 black;
    overflow: hidden;
}

.iPhone video,
.iPhone img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.iPhone.left {
    order: 0;
}

.iPhone.right {
    order: 1;
}
.watch {
    margin-top: 65px;
    max-width: 300px;
    max-height: 300px;
    border-radius: 5px;
    box-shadow: 0 0 2px 0 black;
}

.watch.left {
    order: 0;
}

.main ul,
.main ol {
    list-style-position: inside;
    counter-reset: li;
    margin: 0;
    padding: 0;
}

.main ol {
    list-style-type: none;
}

.main ol li:before {
    counter-increment: li;
    font-weight: 300;
    content: counter(li);
    padding-right: 0.3em;
    /* content: "◎"; */
    color: var(--clickable-color);
    display: inline-block;
}
.main ol li.none:before {
    content: "";
    padding-right: 0;
}

.main ul li,
.main ol li,
.main p {
    line-height: 1.8;
    font-size: 1.1em;
    margin: 0 0 1em 0;
    color: var(--content-color);
}

.main.resume p {
    padding-top: 1em;
    font-weight: 600;
}

.main ul li a,
.main ol li a {
    text-decoration: none;
    color: var(--clickable-color);
    font-weight: 600;
}

img.rounded {
    object-fit: cover;
    border-radius: 50%;
    height: 150px;
    width: 150px;
    background-color: white;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(234, 234, 234);
}

.theme {
    display: flex;
    align-items: center;
}

/* The switch - the box around the slider */
.switch {
    margin-left: 13px;
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f80000;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #ff2194;
}

input:focus + .slider {
    box-shadow: 0 0 1px #ff2194;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.more-info {
    #meet {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        font-family: -apple-system-ui-rounded, ui-rounded, -apple-system,
            BlinkMacSystemFont, sans-serif;
        cursor: pointer;
        text-decoration: none;
        color: var(--clickable-color);
        font-weight: 600;
        line-height: 1.8;
        font-size: 1.1em;
    }

    #cv {
        margin: 0;
        padding: 0;
    }
}

.copyright {
    text-align: center;
    font-size: 0.8em;
    font-weight: 200;
    padding-bottom: 6vh;
}

.copyright a {
    text-decoration: none;
    color: var(--clickable-color);
}

.gumroad {
    padding-bottom: 6vh;

    #gumroad-follow-form-embed {
        margin: 0px;
        padding: 0px;
        box-sizing: border-box;
        min-width: 0px;
        max-width: 100%;
        vertical-align: bottom;
        background-clip: padding-box;
        scrollbar-color: rgb(0 0 0/0.5) rgb(0 0 0/0.1);
        display: grid;
        grid-auto-flow: column;
        gap: 0.75rem;
        grid-template-columns: 1fr;
        grid-auto-columns: max-content;
        align-items: center;
    }

    #gumroad-follow-form-embed-button {
        margin: 0px;
        padding: 0px;
        box-sizing: border-box;
        min-width: 0px;
        max-width: 100%;
        vertical-align: bottom;
        background-clip: padding-box;
        scrollbar-color: rgb(0 0 0/0.5) rgb(0 0 0/0.1);
        background: transparent;
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 0.75rem 1rem;
        border: solid 0.0625rem rgb(0 0 0/1);
        color: currentcolor;
        border-radius: 0.25rem;
        font-family: -apple-system-ui-rounded, ui-rounded, -apple-system,
            BlinkMacSystemFont, sans-serif;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        cursor: pointer;
        text-decoration: none;
        background-color: var(--clickable-color);
        color: rgb(255 255 255);
    }

    #gumroad-follow-form-embed-button:hover {
        transform: translate(0.25rem, -0.25rem);
        box-shadow: 0.25rem 0.25rem 0rem rgb(0 0 0);
        background-color: var(--bg-color);
        color: rgb(255 255 255);
    }

    #gumroad-follow-form-embed-input {
        margin: 0px;
        padding: 0px;
        box-sizing: border-box;
        min-width: 0px;
        max-width: 100%;
        background-clip: padding-box;
        scrollbar-color: rgb(0 0 0/0.5) rgb(0 0 0/0.1);
        font-family: -apple-system-ui-rounded, ui-rounded, -apple-system,
            BlinkMacSystemFont, sans-serif;
        padding: 0.75rem 1rem;
        font-size: 1.1em;
        line-height: 1.5;
        border: solid 0.0625rem rgb(0 0 0/1);
        border-radius: 0.25rem;
        display: block;
        width: 100%;
        background-color: rgb(255 255 255);
        color: rgb(0 0 0);
    }

    #gumroad-follow-form-embed-input:disabled {
        cursor: not-allowed;
        opacity: 0.3;
    }
    #gumroad-follow-form-embed-input::placeholder {
        color: rgba(57, 16, 16, 0.5);
    }

    #gumroad-follow-form-embed-input:focus-within {
        outline: 0.125rem solid --bg-color;
    }
    #gumroad-follow-form-embed-input:read-only {
        background-color: #f4f4f0;
    }
}

.newsletter {
    text-align: center;
}

/* Letterbird iframe customization */
.newsletter iframe {
    border: none !important;
    background-color: transparent !important;
    filter: invert(1) hue-rotate(180deg);
    border-radius: 0.25rem;
}

/* Alternative approach - style the container */
.newsletter {
    padding: 2em 0;
}

.newsletter h2 {
    color: var(--content-title-color);
    margin-bottom: 1em;
}
