body {
    font-family: sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle, #362004, #7a4e31, #b57a47);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    width: 100dvw;
    color: #362004;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(135deg, #362004 25%, transparent 25%), 
    linear-gradient(225deg, #362004 25%, transparent 25%), 
    linear-gradient(45deg, #362004 25%, transparent 25%), 
    linear-gradient(315deg, #362004 25%, #7a4e31 25%);
  background-position:  20px 0, 20px 0, 0 0, 0 0;
  background-size: 40px 40px;
  background-repeat: repeat;
  pointer-events: none;
  opacity: 0.1;
}

.container {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.item {
    position: fixed;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    background-color: #b9a786;
    clip-path: polygon(0% 0%, 2px 25%, 0% 50%, 2px 75%, 0% 100%,
    25% calc(100% - 2px), 50% 100%, 75% calc(100% - 2px), 100% 100%,
    calc(100% - 2px) 75%, 100% 50%, calc(100% - 2px) 25%, 100% 0%,
    75% 2px, 50% 0%, 25% 2px);
}

#my-page {
    text-align: start;
}

#login,
#register_nickname {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

#change_nickname {
    display: flex;
    align-items: start;
    justify-content: center;
    text-align: start;
    flex-direction: column;
}

h1 {
    text-align: center;
    margin: 20px auto;
}

p {
    margin-bottom: 1.2em;
    margin-left: 1em;
}

strong{
    font-family: "Noto Sans Mono", "Courier New", Courier, monospace;
}

hr {
    border: none;
    border-top: 2px dashed #362004;
    width: 90%;
    margin: 20px auto;
}

button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: xx-small;
    margin-top: 10px;
    cursor: pointer;

}

input[type="text"] {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #362004;
    border-radius: 0 50px/50px 10px;
}

input[type="text"]:focus {
    outline: none;
  }

svg {
    fill: #362004;
}

#back-container {
    display: flex;
    margin-bottom: 20px;
}

#back-container a {
    color: inherit;
    text-decoration: none;
    border-radius: 5px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

#back-container svg{
    height: 40px;
    width: 40px;
}

#name-container {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    position: relative;
}

#name-container a {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    width: 50px;
    height: 20px;
}

#name-container svg{
    height: 1em;
    width: auto;
}

a:hover {
    text-decoration: underline;
}

#a-container {
    display: flex;
    text-align: center;
    align-items: center;
}

#register_nickname form {
    width: 100%;
    margin-bottom: 20px;
}

#change_nickname form {
    margin-left: 1em;
    width: 100%;
}

#change_submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: -1em;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: #f2f2f2;
    background-image: none;
    border: none;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    margin-bottom: 20px;
  }
  
  .gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
  }
  
  .gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
  }
  
  .gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
  }
  
  .gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
  }
  
  .gsi-material-button:disabled .gsi-material-button-state {
    background-color: #1f1f1f1f;
  }
  
  .gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
  }
  
  .gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
  }
  
  .gsi-material-button:not(:disabled):active .gsi-material-button-state, 
  .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #001d35;
    opacity: 12%;
  }
  
  .gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  }
  
  .gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #001d35;
    opacity: 8%;
  }