@font-face {
    font-family: "Wilson Wells";
    src: url('./font/Wilsonwells.otf');
}

@font-face {
    font-family: "Medieval Sharp";
    src: url('./font/MedievalSharp.ttf');
}

@keyframes backgroundTransition {
    0% {
        background-position: 0% 80%;
    }
    50% {
        background-position: 80% 100%;
    }
    100% {
        background-position: 0% 80%;
    }
}

html,body{
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 100%;
    color: white;
}

h1, li, ul{
    padding: 0;
    margin: 0;
    list-style-type: none;
}

h1{
    font-family: Wilson Wells;
    font-size: 6.3em;
    font-weight: normal;
    width: 390px;
    height: 274px;
}

@media (min-width: 476px){
    h1{
        font-size: 8em;
        width: 476px;
    }
}

h1 span:nth-child(2){
    position: absolute;
    top: 20px;
    left: 20px;
    top: 108px;
    left: 63px;
}

.bg{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    z-index: 0;
}

.bg1{
    background: #282670;
    background: radial-gradient(circle, rgb(59, 56, 151) 0%, rgb(27, 25, 75) 100%);
    background-size: 200%;
    animation: backgroundTransition 5s ease-in-out infinite;
}

.bg2{
    z-index: 1;
    background-image: url(./img/bg.png);
}

#main{
    z-index: 2;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout{
    max-width: 476px;
    position: relative;
}

.paper{
    background: url(./img/paper.svg) no-repeat;
    width: 350px;
    height: 96px;
    overflow: hidden;
    margin: auto;
    margin-top: -20px;
    margin-bottom: 20px;
}

.paper .paper-content{
    font-family: Medieval Sharp;
    color: black;
    margin-top: 50px;
    font-size: 1.2em;
    margin-left: 90px;
}

.paper .paper-content::before{
    display: inline-block;
    width: 10px;
    height: 10px;
    content: '';
    background-color: #e44d26;
    transform: rotate(45deg);
}

.paper .paper-content::after{
    display: inline-block;
    width: 10px;
    height: 10px;
    content: '';
    background-color: #e44d26;
    transform: rotate(45deg);
}

.skills{
    margin-bottom: 20px;
}

.skills,.contact{
    display: flex;
}

.skills li,.contact li {
    flex-grow: 1;
    text-align: center;
}

.contact li{
    width: 50%;
}

.contact li:first-child{
    text-align: right;
    padding-right: 20px;
}

.contact li:nth-child(2){
    text-align: left;
    padding-left: 20px;
}

@media (min-width: 476px){
    .contact li:first-child{
        text-align: right;
        padding-right: 30px;
    }
    
    .contact li:nth-child(2){
        text-align: left;
        padding-left: 30px;
    }
}