@charset "utf-8";

.modal-open-button {
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 60%);
}

.modal:target {
  display: flex;
}

.close {
	position: absolute;
    width: 92%;
    bottom: 3%;
    left: 5%;
    padding: 2%;
}
/*
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: black;
  text-decoration: none;
  cursor: pointer;
  transform: translate(50%, -50%);
}
*/
.modal-wrapper {
  position: relative;
  max-width: 90%;
  padding: 20px;
  margin: 25% auto;
  background-color: #fff;
  border-radius: 5px;
}

.modal-content {
	position: relative;
}

.modal-content h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.2em;
  letter-spacing: -0.02em;
}

.modal-ribbon {
	 width: 100%;
    text-align: center;
    left: -1.8rem;
    padding: 3%;
	margin-bottom: 1%;
    font-size: var(--size-medium);
    color: #fff;
    font-weight: var(--weight-medium);
    background: var(--main-color);
}

.modal-top {
	margin-top: 2%;
}
.modal-d {
	margin-left: 2%;
}

@media screen and (min-width:768px){
	.modal-wrapper {
		max-width: 640px;
		margin: 7% auto;
	}
	.modal-content {
	}
	
}