
:root {
    --projectHover-lightMode-color:  red;
    --projectHover-darkMode-color:  red;
    --page-darkMode-bg-color:  #161313;
    --page-darkMode-sec-color: red;
    --page-lightMode-bg-color:  white;
    --page-lightMode-sec-color:  red;
  }
  

@font-face {
    font-family: 'dank_mono';
    src: url('../fonts/dankmono-bold-webfont.woff') format('woff');
    font-weight: bold;

}

@font-face {
    font-family: 'dank_mono';
    src: url('../fonts/dankmono-regular-webfont.woff') format('woff');
    font-weight: normal;

}
/*general styles*/
* {
    font-family: "dank_mono";
}


body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

input {
    outline: none;
}

.pointer {
    cursor: pointer;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s;
    border-color: inherit;
    color:inherit;
}
input[data-autocompleted] {
    background-color: transparent;
    border-color: inherit;
    color: inherit;
}

a:hover {
    color: inherit;
    border-color: inherit;
}

.darkMode{
    background-color:var(--page-darkMode-bg-color);
    color:var(--page-darkMode-sec-color);
    border-color: var(--page-darkMode-sec-color);
}

svg.socialLinkImage.darkMode, path.socialLinkImage.darkMode {
    fill: var(--page-darkMode-sec-color);
}

.lightMode{
    background-color: var(--page-lightMode-bg-color);
    border-color: var(--page-lightMode-sec-color);
    color:var(--page-lightMode-sec-color);
}

svg.lightMode.socialLinkImage, path.socialLinkImage.lightMode{
    fill: var(--page-lightMode-sec-color);
}

#languageSelectorEnglish, #languageSelectorSpanish {
    border: none;
}

.selectedLanguage.lightMode {
    text-decoration-color: var(--page-lightMode-sec-color)
}
.selectedLanguage.darkMode {
    text-decoration-color: var(--page-darkMode-sec-color)
}

path.lightMode {
    fill:var(--page-lightMode-sec-color);
}

path.darkMode {
    fill:var(--page-darkMode-sec-color);
}

.titleWrapper {
    font-size: 50px;
    font-weight: bold;
    position: absolute;
    top: -40px;
    left: 46px;
    overflow: visible;
}

.titleBox {
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
    margin-bottom: -18px;
    overflow: visible;
    z-index: 2;
    overflow: visible;
}

.divider {
    height: 200px;
}

/* OPTIONS */

.options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    gap: 20px;
}

.languageSelector {
    font-size: 20px;
}

.selectedLanguage {
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
}

input[id="darkModeSwitch"], input[id="languageSwitch"] {
    height: 0;
    width: 0;
    visibility: hidden;
  }
  
label[id="darkModeLabel"], label[id="languageLabel"] {
    cursor: pointer;
    width: 70px;
    height: 35px;
    display: block;
    border-radius: 30px;
    position: relative;
}

label[id="darkModeLabel"] {
    background: red;
}
 
input[id="darkModeSwitch"] + label:after, input[id="languageSwitch"] + label:after {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

input[id="darkModeSwitch"] + label:after {
    background-image: url("../images/icons/lightMode.svg");
    background-color: red;
}
  
label[id="darkModeLabel"]:after, label[id="languageLabel"]:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 25px;
    height: 25px;
    border-radius: 30px;
    transition: 0.3s;
}
  
input[id="darkModeSwitch"]:checked + label[id="darkModeLabel"] {
    background: red;
}

input[id="languageSwitch"]:checked + label[id="languageLabel"] {
    background: red;
}
  
input[id="darkModeSwitch"]:checked + label[id="darkModeLabel"]:after, input[id="languageSwitch"]:checked + label[id="languageLabel"]:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
    background: red;
    background-image: url("../images/icons/darkMode.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

input[id="languageSwitch"]:checked + label[id="languageLabel"]:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
    background: red;
    background-image: url("../images/icons/spanish.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

label[id="darkModeLabel"]:active:after, label[id="languageLabel"]:active:after {
    width: 45px;
}

/*HEADER*/
a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}

.wrapperHeader {
    display: flex;
    z-index: 10;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
    position: fixed;
    width: 100%;
}

.cellHeader {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px;
    border-style: solid;
    border-top: none;
    cursor: pointer;
    margin-left: 20px;
    font-size: 16px;
    width: 90px;
    align-items: center;
    height: fit-content;
    transition-duration: 0.5s;
}

.cellHeader:hover {
    padding-top: 40px;
    border-color: inherit;
    color: inherit;
}
#wrapperHeaderMobileButton {
    display: flex;
    justify-content: space-between;
    background: none;
}
#dropdownContent {
    display: flex;
    flex-direction: row;
    align-content: center;
    background: none;
}

#dropdownButton {
    display: none;
}

/*aboutMe section styles*/
#aboutMe {
    position: relative;
    margin-left: 60px;
    width: 45vw;
    border: 1px solid;
    margin-top: 200px;
}

#aboutMeBox {
    display: flex;
    font-size: 20px;
    align-items: start;
    margin: 0 auto;
    gap: 40px;
    padding: 60px;
    padding-bottom: 80px;
    padding-top: 80px;
}

#aboutMeData {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#aboutMeBox p {
    margin-bottom: 2px;
}

#dniPhoto {
    padding: 10px;
    border: 1px;
    border-style: solid;
}

#dniPhoto img {
    width: 200px;
}

#socials {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 20px;
}

.socialLink {
    width: 40px;
    height: 40px;
}

/*Contact section styles*/
.wrapperContact {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: 60px;
    width: auto;
    border: 1px;
    border-style: solid;
    border-right: 0px;
    margin-top: 100px;
}

.wrapperProjects{
    position: relative;
    margin-top: 100px;
    margin-left: 60px;
    width: auto;
    height: auto;
    border: 1px;
    border-style: solid;
    border-right: 0px;
}

.contactBox {
    display: grid;
    padding: 60px;
    grid-template-columns: repeat(12, [col-start] 1fr);
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 20px;
    width: 100%;
    align-items: baseline;
    padding-top: 70px;
}
.submitBox {
    grid-column: 1 / 2;
}

.wrapperBox {
    display: flex;
    flex-direction: column;
    height: fit-content;
}

#nameBox {
    display: flex;
    grid-column: 1 / 3;
}

#mailBox {
    grid-column: 1 / 4;
}

#messageBox {
    display: flex;
    grid-column: 5 / 9;
    grid-row: 1 / 4;
    justify-content: flex-start;
}

#pronounBox {
    display: flex;
    grid-column: 1 / 4;
}

.box {
    border: 1px;
    border-style: solid;
    z-index: 1;
}

#uname {
    height: 50px;
}

#umail {
    height: 50px;
}

#umessage {
    height: 226px;
    resize: none;
    outline: none;
    padding: 20px;
}

.submit {
    border: 1px;
    border-style: solid;
    font-size: 24px;
    font-weight: bold;
    padding: 10px;
    width: 100%;
}

.pronouns {
    border: 1px;
    border-style: solid;
    font-size: 17px;
    font-weight: bold;
    overflow: visible;
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}

.isHidden {
    visibility: hidden; /* hide radio buttons */
}

.label {
    overflow: hidden;
    align-items: center;
    margin-top: 10px;
}

.label:hover{
    cursor: pointer;
}

.radio:checked + .label {
    /* target next sibling (+) label */
    font-size: 20px;
}

input[type=text].box, input[type=email].box {
    padding-left: 20px;
}


/* projects styles */

#projectsWrapper {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 80px;
}

.project {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    width: 100%;
    height: 100%;
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    margin-right: 10px;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
    transition-duration: .15s;
}

.projectTitle {
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;

}

.projectDescription {
    margin: 0;
    text-align: center;
}

.projectImage {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: left top;
    border-radius: 5px;
}

.projectLink {
    padding: 10px;
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
}

.projectLinks {
    display: flex;
    gap: 20px;
}

.dataContainer {
    padding: 30px;
}

.project.lightMode:hover {
    color: white;
    border-color: var(--projectHover-lightMode-color);
    background-color: var(--projectHover-lightMode-color);
    transform: scale(1.1);
}

.project.darkMode:hover {
    color: var(--page-darkMode-bg-color);
    border-color: var(--projectHover-darkMode-color);
    background-color: var(--projectHover-darkMode-color);
    transform: scale(1.1);
}

/* Marquee styles */
.marquee {
    --gap: 1rem;
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0px;
    height: 24px;
}

.marquee__content {
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    list-style: none;
    animation: scroll 10s linear infinite;
}

.marquee__content > * {
    background: none;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}

/* Pause on hover */
.marquee:hover .marquee__content {
    animation-play-state: paused;
    font-weight: bold;
}

.marquee.lightMode ,
.marquee__content.lightMode {
    background-color: var(--page-lightMode-sec-color);
}

.marquee__content.lightMode > * {
    color: var(--page-lightMode-bg-color);
}

.marquee.darkMode ,
.marquee__content.darkMode {
    background-color: var(--page-darkMode-sec-color);
}

.marquee__content.darkMode > * {
    color: var(--page-darkMode-bg-color);
}

/* Responsive */
@media (max-width: 700px){

    #dropdownButton {
        display: block;
        border: none;
        padding: 0px;
    }
      
    .languageSelector {
        font-size: 16px;
    }
      
    #dropdownContent {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 5px;
        transition-duration: 0.5s;
    }
      
    #aboutMe {
      width: 100%;
    }

    #aboutMeBox, #projectsWrapper, .contactBox {
        padding: 30px;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    #aboutMeData {
        gap: 10px;
    }

    #aboutMeText p{
        font-size: 17px;
    }

    #aboutMe, #projects, #contact {
        margin-left: 10px;
        margin-top: 60px;
    }

    #dniPhoto img {
        width: 100px;
    }

    #dniPhoto {
        display: none;
    }

    .socialLinkImage, .socialLink {
        width: 30px;
        height: 30px;
    }

    .titleWrapper {
        font-size:35px;
        top: -27px;
        left: 20px;
    }

    #socials {
        margin-top: 10px;
        gap: 10px;
    }

    /* projects */
    #projectsWrapper {
        grid-template-columns: repeat(1,minmax(0,1fr))!important;
    }

    .project {
        margin: 0;
    }

    .projectLinks {
        gap: 10px;
        justify-content: center;
    }

    /*contact*/
    #uname, .pronouns, #pronounsTitle, #nameTitle {
        display: none;
    }

    #mailBox {
        grid-row: 1;
        grid-column: 2;
    }

    #messageBox {
        grid-column: 2;
        grid-row: 2/3;
        height: 100%;
    }

    .contactBox {
        grid-template-columns: repeat(3, [col-start] 1fr);
        grid-template-rows: repeat(1, [row-start] 1fr);
        justify-content: center;
    }

    .submitBox {
        grid-row: 5;
        grid-column: 2;
    }

    #marquee {
        display: none;
    }

    .wrapperHeader {
        position: relative;
        right: 0px !important;
        flex-direction: column;
        padding: 10px;
        padding-top:20px;
        align-items: normal;
    }

    .cellHeader {
        border: none;
        margin: 0px;
        width: 100%;
        align-items: flex-start;
        font-size: 16px !important;
        padding-top: 12px !important;
    }

    .cellHeader:hover{
        padding-top: 20px;
    }
    .shown {
        display: flex !important;
    }
}

@media (min-width: 700px) and (max-width: 1000px){

    #dropdownButton {
        display: block;
        border: none;
        padding: 0px;
    }
      
    .languageSelector {
        font-size: 16px;
    }

    #dropdownContent {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 5px;
    }
     
    #aboutMe {
      width: 100%;
    }

    #aboutMeBox, #projectsWrapper, .contactBox {
        padding: 30px;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    #aboutMeBox {
        gap: 20px;
    }

    #aboutMeText p{
        font-size: 17px;
    }

    #aboutMe, #projects, #contact {
        margin-left: 10px;
        margin-top: 60px;
    }

    #dniPhoto img {
        width: 100px;
    }

    .socialLinkImage, .socialLink {
        width: 30px;
        height: 30px;
    }

    .titleWrapper {
        font-size:35px;
        top: -27px;
        left: 20px;
    }

    #socials {
        margin-top: 10px;
        gap: 10px;
    }

    /* projects */
    #projectsWrapper {
        grid-template-columns: repeat(2,minmax(0,1fr))!important;
    }

    .project {
        margin: 0;
    }

    /*contact*/
    #uname, .pronouns, #pronounsTitle, #nameTitle {
        display: none;
    }

    #mailBox {
        grid-row: 1;
        grid-column: 2;
    }

    #messageBox {
        grid-column: 2;
        grid-row: 2/3;
        height: 100%;
    }

    .contactBox {
        grid-template-columns: repeat(3, [col-start] 1fr);
        grid-template-rows: repeat(1, [row-start] 1fr);
        justify-content: center;
    }

    .submitBox {
        grid-row: 5;
        grid-column: 2;
    }

    #marquee {
        display: none;
    }

    .wrapperHeader {
        position: relative;
        right: 0px !important;
        flex-direction: column;
        padding: 10px;
        padding-top: 20px;
        align-items: normal;
    }

    .cellHeader {
        border: none;
        margin: 0px;
        width: 100%;
        align-items: flex-start;
        font-size: 16px !important;
        padding-top: 12px !important;
    }

    .cellHeader:hover{
        padding-top: 20px;
    }

    .shown {
        display: flex !important;
    }
}

@media (min-width: 1000px) and (max-width: 1400px){

    #dropdownButton {
        border: none;
        padding: 0px;
    }
        
    #aboutMeBox, #projectsWrapper, .contactBox {
        padding: 50px;
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    #aboutMeBox {
        gap: 30px;
    }

    #aboutMeText p{
        font-size: 18px;
    }

    #aboutMe, #projects, #contact {
        margin-left: 10px;
        margin-top: 60px;
    }

    #aboutMe {
        margin-top: 100px;
    }

    #dniPhoto img {
        width: 150px;
    }

    .socialLinkImage, .socialLink {
        width: 30px;
        height: 30px;
    }

    .titleWrapper {
        font-size:40px;
        top: -32px;
        left: 20px;
    }

    .wrapperHeader {
        right: -5px;
    }

    /* projects */
    #projectsWrapper {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    /*contact*/

    #nameBox {
        grid-row: 1;
        grid-column: 1;
    }

    #pronounBox {
        grid-row: 2;
        grid-column: 1;
    }

    #mailBox {
        grid-row: 1;
        grid-column: 2;
    }

    #messageBox {
        grid-column: 2;
        grid-row: 2;
        height: 100%;
    }

    #umessage {
        height: 100%;
    }

    .contactBox {
        grid-template-columns: repeat(3, [col-start] 1fr);
        grid-template-rows: repeat(1, [row-start] 1fr);
    }

    .submitBox {
        grid-row: 3;
        grid-column: 2;
    }

    .wrapperHeader {
        right: 20px;
    }

    #headerMobile {
        display: none;
    }
}
