/* @charset "UTF-8";
/*
purpose: CSS for homework 2:
data: 2024/3/5
author: liao
@copyright: HaneNoAida
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');

body{
  font-family: 'Noto Sans TC', sans-serif;
  margin: 0;
  padding: 0;
  margin-top: 30px;
  background: linear-gradient(to bottom, #311b92, #673ab7);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

main{
  background: linear-gradient(to bottom, #311b92, #673ab7);
}


@media screen and (min-width: 480px) {

  main{
    width: 70%;
    margin: 0 15%;
  }

  nav{
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #311772;
    margin-top: 30px;
  }

  nav a{
    float: left;
    display: block;
    color: #f0f0f0;
    text-align: center;
    padding: 14px 40px;
    margin: 0 20px;
    background-color: #311260;
    text-decoration: none;
  }

  nav a:hover{
    background-color: #ddd;
    color: #333;
  }

  .me{
    float: right;
    position: absolute;
    top: 20%;
    right: 5%;
    width: 300px;
  }

  .content{
    padding: 50px;
    position: relative;
    font-size: 30px;
    line-height: 50px;
  }

  .title{
    color: #ac9dff;
    font-size: 36px;
    text-decoration: underline;
  }

  h2{
    color: #f0f0f0;
  }
}


@media screen and (max-width: 480px) {

  main{
    width: 80%;
    margin: 0 10%;
  }

  nav{
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #311772;
    margin: 30px 0;
  }

  nav a{
    float: center;
    display: block;
    color: #f0f0f0;
    text-align: center;
    padding: 15px 50px;
    margin: 15px;
    background-color: #311260;
    text-decoration: none;
  }

  nav a:hover{
    background-color: #ddd;
    color: #333;
  }

  .me{
    margin-top: 16px;
    width: 250px;
  }

  .content{
    padding: 10px 20px;
    position: relative;
    font-size: 20px;
    line-height: 36px;
  }

  .title{
    color: #ac9dff;
    font-size: 30px;
    text-decoration: underline;
  }

  h2{
    color: #f0f0f0;
  }
}

.content a{
  color: #dac3e8;
  font-weight: bold;
  margin-left: 10px;
  text-decoration: none;
}

.me{
  border: 10px solid #211551;
}

.link::before{
  content: "🔗";
}

.mail::before{
  content: "📧";
}

::-webkit-scrollbar{
  display: none;
}
