/* Variables declared here - these are the colors for our pages, as well as the font stacks and sizes. */

:root {
    --black: #171321;
    --dkblue: #0d314b;
    --plum: #4b0d49;
    --hotmag: #ff17e4;
    --magenta: #e310cb;
    --aqua: #86fbfb;
    --white: #f7f8fa;
    --red: #ff0000;
    --lightred: #FFCCCB;
    --green: #006400;
    --blue: #0000FF;
    --lightblue: #ADD8E6;
    --gray: #808080;
    --font-size: 1.3rem;
    --mono: "Oxygen mono", monospace;
    --sans: Oxygen, sans-serif;
    --rubik: Rubik Maze;
  }

/* border box model: https://css-tricks.com/box-sizing/ */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}


/* generic styles for the page */

body {
    padding: 0;
    margin: 0;
    font-family: var(--sans);
    background-color: var(--black);
    color: var(--white);
    font-size: var(--font-size);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--rubik);
    font-weight: normal;
}

a {
    color: var(--hotmag);
}

a:hover {
    color: var(--dkblue);
    text-decoration: none;
}

img {
    width: 100%;
    max-width: 500px;
}


/* background color divs */

.section-plum {
    background-color: var(--plum);
}

.section-blue {
    background-color: var(--dkblue);
}

.gradient {
    background: linear-gradient(90deg, rgba(255, 23, 228, 1) 0%, rgba(134, 251, 251, 1) 100%);
    height: 2px;
}


/* intro styles */

#intro {
    padding: 4rem 1rem 10rem 1rem;
    padding-bottom: 10rem;
    max-width: 1200px;
    margin: 0 auto;
}

#intro p {
    font-size: 1rem;
    line-height: 1.5;
}

#intro .name {
    font-family: var(--mono);
    font-size: 1rem;
}

.name span {
    font-family: var(--sans);
    font-size: 4rem;
    color: var(--aqua);
    display: block;
    font-weight: 300;
}

#intro h2 {
    font-size: 4rem;
}


/* contact section */

#contact {
    width: 400px;
    text-align: center;
    margin: 0 auto;
    padding: 4rem 0;
}

#contact p:last-child {
    margin-top: 3rem;
}


/* navigation */

nav {
    font-family: var(--mono);
    font-size: 80%;
    padding: 4rem 1rem;
}

nav h1 a {
    font-family: var(--sans);
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

nav li:first-child {
    flex-basis: 100%;
    text-align: center;
}

nav [class*="fa-"] {
    font-size: 150%;
    color: var(--aqua);
}

nav h1 [class*="fa-"] {
    font-size: 100%;
    color: var(--aqua);
}

nav a {
    color: white;
    text-decoration: none;
    display: block;
}

nav a:hover,
nav [class*="fa-"]:hover {
    color: var(--magenta);
}

.button {
    background-color: var(--magenta);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--mono);
}

.button:hover {
    color: white;
    background-color: var(--dkblue);
}


/* projects section */

#projects {
    padding: 4rem 1rem;
    margin: 2rem;
}

#projects h2 {
    font-size: 2.5rem;
    margin-bottom: calc(2.5rem * 1.5);
}

#projects h3 {
    color: var(--aqua);
}

#projects h4 {
    font-size: 1rem;
    font-family: var(--mono);
    margin: 0;
}

.blackbox {
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    background-color: var(--black);
    font-size: 1rem;
    line-height: 1.5;
}

#projects ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 1rem;
}

#projects img {
    margin: 2rem 0 4rem 0;
    padding: 1rem;
    border-left: 1px solid var(--aqua);
    border-top: 1px solid var(--aqua);
    border-radius: 25px;
}


/* footer section */

footer {
    text-align: center;
    padding: 4rem 0;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 3rem;
    font-size: 3rem;
}

@media (min-width: 300px) {
    article {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
    }
    #projects {
        max-width: 1200px;
        margin: 0 auto;
    }
    #projects img {
        grid-column: 1/6;
        grid-row: 1/2;
        
    }
    .text {
        grid-column: 5/11;
        grid-row: 1/2;
        order: 2;
        text-align: right;
    }
    #projects ul {
        justify-content: flex-end;
    }
    #projects .reverse .text {
        grid-column: 1/7;
        order: 2;
        text-align: left;
    }
    #projects .reverse img {
        grid-column: 6/11;
        grid-row: 1/2;
    }
    #projects .reverse ul {
        justify-content: flex-start;
    }
}

@media (min-width: 300px) and (max-height: 1180px) {
    nav {
        max-width: 1200px;
        margin: 0 auto;
    }

    nav li:first-child {
        flex-basis: auto;
        text-align: left;
        margin-right: auto;
    }

    .link {
        background-color: var(--magenta);
        color: white;
        padding: 0.2rem;
        border-radius: 4px;
        text-decoration: none;
        font-family: var(--rubik);
    }

    .link:hover {
        color: white;
        background-color: var(--dkblue);
    }

    /* Variables declared here - these are the colors for our pages, as well as the font stacks and sizes. */
    /* Existing code goes here... */

    .disclaimer {
        display: flex;
        flex-wrap: wrap;
    }

    .disclaimer p {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .disclaimer ol {
        padding-left: 2.0rem;
        margin-top: 2rem;
        justify-self: unset;
    }

    .disclaimer ol li::marker {
        color: var(--hotmag);
    }

    .disclaimer h1 {
        justify-content: center;
        align-items: center;
    }

    .contact-form {
        display: flex;
        flex-wrap: wrap;
    }

    .contact-form-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .contact-form {
        background-color: var(--black);
        color: var(--white);
        padding: 2rem;
        border-radius: 10px;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-form h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .contact-form label {
        display: block;
        margin-bottom: 0.5rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.5rem;
        border-radius: 5px;
        border: none;
        background-color: var(--dkblue);
        color: var(--white);
    }

    .contact-form button {
        background-color: var(--magenta);
        color: var(--white);
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
    }

    .contact-form button:hover {
        background-color: var(--dkblue);
    }

    .contact-form label[for="consent"] {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .contact-form label[for="consent"] input[type="checkbox"] {
        margin: 0;
    }

    @media (max-width: 300px) and (max-height: 1180px) {
        .contact-form {
            display: flex;
            flex-wrap: wrap;
        }
    }

    .hidden {
        display: none;
    }
}


/* Switch styling */

/* Switch styling */

.consent-container {
    display: grid;
    align-items: center;
    position: relative;

}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 40px;
    margin-left: 10px;

}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;

}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.toggle-switch input:checked + label {
    background-color: #ee5bf3;
}

/* Handle styling */

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + label:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Existing media queries go here... */
