body {
  background-color: #000;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", "microsoft yahei", Arial,
    sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  position: relative;
}

body:before {
  content: "";
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  background: url(../images/bg.jpg) center center / cover no-repeat #000;
  filter: grayscale(100%);
  z-index: -1;
}

* {
  box-sizing: border-box;
}

a {
  color: #fff;
  text-decoration: none !important;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #ffb701;
}

button {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  outline: 0;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  margin: auto;
  max-width: 1200px;
  width: 100%;
}

/** -------------------- Header -------------------- **/
.header {
  background-color: rgba(30, 35, 42, 0.8);
  text-align: center;
  padding: 8px 0;
}

.header .logo {
  background: url(https://imgsg99.com/dyhvn/vi/fi88-logoydl.png) center /
    contain no-repeat;
  display: inline-block;
  height: 50px;
  width: 200px;
}

/** -------------------- Content -------------------- **/
.content {
  min-height: calc(100vh - 66px - 37px - 40px);
}

.content .speedtest-headline {
  color: #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 40px 0 25px;
}

.btn-refresh {
  background-color: #808080;
  height: 18px;
  width: 18px;
  margin-left: 10px;
  padding: 0;
  mask: url(../images/refresh.svg) center / contain no-repeat;
  -webkit-mask: url(../images/refresh.svg) center / contain no-repeat;
}

.btn-refresh:hover {
  background-color: #ffb701;
}

.content .link-container {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 8px 15px;
  margin: 0 auto 35px auto;
  max-width: 600px;
  width: 100%;
}

.link-container .time-wrapper {
  min-width: 60px;
}

.link-container .link-sec {
  border: 2px solid #ffb701;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  height: 45px;
  width: 45px;
  padding: 5px;
}

.link-container .link-sec.loading {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #ffb701;
  animation: spin 2s linear infinite;
}

.link-container .url-wrapper {
  margin-left: 50px;
}

.link-container .status {
  color: #b9b9b9;
  margin-left: auto;
}

.link-container .status .fastest {
  color: #ffb701;
  font-weight: bolder;
}

.link-container .status .fast {
  color: #fff;
}

.link-container .btn-wrapper {
  margin-left: 20px;
}

.link-container .btn-access {
  background-color: #ffb701;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  padding: 8px 16px;
}

.link-container .btn-access:hover {
  background-color: #d09500;
}

/** -------------------- Sidebar -------------------- **/
.sidebar {
  position: fixed;
  right: 10px;
  top: 15%;
  width: 50px;
}

.sidebar img {
  width: 100%;
}

/** -------------------- Footer -------------------- **/
.footer {
  background-color: rgba(30, 35, 42, 0.8);
  margin-top: auto;
  padding: 10px;
  text-align: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/** -------------------- Mobile view -------------------- **/
@media screen and (max-width: 767px) {
  .sidebar {
    position: absolute;
    top: 60px;
    width: 40px;
  }

  .content .speedtest-headline {
    font-size: 16px;
    margin: 20px 0;
  }

  .content .link-container {
    flex-direction: column;
    margin-bottom: 15px;
    width: 90%;
  }

  .link-container .url-wrapper {
    margin-left: 0;
    margin-bottom: 2px;
    margin-top: 2px;
  }

  .link-container .status {
    margin-left: 0;
  }

  .link-container .btn-wrapper {
    margin-left: 0;
    margin-top: 5px;
  }
}
