@font-face {
    font-family: "Crystal Universe";
    src: url("fonts/CrystalUniverse-Oblique.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Winkle";
    src: url("fonts/Winkle-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

body {
    background-image: url("background.png");
    background-size: 100%;
    background-repeat: repeat-y;
    color: rgb(53, 35, 20);
    font-family: Winkle;
    margin: 0;
    padding: 0;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    background-color: rgb(255, 249, 245);
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0cap 0cap 100px 10px rgba(51, 0, 0, 0.452);
    position: relative;
}

.container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.homepage {
    display: flex;
    gap: 30px;
}

.homepage>section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.homepage img {
    width: 100%;
    max-width: 320px;
    height: 300px;
    object-fit: contain;
}

h1 {
    font-family: Crystal Universe;
    text-align: center;
    text-shadow: 1px 1px 3px rgb(223, 116, 30);
}

h2 {
    text-align: center;
    text-shadow: 1px 1px 2px rgb(223, 116, 30);
}

a {
    -o-transition: .5s;
    -ms-transition: .5s;
    -moz-transition: .5s;
    -webkit-transition: .5s;
    transition: .5s;
}

a:link {
    color: rgb(53, 35, 20);
    text-decoration: none;
}

a:hover {
    color: rgb(255, 132, 83);
}

.back {
    position: absolute;
    top: 80px;
    left: 100px;
}

#openModal {
    position: absolute;
    top: -30px;
    right: 0px;
}

#openModal img {
    width: 50px;
    height: auto;
}

#modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#modalOverlay.show {
    opacity: 1;
}

.modalContent {
    background: white;
    padding: 2rem;
    width: 400px;
    max-width: 90%;
    position: relative;
    border-radius: 14px;
}

#closeModal {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: rgb(255, 132, 83);
}