@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

:root {
    font-family: 'Source Code Pro', monospace;
    --background-color: rgb(37, 37, 37);
    /* --socials: rgb(233, 145, 255); */
    --socials: #22B573;
    --btnHover: #22B573;
    --secondaryBg: rgb(42, 42, 42);
    --borderColor: rgb(30, 30, 30);
    --smallHeader: rgb(79, 199, 255);
    background-color: var(--background-color);
    color: white;
}

h1 {
    font-size: 12.5vh;
}

h2 {
    font-size: 5.5vh;
}

h3 {
    font-size: 3vh;
}

h4 {
    font-size: 2vh;
    background-color: rgba(37, 37, 37, 0.85);
    border-radius: 1vh;
    padding: 1vh;
    border-color: rgba(255, 255, 255, 0.5);
    border-width: .25vh;
    border-style: solid;
    transition: ease-out .25s;
}

/* h4:hover::after {
    content: "Github Repo"
} */

p {
    font-size: 1.65vh;
}

span, h1, h2, h3, h4, summary, p { /** No select stuff **/
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
    supported by Chrome, Edge, Opera and Firefox */
}

summary {
    font-size: 3.5vh;
}

#introsummary {
    visibility: hidden;
}

#about h2 {
    text-align: right;
}

#about summary {
    text-align: left;
}

/* #about h2, #about summary {
    background-color: rgba(27, 136, 87, 0.5);
} */

/* #about h2 {
    border-radius: 2em 2em 0em 0em;
} */

/* #about summary {
    border-radius: 0em 0em 5em 5em;
} */

/* #projectsList section summary {
    font-size: 1.75vh;
} */

/** Contact **/
/* #formContainer {
    border-style: solid;
    border-width: 2px;
    border-color: rgb(143, 143, 143);
} */

#name-in, #email-in, #message-in {
    font-family: monospace;
    margin: .5vh;
    background-color: var(--background-color);
    color: white;
    border-color: var(--background-color);
    border-radius: .5vh;
    transition: ease-out 0.2s;
    border: none;
    resize: none;
}

#name-in:focus, #email-in:focus, #message-in:focus {
    outline: none;
    background-color: rgb(47, 47, 47);
    border: none;
}

#name-in:-webkit-autofill, #email-in:-webkit-autofill, #message-in:-webkit-autofill {
    -webkit-box-shadow:0 0 0 50px var(--background-color) inset;
    box-shadow: 0 0 0 50px var(--background-color) inset;
    -webkit-text-fill-color: white;
    border: none;
}

#name-in:-webkit-autofill:focus, #email-in:-webkit-autofill:focus, #message-in:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 50px var(--background-color) inset;
    box-shadow: 0 0 0 50px var(--background-color) inset;
    -webkit-text-fill-color: white;
    border: none;
}

#submit-btn {
    margin: 5px;
    background-color: var(--background-color);
    color: white;
    transition: ease-out 0.3s;
    border: none;
    border-radius: 1vh;
}

/** Fixed footer **/
a {
    color: white;
    text-decoration: none;
}

nav, #socials {
    background-color: rgba(37, 37, 37, 0.5);
    border-radius: 10px;
}

nav ul li, #socials a {
    font-size: 2vh;
    color: white;
}

/** Blink **/
.blinking {
    animation:blinkingText 1.3s infinite;
}

@keyframes blinkingText{
    0%   {    color: rgb(255, 255, 255);  }
    49%  {    color: rgb(255, 255, 255);  }
    60%  {    color: transparent;           }
    99%  {    color: transparent;           }
    100% {    color: rgb(255, 255, 255);  }
}

@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-moz-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-o-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-ms-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@media screen and (min-width: 1001px) {
    nav ul li:hover, #socials a:hover {
        color: var(--socials);
        cursor: pointer;
        font-weight: 600;
    }

    #submit-btn:hover {
        background-color:  var(--btnHover);
        border: none;
    }

    h4:hover {
        background-color: rgb(0, 190, 105);
        transform: scale(105%);
    }
}

@media screen and (max-width: 1000px) {
    
    h2 {
        color: var(--btnHover);
    }

    h3, h4 {
        color: var(--smallHeader);
        background-color: var(--secondaryBg);
        border-color: var(--secondaryBg);
    }

    img {
        border-radius: 1em;
    }

    #contact-form section input {
        background-color: var(--secondaryBg);
    }

    #contact-form section textarea {
        background-color: var(--secondaryBg);
    }

    #submit-btn {
        background-color: var(--btnHover);
        border: none;
    }
}