@import url(https://fonts.googleapis.com/css2?family=Overpass:wght@400;700&display=swap);

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box
}

body {
    font-family: 'Overpass', sans-serif;
    background-color: hsl(216, 12%, 8%);
    color: hsl(0, 0%, 100%);
    max-width: 1440px
}

.container {
    background-color: hsl(213, 19%, 18%);
    margin: 50px 20px;
    width: 350px;
    border-radius: 10px;
    display: flex;
    margin: 10% 40%;
}

.main-content {
    padding: 20px;
}

.main-content>img {
    padding: 10px;
    background-color: hsl(213, 19%, 18%);
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(255, 255, 255, .75)
}

h2,
p {
    margin: 20px 0;
    font-size: 15px;
}

.number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: hsl(216, 12%, 8%);
    color: hsl(0, 0%, 100%);
    cursor: pointer;
    transition: 0.5s ease-in-out;
    margin-right: 8px
}

.number:hover {
    background-color: hsl(25, 97%, 53%)
}

.number:focus {
    background-color: hsl(216, 12%, 54%)
}

.btn-submit {
    width: 100%;
    height: 45px;
    border-radius: 12px;
    font-family: 'Overpas', sans-serif;
    font-weight: 700;
    color: #fff;
    background-color: hsl(25, 97%, 53%);
    border: none;
    cursor: pointer;
    margin: 20px 0
}

.preview {
    display: none;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    padding: 20px;
}

.preview>a {
    font-size: 32px;
    display: flex;
    justify-content: end;
    cursor: pointer;
    padding: 20px;
    background-color: hsl(213, 19%, 18%)
}

.preview img {
    max-width: 200px;
    margin: 20px 60px
}

.preview p.rating {
    width: 80%;
    height: 40px;
    color: hsl(25, 97%, 53%);
    background-color: hsl(216, 12%, 54%);
    margin: 0 40px;
    padding-top: 10px;
    border-radius: 10px;
}

.attribution {
    display: flex;
    justify-content: center;
    font-size: 11px;
    text-align: center;
    font-family: 'Overpas', sans-serif;
}

.attribution a{
    color: hsl(228, 45%, 44%);
    text-decoration: none;
}

@media screen and (max-width: 375px){
    .container {
        margin: 70px 12px;
        
    }
}

@media screen and (max-width: 460px) {
    .container {
        margin: 100px 32px;
    }
}

@media screen and (max-width: 900px) {
    .container {
        margin: 35% 30%;
    }
}