.mobile-only {
    display: none;
    position: fixed;
    top: 30px;
    left: 20%;
    transform: translateX(-12%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 20px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-out;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}


.content {
	text-align: center;
}

body {
    font-family: 'Atkinson Hyperlegible Next', sans-serif;
	background-color:#C0B5D4;
    display: flex;
    flex-direction: column;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.logo {
  width: 90px;
  height: 65px;
  display: block;
  margin: -8px;
}

.logo-item {
  margin-right: 12px;
}

#navbar li:nth-child(2) {
  margin-left: auto;
}


@media (max-width: 768px) {

  #navbar {
    flex-direction: column;
    align-items: center;
  }

  #navbar li {
    margin: 4px 0;
  }

  #navbar li:nth-child(2) {
    margin-left: 0;
  }

  .logo-item {
    margin-right: 0;
    margin-bottom: 10px;
  }

}

#navbar {
	margin-top: 1%;
	display: flex;
    align-items: center;
	font-size:18px;
}

#navbar li {
  list-style: none;
  margin-left: 4px;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

ul li a {
  position: relative;
  display: inline-block;
  color: black;
  text-decoration: none;
  padding: 8px 8px;
  transition: font-weight 0.2s ease;
}

ul li a::before {
  content: attr(data-text);
  font-weight: 700;
  visibility: hidden;
  display: block;
  height: 0;
  overflow: hidden;
}

ul li a:hover {
  font-weight: 525;
}

ul li a.active {
  font-weight: 550;
}

ul li a::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 4px;
  width: calc(100% - 30px);
  height: 2px;
  background: black;
  transform: scaleX(0);
  transition: transform 1s ease;
}

ul li a.active::after {
  transform: scaleX(1);
}


#description_parkrun {
	font-size: 18px;
}

.bookmarklet {
	border: 2px solid #ffa300;
	background-color: #ffa300;
	font-size: 23px;
	border-radius: 25px;
	padding: 16px 28px 16px;
	text-decoration: none;
}


.bookmarklet p {
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.bookmarklet p:after {
  content: '\2191';
  position: absolute;
  opacity: 0;
  right: -20px;
  transition: 0.5s;
}

.bookmarklet:hover p {
  padding-right: 25px;
  cursor: grab;
}

.bookmarklet:hover p:after {
  opacity: 1;
  right: 0;
}

.bookmarklet:active {
    cursor: grab;
}

#code-url{
	font-size: 16px;
}

::placeholder {
   text-align: center; 
}

#p_id {
  padding: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  color: black;
  font-size: 18px;
  text-align: center;
  box-shadow: 2px 2px 7px 0 rgb(0, 0, 0, 0.2);
}

#p_id:invalid {
  animation: justshake 0.1s forwards;
  color: red;
}

@keyframes justshake {
  25% {
    transform: translateX(5px);
  }

  50% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }

  100% {
    transform: translateX-(5px);
  }
}

#p_id_link {
	border: 2px solid #00ceae;
	background-color: #00ceae;
	font-size: 18px;
	border-radius: 15px;
	padding: 16px 25px 16px;
	text-decoration: none;
}

#p_id_link:hover{
	cursor:pointer;
}

#extra-div {
	width: fit-content;
    margin: 0 auto;
    text-align: left;
	font-size:18px;
}

#extra-div h3{
	margin-bottom: 0.2rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}


#video-tutorial {
  transition: width 0.3s ease, height 0.3s ease;
  cursor: pointer;
}

#video-tutorial.enlarged {
  width: 800px;
  height: 450px;
}

#video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

#video-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#video-tutorial {
  position: relative;
  z-index: 11;
}

#extra-div ul{
	list-style-type: square;
    list-style-position: inside;
    padding-left: 0;
}

footer {
	margin-top: auto;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

#bottom-left {
    align-self: flex-end;
}

#bottom-right {
    align-self: flex-end;
}
