*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html,
body {
    height: 100%;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    text-align: center;
}

button {
    background-color: unset;
    border: unset;
}

a {
    text-decoration: unset;
    color: unset;
}

#root,
#__next {
    isolation: isolate;
}

body {
    font-family: sans-serif;
    background: #0f1117;
    color: #eee;
    padding: 2rem;
}

main {
    margin: auto;
    max-width: 700px;
}

input,
button,
select {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

input,
select {
    background: #1e1f26;
    color: #fff;
    transition: background 0.1s ease-in-out;
}

input:hover,
select:hover {
    background: #2a2b33;
}

input:focus,
select:focus {
    background: #2a2b33;
    outline: 2px solid #4f46e5;
}

button {
    background: #4f46e5;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #3730a3;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.name {
    display: flex;
    gap: 1rem;
}

.name select {
    width: 50px;
    appearance: none;
    cursor: pointer;
}

fieldset {
    border: 2px solid #222;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
}

fieldset legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: #eee;
}

.tech {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tech input {
    width: 60px;
    height: 60px;
    opacity: 0;
}

.icon {
    position: absolute;
    pointer-events: none;
    height: 40px;
    width: 40px;
    background-size: cover;
    background-position: center;
    opacity: .2;
    transition: opacity 0.2s ease-in-out, scale 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.tech input:hover {
    cursor: pointer;
}

.tech input:hover+.icon {
    opacity: 0.6;
    transform: translateY(-3px);
}

.tech input:checked+.icon {
    opacity: 1;
    scale: 1.1;
}

.html {
    background-image: url('./assets/icons/html5-color.png');
}

.css {
    background-image: url('./assets/icons/css3-color.png');
}

.js {
    background-image: url('./assets/icons/javascript-color.png');
}

.react {
    background-image: url('./assets/icons/react-color.png');
}

.node {
    background-image: url('./assets/icons/nodedotjs-color.png');
}

.next {
    background-image: url('./assets/icons/nextjs-color.png');
}

.express {
    background-image: url('./assets/icons/express-color.png');
}

.mongo {
    background-image: url('./assets/icons/mongodb-color.png');
}

.git {
    background-image: url('./assets/icons/git-color.png');
}

.figma {
    background-image: url('./assets/icons/figma-color.png');
    background-size: 60px;
}

.php {
    background-image: url('./assets/icons/php-color.png');
}